@vue/devtools 7.0.14 → 7.0.15
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.d.cts +49 -324
- package/dist/index.d.ts +49 -324
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,357 +1,82 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as vue_router from 'vue-router';
|
|
3
|
-
import * as _vue_devtools_kit from '@vue/devtools-kit';
|
|
1
|
+
import * as _vue_devtools_kit_dist from '@vue/devtools-kit/dist';
|
|
4
2
|
export * from '@vue/devtools-kit';
|
|
5
3
|
export { addCustomCommand, addCustomTab, onDevToolsClientConnected, onDevToolsConnected, removeCustomCommand } from '@vue/devtools-kit';
|
|
6
|
-
import * as _vue_devtools_schema_dist from '@vue/devtools-schema/dist';
|
|
7
|
-
import * as _vue_devtools_schema_src_types_vue from '@vue/devtools-schema/src/types/vue';
|
|
8
4
|
import { connect } from '@vue/devtools-electron';
|
|
9
5
|
|
|
10
6
|
declare const devtools: {
|
|
11
7
|
connect: typeof connect;
|
|
12
|
-
state:
|
|
13
|
-
context:
|
|
14
|
-
|
|
15
|
-
api: {
|
|
16
|
-
on: {
|
|
17
|
-
devtoolsStateUpdated(fn: (state: _vue_devtools_schema_dist.DevToolsState, oldState: _vue_devtools_schema_dist.DevToolsState) => void): void;
|
|
18
|
-
routerInfoUpdated(fn: (routerInfo: _vue_devtools_kit.RouterInfo) => void): void;
|
|
19
|
-
getComponentBoundingRect(fn: (payload: _vue_devtools_kit.ComponentBoundingRectApiPayload) => void): void;
|
|
20
|
-
inspectComponent(fn: (payload: {
|
|
21
|
-
componentInstance: _vue_devtools_schema_dist.VueAppInstance | undefined;
|
|
22
|
-
app: _vue_devtools_schema_dist.VueAppInstance | undefined;
|
|
23
|
-
instanceData: {
|
|
24
|
-
id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
file: string | undefined;
|
|
27
|
-
state: _vue_devtools_kit.InspectorState[];
|
|
28
|
-
instance: _vue_devtools_schema_dist.VueAppInstance | undefined;
|
|
29
|
-
};
|
|
30
|
-
}) => void): void;
|
|
31
|
-
visitComponentTree(fn: (payload: {
|
|
32
|
-
componentInstance: _vue_devtools_schema_dist.VueAppInstance | undefined;
|
|
33
|
-
app: _vue_devtools_schema_dist.VueAppInstance | undefined;
|
|
34
|
-
treeNode: _vue_devtools_kit.ComponentTreeNode;
|
|
35
|
-
filter: string;
|
|
36
|
-
}) => void): void;
|
|
37
|
-
getInspectorTree(fn: (payload: _vue_devtools_kit.InspectorTreeApiPayload) => void): void;
|
|
38
|
-
getInspectorState(fn: (payload: _vue_devtools_kit.InspectorStateApiPayload) => void): void;
|
|
39
|
-
sendInspectorTree(fn: (payload: string) => void): void;
|
|
40
|
-
sendInspectorState(fn: (payload: string) => void): void;
|
|
41
|
-
addTimelineEvent(fn: (payload: _vue_devtools_kit.TimelineEvent) => void): void;
|
|
42
|
-
editInspectorState(fn: (payload: _vue_devtools_kit.InspectorStateEditorPayload) => void): void;
|
|
43
|
-
editComponentState(): void;
|
|
44
|
-
customTabsUpdated(fn: (payload: _vue_devtools_kit.CustomTab[]) => void): void;
|
|
45
|
-
customCommandsUpdated(fn: (payload: _vue_devtools_kit.CustomCommand[]) => void): void;
|
|
46
|
-
};
|
|
47
|
-
clear: () => void;
|
|
48
|
-
toggleApp(id: string): Promise<void>;
|
|
49
|
-
addTimelineEvent(payload: _vue_devtools_kit.TimelineEvent): void;
|
|
50
|
-
toggleComponentInspector(payload: _vue_devtools_kit.ToggleComponentInspectorOptions): void;
|
|
51
|
-
inspectComponentInspector(): Promise<string>;
|
|
52
|
-
scrollToComponent(payload: _vue_devtools_kit.ScrollToComponentOptions): void;
|
|
53
|
-
getComponentBoundingRect(payload: _vue_devtools_kit.ComponentBoundingRectApiPayload): string;
|
|
54
|
-
getInspectorTree(payload?: _vue_devtools_kit.InspectorTreeApiPayload | undefined): Promise<string>;
|
|
55
|
-
getInspectorState(payload?: {
|
|
56
|
-
inspectorId?: string | undefined;
|
|
57
|
-
nodeId?: string | undefined;
|
|
58
|
-
} | undefined): string;
|
|
59
|
-
editInspectorState(payload: _vue_devtools_kit.InspectorStateEditorPayload): Promise<void>;
|
|
60
|
-
sendInspectorTree(inspectorId: string): Promise<void>;
|
|
61
|
-
sendInspectorState(inspectorId: string): Promise<void>;
|
|
62
|
-
addCustomTab(tab: _vue_devtools_kit.CustomTab): void;
|
|
63
|
-
addCustomCommand(action: _vue_devtools_kit.CustomCommand): void;
|
|
64
|
-
removeCustomCommand(actionId: string): void;
|
|
65
|
-
addInspector(payload: _vue_devtools_kit.AddInspectorApiPayload): void;
|
|
66
|
-
openInEditor(payload: _vue_devtools_kit.OpenInEditorOptions): void;
|
|
67
|
-
highlightElement(instance: any): void;
|
|
68
|
-
unhighlightElement(): void;
|
|
69
|
-
getComponentInstances(app: any): Promise<any[]>;
|
|
70
|
-
getVueInspector(): Promise<_vue_devtools_kit.VueInspector | null>;
|
|
71
|
-
visitComponentTree(payload: {
|
|
72
|
-
componentInstance: _vue_devtools_schema_dist.VueAppInstance | undefined;
|
|
73
|
-
app: _vue_devtools_schema_dist.VueAppInstance | undefined;
|
|
74
|
-
treeNode: _vue_devtools_kit.ComponentTreeNode;
|
|
75
|
-
filter: string;
|
|
76
|
-
}): void;
|
|
77
|
-
addTimelineLayer(payload: {
|
|
78
|
-
id: string;
|
|
79
|
-
label: string;
|
|
80
|
-
color: number;
|
|
81
|
-
}): void;
|
|
82
|
-
notifyComponentUpdate(): void;
|
|
83
|
-
now(): number;
|
|
84
|
-
getSettings(): {
|
|
85
|
-
logStoreChanges: null;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
inspector: {
|
|
89
|
-
id: string;
|
|
90
|
-
nodeId: string;
|
|
91
|
-
filter: string;
|
|
92
|
-
treeFilterPlaceholder: string;
|
|
93
|
-
}[];
|
|
94
|
-
timelineLayer: {
|
|
95
|
-
id: string;
|
|
96
|
-
label: string;
|
|
97
|
-
color: number;
|
|
98
|
-
}[];
|
|
99
|
-
routerInfo: _vue_devtools_kit.RouterInfo;
|
|
100
|
-
router: vue_router.Router;
|
|
101
|
-
activeInspectorTreeId: string;
|
|
102
|
-
componentPluginHookBuffer: (() => void)[];
|
|
103
|
-
clear: () => void;
|
|
104
|
-
};
|
|
8
|
+
state: _vue_devtools_kit_dist.DevToolsState;
|
|
9
|
+
context: _vue_devtools_kit_dist.DevToolsContext;
|
|
10
|
+
hook: _vue_devtools_kit_dist.VueHooks;
|
|
105
11
|
init: () => void;
|
|
106
|
-
hook: {
|
|
107
|
-
on: {
|
|
108
|
-
vueAppInit(fn: (app: vue.App<any> & vue.ComponentInternalInstance & {
|
|
109
|
-
type: {
|
|
110
|
-
_componentTag: string | undefined;
|
|
111
|
-
components: Record<string, vue.ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any>>;
|
|
112
|
-
__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__: string;
|
|
113
|
-
__isKeepAlive: boolean;
|
|
114
|
-
devtools: {
|
|
115
|
-
hide: boolean;
|
|
116
|
-
};
|
|
117
|
-
mixins: vue.ComponentOptions<{}, any, any, any, any, any, any, any, any>[];
|
|
118
|
-
extends: vue.ComponentOptions<{}, any, any, any, any, any, any, any, any>;
|
|
119
|
-
vuex: {
|
|
120
|
-
getters: Record<string, unknown>;
|
|
121
|
-
};
|
|
122
|
-
computed: Record<string, unknown>;
|
|
123
|
-
};
|
|
124
|
-
__v_cache: Map<string | number | symbol | vue.ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any>, globalThis.VNode<vue.RendererNode, vue.RendererElement, {
|
|
125
|
-
[key: string]: any;
|
|
126
|
-
}>>;
|
|
127
|
-
__VUE_DEVTOOLS_UID__: string;
|
|
128
|
-
_isBeingDestroyed: boolean;
|
|
129
|
-
_instance: _vue_devtools_schema_dist.VueAppInstance;
|
|
130
|
-
_container: {
|
|
131
|
-
_vnode: {
|
|
132
|
-
component: _vue_devtools_schema_dist.VueAppInstance;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
isUnmounted: boolean;
|
|
136
|
-
parent: _vue_devtools_schema_dist.VueAppInstance;
|
|
137
|
-
appContext: {
|
|
138
|
-
app: any;
|
|
139
|
-
};
|
|
140
|
-
__VUE_DEVTOOLS_APP_RECORD__: _vue_devtools_schema_dist.AppRecord;
|
|
141
|
-
suspense: vue.SuspenseBoundary & {
|
|
142
|
-
suspenseKey: string;
|
|
143
|
-
};
|
|
144
|
-
renderContext: Record<string, unknown>;
|
|
145
|
-
devtoolsRawSetupState: Record<string, unknown>;
|
|
146
|
-
setupState: Record<string, unknown>;
|
|
147
|
-
provides: Record<string | symbol, unknown>;
|
|
148
|
-
ctx: Record<string, unknown>;
|
|
149
|
-
} & {
|
|
150
|
-
__VUE_DEVTOOLS_APP_RECORD_ID__: string;
|
|
151
|
-
__VUE_DEVTOOLS_APP_RECORD__: _vue_devtools_schema_dist.AppRecord;
|
|
152
|
-
}, version: string) => void): void;
|
|
153
|
-
vueAppConnected(fn: () => void): void;
|
|
154
|
-
componentAdded(fn: (app: vue.App<any> & vue.ComponentInternalInstance & {
|
|
155
|
-
type: {
|
|
156
|
-
_componentTag: string | undefined;
|
|
157
|
-
components: Record<string, vue.ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any>>;
|
|
158
|
-
__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__: string;
|
|
159
|
-
__isKeepAlive: boolean;
|
|
160
|
-
devtools: {
|
|
161
|
-
hide: boolean;
|
|
162
|
-
};
|
|
163
|
-
mixins: vue.ComponentOptions<{}, any, any, any, any, any, any, any, any>[];
|
|
164
|
-
extends: vue.ComponentOptions<{}, any, any, any, any, any, any, any, any>;
|
|
165
|
-
vuex: {
|
|
166
|
-
getters: Record<string, unknown>;
|
|
167
|
-
};
|
|
168
|
-
computed: Record<string, unknown>;
|
|
169
|
-
};
|
|
170
|
-
__v_cache: Map<string | number | symbol | vue.ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any>, globalThis.VNode<vue.RendererNode, vue.RendererElement, {
|
|
171
|
-
[key: string]: any;
|
|
172
|
-
}>>;
|
|
173
|
-
__VUE_DEVTOOLS_UID__: string;
|
|
174
|
-
_isBeingDestroyed: boolean;
|
|
175
|
-
_instance: _vue_devtools_schema_dist.VueAppInstance;
|
|
176
|
-
_container: {
|
|
177
|
-
_vnode: {
|
|
178
|
-
component: _vue_devtools_schema_dist.VueAppInstance;
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
isUnmounted: boolean;
|
|
182
|
-
parent: _vue_devtools_schema_dist.VueAppInstance;
|
|
183
|
-
appContext: {
|
|
184
|
-
app: any;
|
|
185
|
-
};
|
|
186
|
-
__VUE_DEVTOOLS_APP_RECORD__: _vue_devtools_schema_dist.AppRecord;
|
|
187
|
-
suspense: vue.SuspenseBoundary & {
|
|
188
|
-
suspenseKey: string;
|
|
189
|
-
};
|
|
190
|
-
renderContext: Record<string, unknown>;
|
|
191
|
-
devtoolsRawSetupState: Record<string, unknown>;
|
|
192
|
-
setupState: Record<string, unknown>;
|
|
193
|
-
provides: Record<string | symbol, unknown>;
|
|
194
|
-
ctx: Record<string, unknown>;
|
|
195
|
-
}, uid: number, parentUid: number, component: _vue_devtools_schema_dist.VueAppInstance) => void): () => void;
|
|
196
|
-
componentUpdated(fn: (app: vue.App<any> & vue.ComponentInternalInstance & {
|
|
197
|
-
type: {
|
|
198
|
-
_componentTag: string | undefined;
|
|
199
|
-
components: Record<string, vue.ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any>>;
|
|
200
|
-
__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__: string;
|
|
201
|
-
__isKeepAlive: boolean;
|
|
202
|
-
devtools: {
|
|
203
|
-
hide: boolean;
|
|
204
|
-
};
|
|
205
|
-
mixins: vue.ComponentOptions<{}, any, any, any, any, any, any, any, any>[];
|
|
206
|
-
extends: vue.ComponentOptions<{}, any, any, any, any, any, any, any, any>;
|
|
207
|
-
vuex: {
|
|
208
|
-
getters: Record<string, unknown>;
|
|
209
|
-
};
|
|
210
|
-
computed: Record<string, unknown>;
|
|
211
|
-
};
|
|
212
|
-
__v_cache: Map<string | number | symbol | vue.ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any>, globalThis.VNode<vue.RendererNode, vue.RendererElement, {
|
|
213
|
-
[key: string]: any;
|
|
214
|
-
}>>;
|
|
215
|
-
__VUE_DEVTOOLS_UID__: string;
|
|
216
|
-
_isBeingDestroyed: boolean;
|
|
217
|
-
_instance: _vue_devtools_schema_dist.VueAppInstance;
|
|
218
|
-
_container: {
|
|
219
|
-
_vnode: {
|
|
220
|
-
component: _vue_devtools_schema_dist.VueAppInstance;
|
|
221
|
-
};
|
|
222
|
-
};
|
|
223
|
-
isUnmounted: boolean;
|
|
224
|
-
parent: _vue_devtools_schema_dist.VueAppInstance;
|
|
225
|
-
appContext: {
|
|
226
|
-
app: any;
|
|
227
|
-
};
|
|
228
|
-
__VUE_DEVTOOLS_APP_RECORD__: _vue_devtools_schema_dist.AppRecord;
|
|
229
|
-
suspense: vue.SuspenseBoundary & {
|
|
230
|
-
suspenseKey: string;
|
|
231
|
-
};
|
|
232
|
-
renderContext: Record<string, unknown>;
|
|
233
|
-
devtoolsRawSetupState: Record<string, unknown>;
|
|
234
|
-
setupState: Record<string, unknown>;
|
|
235
|
-
provides: Record<string | symbol, unknown>;
|
|
236
|
-
ctx: Record<string, unknown>;
|
|
237
|
-
}, uid: number, parentUid: number, component: _vue_devtools_schema_dist.VueAppInstance) => void): () => void;
|
|
238
|
-
componentRemoved(fn: (app: vue.App<any> & vue.ComponentInternalInstance & {
|
|
239
|
-
type: {
|
|
240
|
-
_componentTag: string | undefined;
|
|
241
|
-
components: Record<string, vue.ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any>>;
|
|
242
|
-
__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__: string;
|
|
243
|
-
__isKeepAlive: boolean;
|
|
244
|
-
devtools: {
|
|
245
|
-
hide: boolean;
|
|
246
|
-
};
|
|
247
|
-
mixins: vue.ComponentOptions<{}, any, any, any, any, any, any, any, any>[];
|
|
248
|
-
extends: vue.ComponentOptions<{}, any, any, any, any, any, any, any, any>;
|
|
249
|
-
vuex: {
|
|
250
|
-
getters: Record<string, unknown>;
|
|
251
|
-
};
|
|
252
|
-
computed: Record<string, unknown>;
|
|
253
|
-
};
|
|
254
|
-
__v_cache: Map<string | number | symbol | vue.ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any>, globalThis.VNode<vue.RendererNode, vue.RendererElement, {
|
|
255
|
-
[key: string]: any;
|
|
256
|
-
}>>;
|
|
257
|
-
__VUE_DEVTOOLS_UID__: string;
|
|
258
|
-
_isBeingDestroyed: boolean;
|
|
259
|
-
_instance: _vue_devtools_schema_dist.VueAppInstance;
|
|
260
|
-
_container: {
|
|
261
|
-
_vnode: {
|
|
262
|
-
component: _vue_devtools_schema_dist.VueAppInstance;
|
|
263
|
-
};
|
|
264
|
-
};
|
|
265
|
-
isUnmounted: boolean;
|
|
266
|
-
parent: _vue_devtools_schema_dist.VueAppInstance;
|
|
267
|
-
appContext: {
|
|
268
|
-
app: any;
|
|
269
|
-
};
|
|
270
|
-
__VUE_DEVTOOLS_APP_RECORD__: _vue_devtools_schema_dist.AppRecord;
|
|
271
|
-
suspense: vue.SuspenseBoundary & {
|
|
272
|
-
suspenseKey: string;
|
|
273
|
-
};
|
|
274
|
-
renderContext: Record<string, unknown>;
|
|
275
|
-
devtoolsRawSetupState: Record<string, unknown>;
|
|
276
|
-
setupState: Record<string, unknown>;
|
|
277
|
-
provides: Record<string | symbol, unknown>;
|
|
278
|
-
ctx: Record<string, unknown>;
|
|
279
|
-
}, uid: number, parentUid: number, component: _vue_devtools_schema_dist.VueAppInstance) => void): () => void;
|
|
280
|
-
setupDevtoolsPlugin(fn: (pluginDescriptor: _vue_devtools_schema_dist.PluginDescriptor, setupFn: _vue_devtools_schema_dist.PluginSetupFunction) => void): void;
|
|
281
|
-
};
|
|
282
|
-
};
|
|
283
12
|
api: {
|
|
284
13
|
on: {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
componentInstance: _vue_devtools_schema_dist.VueAppInstance | undefined;
|
|
290
|
-
app: _vue_devtools_schema_dist.VueAppInstance | undefined;
|
|
14
|
+
readonly addTimelineEvent: (fn: (payload: _vue_devtools_kit_dist.TimelineEvent) => void) => void;
|
|
15
|
+
readonly inspectComponent: (fn: (payload: {
|
|
16
|
+
componentInstance: _vue_devtools_kit_dist.VueAppInstance | undefined;
|
|
17
|
+
app: _vue_devtools_kit_dist.VueAppInstance | undefined;
|
|
291
18
|
instanceData: {
|
|
292
19
|
id: string;
|
|
293
20
|
name: string;
|
|
294
21
|
file: string | undefined;
|
|
295
|
-
state:
|
|
296
|
-
instance:
|
|
297
|
-
};
|
|
298
|
-
}) => void)
|
|
299
|
-
visitComponentTree(fn: (payload: {
|
|
300
|
-
componentInstance:
|
|
301
|
-
app:
|
|
302
|
-
treeNode:
|
|
22
|
+
state: _vue_devtools_kit_dist.InspectorState[];
|
|
23
|
+
instance: _vue_devtools_kit_dist.VueAppInstance | undefined;
|
|
24
|
+
};
|
|
25
|
+
}) => void) => void;
|
|
26
|
+
readonly visitComponentTree: (fn: (payload: {
|
|
27
|
+
componentInstance: _vue_devtools_kit_dist.VueAppInstance | undefined;
|
|
28
|
+
app: _vue_devtools_kit_dist.VueAppInstance | undefined;
|
|
29
|
+
treeNode: _vue_devtools_kit_dist.ComponentTreeNode;
|
|
303
30
|
filter: string;
|
|
304
|
-
}) => void)
|
|
305
|
-
getInspectorTree(fn: (payload:
|
|
306
|
-
getInspectorState(fn: (payload:
|
|
307
|
-
sendInspectorTree(fn: (payload: string) => void)
|
|
308
|
-
sendInspectorState(fn: (payload: string) => void)
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
31
|
+
}) => void) => void;
|
|
32
|
+
readonly getInspectorTree: (fn: (payload: _vue_devtools_kit_dist.InspectorTreeApiPayload) => void) => void;
|
|
33
|
+
readonly getInspectorState: (fn: (payload: _vue_devtools_kit_dist.InspectorStateApiPayload) => void) => void;
|
|
34
|
+
readonly sendInspectorTree: (fn: (payload: string) => void) => void;
|
|
35
|
+
readonly sendInspectorState: (fn: (payload: string) => void) => void;
|
|
36
|
+
readonly editInspectorState: (fn: (payload: _vue_devtools_kit_dist.InspectorStateEditorPayload) => void) => void;
|
|
37
|
+
readonly editComponentState: () => void;
|
|
38
|
+
readonly routerInfoUpdated: (fn: (routerInfo: _vue_devtools_kit_dist.RouterInfo) => void) => void;
|
|
39
|
+
readonly getComponentBoundingRect: (fn: (payload: _vue_devtools_kit_dist.ComponentBoundingRectApiPayload) => void) => void;
|
|
40
|
+
readonly customTabsUpdated: (fn: (payload: _vue_devtools_kit_dist.CustomTab[]) => void) => void;
|
|
41
|
+
readonly customCommandsUpdated: (fn: (payload: _vue_devtools_kit_dist.CustomCommand[]) => void) => void;
|
|
42
|
+
readonly devtoolsStateUpdated: (fn: (state: _vue_devtools_kit_dist.DevToolsState, oldState: _vue_devtools_kit_dist.DevToolsState) => void) => void;
|
|
314
43
|
};
|
|
315
44
|
clear: () => void;
|
|
316
|
-
|
|
317
|
-
addTimelineEvent(payload:
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
getInspectorTree(payload?: _vue_devtools_kit.InspectorTreeApiPayload | undefined): Promise<string>;
|
|
45
|
+
addTimelineLayer(payload: _vue_devtools_kit_dist.TimelineLayerItem): void;
|
|
46
|
+
addTimelineEvent(payload: _vue_devtools_kit_dist.TimelineEvent): void;
|
|
47
|
+
addInspector(payload: _vue_devtools_kit_dist.InspectorApiPayload): void;
|
|
48
|
+
highlightElement(instance: _vue_devtools_kit_dist.VueAppInstance): void;
|
|
49
|
+
unhighlightElement(): void;
|
|
50
|
+
getInspectorTree(payload?: _vue_devtools_kit_dist.InspectorTreeApiPayload | undefined): Promise<string>;
|
|
323
51
|
getInspectorState(payload?: {
|
|
324
52
|
inspectorId?: string | undefined;
|
|
325
53
|
nodeId?: string | undefined;
|
|
326
54
|
} | undefined): string;
|
|
327
|
-
editInspectorState(payload:
|
|
55
|
+
editInspectorState(payload: _vue_devtools_kit_dist.InspectorStateEditorPayload): Promise<void>;
|
|
328
56
|
sendInspectorTree(inspectorId: string): Promise<void>;
|
|
329
57
|
sendInspectorState(inspectorId: string): Promise<void>;
|
|
330
|
-
|
|
331
|
-
addCustomCommand(action: _vue_devtools_kit.CustomCommand): void;
|
|
332
|
-
removeCustomCommand(actionId: string): void;
|
|
333
|
-
addInspector(payload: _vue_devtools_kit.AddInspectorApiPayload): void;
|
|
334
|
-
openInEditor(payload: _vue_devtools_kit.OpenInEditorOptions): void;
|
|
335
|
-
highlightElement(instance: any): void;
|
|
336
|
-
unhighlightElement(): void;
|
|
337
|
-
getComponentInstances(app: any): Promise<any[]>;
|
|
338
|
-
getVueInspector(): Promise<_vue_devtools_kit.VueInspector | null>;
|
|
58
|
+
getComponentInstances(app: _vue_devtools_kit_dist.VueAppInstance): Promise<_vue_devtools_kit_dist.VueAppInstance[]>;
|
|
339
59
|
visitComponentTree(payload: {
|
|
340
|
-
componentInstance:
|
|
341
|
-
app:
|
|
342
|
-
treeNode:
|
|
60
|
+
componentInstance: _vue_devtools_kit_dist.VueAppInstance | undefined;
|
|
61
|
+
app: _vue_devtools_kit_dist.VueAppInstance | undefined;
|
|
62
|
+
treeNode: _vue_devtools_kit_dist.ComponentTreeNode;
|
|
343
63
|
filter: string;
|
|
344
64
|
}): void;
|
|
345
|
-
addTimelineLayer(payload: {
|
|
346
|
-
id: string;
|
|
347
|
-
label: string;
|
|
348
|
-
color: number;
|
|
349
|
-
}): void;
|
|
350
65
|
notifyComponentUpdate(): void;
|
|
351
66
|
now(): number;
|
|
352
67
|
getSettings(): {
|
|
353
68
|
logStoreChanges: null;
|
|
354
69
|
};
|
|
70
|
+
toggleComponentInspector(payload: _vue_devtools_kit_dist.ComponentHighLighterOptions): void;
|
|
71
|
+
inspectComponentInspector(): Promise<string>;
|
|
72
|
+
scrollToComponent(payload: _vue_devtools_kit_dist.ScrollToComponentOptions): void;
|
|
73
|
+
getComponentBoundingRect(payload: _vue_devtools_kit_dist.ComponentBoundingRectApiPayload): string;
|
|
74
|
+
toggleApp(id: string): Promise<void>;
|
|
75
|
+
addCustomTab(tab: _vue_devtools_kit_dist.CustomTab): void;
|
|
76
|
+
addCustomCommand(action: _vue_devtools_kit_dist.CustomCommand): void;
|
|
77
|
+
removeCustomCommand(actionId: string): void;
|
|
78
|
+
openInEditor(payload: _vue_devtools_kit_dist.OpenInEditorOptions): void;
|
|
79
|
+
getVueInspector(): Promise<_vue_devtools_kit_dist.ComponentInspector>;
|
|
355
80
|
};
|
|
356
81
|
};
|
|
357
82
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,357 +1,82 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as vue_router from 'vue-router';
|
|
3
|
-
import * as _vue_devtools_kit from '@vue/devtools-kit';
|
|
1
|
+
import * as _vue_devtools_kit_dist from '@vue/devtools-kit/dist';
|
|
4
2
|
export * from '@vue/devtools-kit';
|
|
5
3
|
export { addCustomCommand, addCustomTab, onDevToolsClientConnected, onDevToolsConnected, removeCustomCommand } from '@vue/devtools-kit';
|
|
6
|
-
import * as _vue_devtools_schema_dist from '@vue/devtools-schema/dist';
|
|
7
|
-
import * as _vue_devtools_schema_src_types_vue from '@vue/devtools-schema/src/types/vue';
|
|
8
4
|
import { connect } from '@vue/devtools-electron';
|
|
9
5
|
|
|
10
6
|
declare const devtools: {
|
|
11
7
|
connect: typeof connect;
|
|
12
|
-
state:
|
|
13
|
-
context:
|
|
14
|
-
|
|
15
|
-
api: {
|
|
16
|
-
on: {
|
|
17
|
-
devtoolsStateUpdated(fn: (state: _vue_devtools_schema_dist.DevToolsState, oldState: _vue_devtools_schema_dist.DevToolsState) => void): void;
|
|
18
|
-
routerInfoUpdated(fn: (routerInfo: _vue_devtools_kit.RouterInfo) => void): void;
|
|
19
|
-
getComponentBoundingRect(fn: (payload: _vue_devtools_kit.ComponentBoundingRectApiPayload) => void): void;
|
|
20
|
-
inspectComponent(fn: (payload: {
|
|
21
|
-
componentInstance: _vue_devtools_schema_dist.VueAppInstance | undefined;
|
|
22
|
-
app: _vue_devtools_schema_dist.VueAppInstance | undefined;
|
|
23
|
-
instanceData: {
|
|
24
|
-
id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
file: string | undefined;
|
|
27
|
-
state: _vue_devtools_kit.InspectorState[];
|
|
28
|
-
instance: _vue_devtools_schema_dist.VueAppInstance | undefined;
|
|
29
|
-
};
|
|
30
|
-
}) => void): void;
|
|
31
|
-
visitComponentTree(fn: (payload: {
|
|
32
|
-
componentInstance: _vue_devtools_schema_dist.VueAppInstance | undefined;
|
|
33
|
-
app: _vue_devtools_schema_dist.VueAppInstance | undefined;
|
|
34
|
-
treeNode: _vue_devtools_kit.ComponentTreeNode;
|
|
35
|
-
filter: string;
|
|
36
|
-
}) => void): void;
|
|
37
|
-
getInspectorTree(fn: (payload: _vue_devtools_kit.InspectorTreeApiPayload) => void): void;
|
|
38
|
-
getInspectorState(fn: (payload: _vue_devtools_kit.InspectorStateApiPayload) => void): void;
|
|
39
|
-
sendInspectorTree(fn: (payload: string) => void): void;
|
|
40
|
-
sendInspectorState(fn: (payload: string) => void): void;
|
|
41
|
-
addTimelineEvent(fn: (payload: _vue_devtools_kit.TimelineEvent) => void): void;
|
|
42
|
-
editInspectorState(fn: (payload: _vue_devtools_kit.InspectorStateEditorPayload) => void): void;
|
|
43
|
-
editComponentState(): void;
|
|
44
|
-
customTabsUpdated(fn: (payload: _vue_devtools_kit.CustomTab[]) => void): void;
|
|
45
|
-
customCommandsUpdated(fn: (payload: _vue_devtools_kit.CustomCommand[]) => void): void;
|
|
46
|
-
};
|
|
47
|
-
clear: () => void;
|
|
48
|
-
toggleApp(id: string): Promise<void>;
|
|
49
|
-
addTimelineEvent(payload: _vue_devtools_kit.TimelineEvent): void;
|
|
50
|
-
toggleComponentInspector(payload: _vue_devtools_kit.ToggleComponentInspectorOptions): void;
|
|
51
|
-
inspectComponentInspector(): Promise<string>;
|
|
52
|
-
scrollToComponent(payload: _vue_devtools_kit.ScrollToComponentOptions): void;
|
|
53
|
-
getComponentBoundingRect(payload: _vue_devtools_kit.ComponentBoundingRectApiPayload): string;
|
|
54
|
-
getInspectorTree(payload?: _vue_devtools_kit.InspectorTreeApiPayload | undefined): Promise<string>;
|
|
55
|
-
getInspectorState(payload?: {
|
|
56
|
-
inspectorId?: string | undefined;
|
|
57
|
-
nodeId?: string | undefined;
|
|
58
|
-
} | undefined): string;
|
|
59
|
-
editInspectorState(payload: _vue_devtools_kit.InspectorStateEditorPayload): Promise<void>;
|
|
60
|
-
sendInspectorTree(inspectorId: string): Promise<void>;
|
|
61
|
-
sendInspectorState(inspectorId: string): Promise<void>;
|
|
62
|
-
addCustomTab(tab: _vue_devtools_kit.CustomTab): void;
|
|
63
|
-
addCustomCommand(action: _vue_devtools_kit.CustomCommand): void;
|
|
64
|
-
removeCustomCommand(actionId: string): void;
|
|
65
|
-
addInspector(payload: _vue_devtools_kit.AddInspectorApiPayload): void;
|
|
66
|
-
openInEditor(payload: _vue_devtools_kit.OpenInEditorOptions): void;
|
|
67
|
-
highlightElement(instance: any): void;
|
|
68
|
-
unhighlightElement(): void;
|
|
69
|
-
getComponentInstances(app: any): Promise<any[]>;
|
|
70
|
-
getVueInspector(): Promise<_vue_devtools_kit.VueInspector | null>;
|
|
71
|
-
visitComponentTree(payload: {
|
|
72
|
-
componentInstance: _vue_devtools_schema_dist.VueAppInstance | undefined;
|
|
73
|
-
app: _vue_devtools_schema_dist.VueAppInstance | undefined;
|
|
74
|
-
treeNode: _vue_devtools_kit.ComponentTreeNode;
|
|
75
|
-
filter: string;
|
|
76
|
-
}): void;
|
|
77
|
-
addTimelineLayer(payload: {
|
|
78
|
-
id: string;
|
|
79
|
-
label: string;
|
|
80
|
-
color: number;
|
|
81
|
-
}): void;
|
|
82
|
-
notifyComponentUpdate(): void;
|
|
83
|
-
now(): number;
|
|
84
|
-
getSettings(): {
|
|
85
|
-
logStoreChanges: null;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
inspector: {
|
|
89
|
-
id: string;
|
|
90
|
-
nodeId: string;
|
|
91
|
-
filter: string;
|
|
92
|
-
treeFilterPlaceholder: string;
|
|
93
|
-
}[];
|
|
94
|
-
timelineLayer: {
|
|
95
|
-
id: string;
|
|
96
|
-
label: string;
|
|
97
|
-
color: number;
|
|
98
|
-
}[];
|
|
99
|
-
routerInfo: _vue_devtools_kit.RouterInfo;
|
|
100
|
-
router: vue_router.Router;
|
|
101
|
-
activeInspectorTreeId: string;
|
|
102
|
-
componentPluginHookBuffer: (() => void)[];
|
|
103
|
-
clear: () => void;
|
|
104
|
-
};
|
|
8
|
+
state: _vue_devtools_kit_dist.DevToolsState;
|
|
9
|
+
context: _vue_devtools_kit_dist.DevToolsContext;
|
|
10
|
+
hook: _vue_devtools_kit_dist.VueHooks;
|
|
105
11
|
init: () => void;
|
|
106
|
-
hook: {
|
|
107
|
-
on: {
|
|
108
|
-
vueAppInit(fn: (app: vue.App<any> & vue.ComponentInternalInstance & {
|
|
109
|
-
type: {
|
|
110
|
-
_componentTag: string | undefined;
|
|
111
|
-
components: Record<string, vue.ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any>>;
|
|
112
|
-
__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__: string;
|
|
113
|
-
__isKeepAlive: boolean;
|
|
114
|
-
devtools: {
|
|
115
|
-
hide: boolean;
|
|
116
|
-
};
|
|
117
|
-
mixins: vue.ComponentOptions<{}, any, any, any, any, any, any, any, any>[];
|
|
118
|
-
extends: vue.ComponentOptions<{}, any, any, any, any, any, any, any, any>;
|
|
119
|
-
vuex: {
|
|
120
|
-
getters: Record<string, unknown>;
|
|
121
|
-
};
|
|
122
|
-
computed: Record<string, unknown>;
|
|
123
|
-
};
|
|
124
|
-
__v_cache: Map<string | number | symbol | vue.ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any>, globalThis.VNode<vue.RendererNode, vue.RendererElement, {
|
|
125
|
-
[key: string]: any;
|
|
126
|
-
}>>;
|
|
127
|
-
__VUE_DEVTOOLS_UID__: string;
|
|
128
|
-
_isBeingDestroyed: boolean;
|
|
129
|
-
_instance: _vue_devtools_schema_dist.VueAppInstance;
|
|
130
|
-
_container: {
|
|
131
|
-
_vnode: {
|
|
132
|
-
component: _vue_devtools_schema_dist.VueAppInstance;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
isUnmounted: boolean;
|
|
136
|
-
parent: _vue_devtools_schema_dist.VueAppInstance;
|
|
137
|
-
appContext: {
|
|
138
|
-
app: any;
|
|
139
|
-
};
|
|
140
|
-
__VUE_DEVTOOLS_APP_RECORD__: _vue_devtools_schema_dist.AppRecord;
|
|
141
|
-
suspense: vue.SuspenseBoundary & {
|
|
142
|
-
suspenseKey: string;
|
|
143
|
-
};
|
|
144
|
-
renderContext: Record<string, unknown>;
|
|
145
|
-
devtoolsRawSetupState: Record<string, unknown>;
|
|
146
|
-
setupState: Record<string, unknown>;
|
|
147
|
-
provides: Record<string | symbol, unknown>;
|
|
148
|
-
ctx: Record<string, unknown>;
|
|
149
|
-
} & {
|
|
150
|
-
__VUE_DEVTOOLS_APP_RECORD_ID__: string;
|
|
151
|
-
__VUE_DEVTOOLS_APP_RECORD__: _vue_devtools_schema_dist.AppRecord;
|
|
152
|
-
}, version: string) => void): void;
|
|
153
|
-
vueAppConnected(fn: () => void): void;
|
|
154
|
-
componentAdded(fn: (app: vue.App<any> & vue.ComponentInternalInstance & {
|
|
155
|
-
type: {
|
|
156
|
-
_componentTag: string | undefined;
|
|
157
|
-
components: Record<string, vue.ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any>>;
|
|
158
|
-
__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__: string;
|
|
159
|
-
__isKeepAlive: boolean;
|
|
160
|
-
devtools: {
|
|
161
|
-
hide: boolean;
|
|
162
|
-
};
|
|
163
|
-
mixins: vue.ComponentOptions<{}, any, any, any, any, any, any, any, any>[];
|
|
164
|
-
extends: vue.ComponentOptions<{}, any, any, any, any, any, any, any, any>;
|
|
165
|
-
vuex: {
|
|
166
|
-
getters: Record<string, unknown>;
|
|
167
|
-
};
|
|
168
|
-
computed: Record<string, unknown>;
|
|
169
|
-
};
|
|
170
|
-
__v_cache: Map<string | number | symbol | vue.ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any>, globalThis.VNode<vue.RendererNode, vue.RendererElement, {
|
|
171
|
-
[key: string]: any;
|
|
172
|
-
}>>;
|
|
173
|
-
__VUE_DEVTOOLS_UID__: string;
|
|
174
|
-
_isBeingDestroyed: boolean;
|
|
175
|
-
_instance: _vue_devtools_schema_dist.VueAppInstance;
|
|
176
|
-
_container: {
|
|
177
|
-
_vnode: {
|
|
178
|
-
component: _vue_devtools_schema_dist.VueAppInstance;
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
isUnmounted: boolean;
|
|
182
|
-
parent: _vue_devtools_schema_dist.VueAppInstance;
|
|
183
|
-
appContext: {
|
|
184
|
-
app: any;
|
|
185
|
-
};
|
|
186
|
-
__VUE_DEVTOOLS_APP_RECORD__: _vue_devtools_schema_dist.AppRecord;
|
|
187
|
-
suspense: vue.SuspenseBoundary & {
|
|
188
|
-
suspenseKey: string;
|
|
189
|
-
};
|
|
190
|
-
renderContext: Record<string, unknown>;
|
|
191
|
-
devtoolsRawSetupState: Record<string, unknown>;
|
|
192
|
-
setupState: Record<string, unknown>;
|
|
193
|
-
provides: Record<string | symbol, unknown>;
|
|
194
|
-
ctx: Record<string, unknown>;
|
|
195
|
-
}, uid: number, parentUid: number, component: _vue_devtools_schema_dist.VueAppInstance) => void): () => void;
|
|
196
|
-
componentUpdated(fn: (app: vue.App<any> & vue.ComponentInternalInstance & {
|
|
197
|
-
type: {
|
|
198
|
-
_componentTag: string | undefined;
|
|
199
|
-
components: Record<string, vue.ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any>>;
|
|
200
|
-
__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__: string;
|
|
201
|
-
__isKeepAlive: boolean;
|
|
202
|
-
devtools: {
|
|
203
|
-
hide: boolean;
|
|
204
|
-
};
|
|
205
|
-
mixins: vue.ComponentOptions<{}, any, any, any, any, any, any, any, any>[];
|
|
206
|
-
extends: vue.ComponentOptions<{}, any, any, any, any, any, any, any, any>;
|
|
207
|
-
vuex: {
|
|
208
|
-
getters: Record<string, unknown>;
|
|
209
|
-
};
|
|
210
|
-
computed: Record<string, unknown>;
|
|
211
|
-
};
|
|
212
|
-
__v_cache: Map<string | number | symbol | vue.ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any>, globalThis.VNode<vue.RendererNode, vue.RendererElement, {
|
|
213
|
-
[key: string]: any;
|
|
214
|
-
}>>;
|
|
215
|
-
__VUE_DEVTOOLS_UID__: string;
|
|
216
|
-
_isBeingDestroyed: boolean;
|
|
217
|
-
_instance: _vue_devtools_schema_dist.VueAppInstance;
|
|
218
|
-
_container: {
|
|
219
|
-
_vnode: {
|
|
220
|
-
component: _vue_devtools_schema_dist.VueAppInstance;
|
|
221
|
-
};
|
|
222
|
-
};
|
|
223
|
-
isUnmounted: boolean;
|
|
224
|
-
parent: _vue_devtools_schema_dist.VueAppInstance;
|
|
225
|
-
appContext: {
|
|
226
|
-
app: any;
|
|
227
|
-
};
|
|
228
|
-
__VUE_DEVTOOLS_APP_RECORD__: _vue_devtools_schema_dist.AppRecord;
|
|
229
|
-
suspense: vue.SuspenseBoundary & {
|
|
230
|
-
suspenseKey: string;
|
|
231
|
-
};
|
|
232
|
-
renderContext: Record<string, unknown>;
|
|
233
|
-
devtoolsRawSetupState: Record<string, unknown>;
|
|
234
|
-
setupState: Record<string, unknown>;
|
|
235
|
-
provides: Record<string | symbol, unknown>;
|
|
236
|
-
ctx: Record<string, unknown>;
|
|
237
|
-
}, uid: number, parentUid: number, component: _vue_devtools_schema_dist.VueAppInstance) => void): () => void;
|
|
238
|
-
componentRemoved(fn: (app: vue.App<any> & vue.ComponentInternalInstance & {
|
|
239
|
-
type: {
|
|
240
|
-
_componentTag: string | undefined;
|
|
241
|
-
components: Record<string, vue.ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any>>;
|
|
242
|
-
__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__: string;
|
|
243
|
-
__isKeepAlive: boolean;
|
|
244
|
-
devtools: {
|
|
245
|
-
hide: boolean;
|
|
246
|
-
};
|
|
247
|
-
mixins: vue.ComponentOptions<{}, any, any, any, any, any, any, any, any>[];
|
|
248
|
-
extends: vue.ComponentOptions<{}, any, any, any, any, any, any, any, any>;
|
|
249
|
-
vuex: {
|
|
250
|
-
getters: Record<string, unknown>;
|
|
251
|
-
};
|
|
252
|
-
computed: Record<string, unknown>;
|
|
253
|
-
};
|
|
254
|
-
__v_cache: Map<string | number | symbol | vue.ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any>, globalThis.VNode<vue.RendererNode, vue.RendererElement, {
|
|
255
|
-
[key: string]: any;
|
|
256
|
-
}>>;
|
|
257
|
-
__VUE_DEVTOOLS_UID__: string;
|
|
258
|
-
_isBeingDestroyed: boolean;
|
|
259
|
-
_instance: _vue_devtools_schema_dist.VueAppInstance;
|
|
260
|
-
_container: {
|
|
261
|
-
_vnode: {
|
|
262
|
-
component: _vue_devtools_schema_dist.VueAppInstance;
|
|
263
|
-
};
|
|
264
|
-
};
|
|
265
|
-
isUnmounted: boolean;
|
|
266
|
-
parent: _vue_devtools_schema_dist.VueAppInstance;
|
|
267
|
-
appContext: {
|
|
268
|
-
app: any;
|
|
269
|
-
};
|
|
270
|
-
__VUE_DEVTOOLS_APP_RECORD__: _vue_devtools_schema_dist.AppRecord;
|
|
271
|
-
suspense: vue.SuspenseBoundary & {
|
|
272
|
-
suspenseKey: string;
|
|
273
|
-
};
|
|
274
|
-
renderContext: Record<string, unknown>;
|
|
275
|
-
devtoolsRawSetupState: Record<string, unknown>;
|
|
276
|
-
setupState: Record<string, unknown>;
|
|
277
|
-
provides: Record<string | symbol, unknown>;
|
|
278
|
-
ctx: Record<string, unknown>;
|
|
279
|
-
}, uid: number, parentUid: number, component: _vue_devtools_schema_dist.VueAppInstance) => void): () => void;
|
|
280
|
-
setupDevtoolsPlugin(fn: (pluginDescriptor: _vue_devtools_schema_dist.PluginDescriptor, setupFn: _vue_devtools_schema_dist.PluginSetupFunction) => void): void;
|
|
281
|
-
};
|
|
282
|
-
};
|
|
283
12
|
api: {
|
|
284
13
|
on: {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
componentInstance: _vue_devtools_schema_dist.VueAppInstance | undefined;
|
|
290
|
-
app: _vue_devtools_schema_dist.VueAppInstance | undefined;
|
|
14
|
+
readonly addTimelineEvent: (fn: (payload: _vue_devtools_kit_dist.TimelineEvent) => void) => void;
|
|
15
|
+
readonly inspectComponent: (fn: (payload: {
|
|
16
|
+
componentInstance: _vue_devtools_kit_dist.VueAppInstance | undefined;
|
|
17
|
+
app: _vue_devtools_kit_dist.VueAppInstance | undefined;
|
|
291
18
|
instanceData: {
|
|
292
19
|
id: string;
|
|
293
20
|
name: string;
|
|
294
21
|
file: string | undefined;
|
|
295
|
-
state:
|
|
296
|
-
instance:
|
|
297
|
-
};
|
|
298
|
-
}) => void)
|
|
299
|
-
visitComponentTree(fn: (payload: {
|
|
300
|
-
componentInstance:
|
|
301
|
-
app:
|
|
302
|
-
treeNode:
|
|
22
|
+
state: _vue_devtools_kit_dist.InspectorState[];
|
|
23
|
+
instance: _vue_devtools_kit_dist.VueAppInstance | undefined;
|
|
24
|
+
};
|
|
25
|
+
}) => void) => void;
|
|
26
|
+
readonly visitComponentTree: (fn: (payload: {
|
|
27
|
+
componentInstance: _vue_devtools_kit_dist.VueAppInstance | undefined;
|
|
28
|
+
app: _vue_devtools_kit_dist.VueAppInstance | undefined;
|
|
29
|
+
treeNode: _vue_devtools_kit_dist.ComponentTreeNode;
|
|
303
30
|
filter: string;
|
|
304
|
-
}) => void)
|
|
305
|
-
getInspectorTree(fn: (payload:
|
|
306
|
-
getInspectorState(fn: (payload:
|
|
307
|
-
sendInspectorTree(fn: (payload: string) => void)
|
|
308
|
-
sendInspectorState(fn: (payload: string) => void)
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
31
|
+
}) => void) => void;
|
|
32
|
+
readonly getInspectorTree: (fn: (payload: _vue_devtools_kit_dist.InspectorTreeApiPayload) => void) => void;
|
|
33
|
+
readonly getInspectorState: (fn: (payload: _vue_devtools_kit_dist.InspectorStateApiPayload) => void) => void;
|
|
34
|
+
readonly sendInspectorTree: (fn: (payload: string) => void) => void;
|
|
35
|
+
readonly sendInspectorState: (fn: (payload: string) => void) => void;
|
|
36
|
+
readonly editInspectorState: (fn: (payload: _vue_devtools_kit_dist.InspectorStateEditorPayload) => void) => void;
|
|
37
|
+
readonly editComponentState: () => void;
|
|
38
|
+
readonly routerInfoUpdated: (fn: (routerInfo: _vue_devtools_kit_dist.RouterInfo) => void) => void;
|
|
39
|
+
readonly getComponentBoundingRect: (fn: (payload: _vue_devtools_kit_dist.ComponentBoundingRectApiPayload) => void) => void;
|
|
40
|
+
readonly customTabsUpdated: (fn: (payload: _vue_devtools_kit_dist.CustomTab[]) => void) => void;
|
|
41
|
+
readonly customCommandsUpdated: (fn: (payload: _vue_devtools_kit_dist.CustomCommand[]) => void) => void;
|
|
42
|
+
readonly devtoolsStateUpdated: (fn: (state: _vue_devtools_kit_dist.DevToolsState, oldState: _vue_devtools_kit_dist.DevToolsState) => void) => void;
|
|
314
43
|
};
|
|
315
44
|
clear: () => void;
|
|
316
|
-
|
|
317
|
-
addTimelineEvent(payload:
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
getInspectorTree(payload?: _vue_devtools_kit.InspectorTreeApiPayload | undefined): Promise<string>;
|
|
45
|
+
addTimelineLayer(payload: _vue_devtools_kit_dist.TimelineLayerItem): void;
|
|
46
|
+
addTimelineEvent(payload: _vue_devtools_kit_dist.TimelineEvent): void;
|
|
47
|
+
addInspector(payload: _vue_devtools_kit_dist.InspectorApiPayload): void;
|
|
48
|
+
highlightElement(instance: _vue_devtools_kit_dist.VueAppInstance): void;
|
|
49
|
+
unhighlightElement(): void;
|
|
50
|
+
getInspectorTree(payload?: _vue_devtools_kit_dist.InspectorTreeApiPayload | undefined): Promise<string>;
|
|
323
51
|
getInspectorState(payload?: {
|
|
324
52
|
inspectorId?: string | undefined;
|
|
325
53
|
nodeId?: string | undefined;
|
|
326
54
|
} | undefined): string;
|
|
327
|
-
editInspectorState(payload:
|
|
55
|
+
editInspectorState(payload: _vue_devtools_kit_dist.InspectorStateEditorPayload): Promise<void>;
|
|
328
56
|
sendInspectorTree(inspectorId: string): Promise<void>;
|
|
329
57
|
sendInspectorState(inspectorId: string): Promise<void>;
|
|
330
|
-
|
|
331
|
-
addCustomCommand(action: _vue_devtools_kit.CustomCommand): void;
|
|
332
|
-
removeCustomCommand(actionId: string): void;
|
|
333
|
-
addInspector(payload: _vue_devtools_kit.AddInspectorApiPayload): void;
|
|
334
|
-
openInEditor(payload: _vue_devtools_kit.OpenInEditorOptions): void;
|
|
335
|
-
highlightElement(instance: any): void;
|
|
336
|
-
unhighlightElement(): void;
|
|
337
|
-
getComponentInstances(app: any): Promise<any[]>;
|
|
338
|
-
getVueInspector(): Promise<_vue_devtools_kit.VueInspector | null>;
|
|
58
|
+
getComponentInstances(app: _vue_devtools_kit_dist.VueAppInstance): Promise<_vue_devtools_kit_dist.VueAppInstance[]>;
|
|
339
59
|
visitComponentTree(payload: {
|
|
340
|
-
componentInstance:
|
|
341
|
-
app:
|
|
342
|
-
treeNode:
|
|
60
|
+
componentInstance: _vue_devtools_kit_dist.VueAppInstance | undefined;
|
|
61
|
+
app: _vue_devtools_kit_dist.VueAppInstance | undefined;
|
|
62
|
+
treeNode: _vue_devtools_kit_dist.ComponentTreeNode;
|
|
343
63
|
filter: string;
|
|
344
64
|
}): void;
|
|
345
|
-
addTimelineLayer(payload: {
|
|
346
|
-
id: string;
|
|
347
|
-
label: string;
|
|
348
|
-
color: number;
|
|
349
|
-
}): void;
|
|
350
65
|
notifyComponentUpdate(): void;
|
|
351
66
|
now(): number;
|
|
352
67
|
getSettings(): {
|
|
353
68
|
logStoreChanges: null;
|
|
354
69
|
};
|
|
70
|
+
toggleComponentInspector(payload: _vue_devtools_kit_dist.ComponentHighLighterOptions): void;
|
|
71
|
+
inspectComponentInspector(): Promise<string>;
|
|
72
|
+
scrollToComponent(payload: _vue_devtools_kit_dist.ScrollToComponentOptions): void;
|
|
73
|
+
getComponentBoundingRect(payload: _vue_devtools_kit_dist.ComponentBoundingRectApiPayload): string;
|
|
74
|
+
toggleApp(id: string): Promise<void>;
|
|
75
|
+
addCustomTab(tab: _vue_devtools_kit_dist.CustomTab): void;
|
|
76
|
+
addCustomCommand(action: _vue_devtools_kit_dist.CustomCommand): void;
|
|
77
|
+
removeCustomCommand(actionId: string): void;
|
|
78
|
+
openInEditor(payload: _vue_devtools_kit_dist.OpenInEditorOptions): void;
|
|
79
|
+
getVueInspector(): Promise<_vue_devtools_kit_dist.ComponentInspector>;
|
|
355
80
|
};
|
|
356
81
|
};
|
|
357
82
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/devtools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.
|
|
4
|
+
"version": "7.0.15",
|
|
5
5
|
"author": "webfansplz",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"hook.d.ts"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@vue/devtools-
|
|
33
|
-
"@vue/devtools-
|
|
32
|
+
"@vue/devtools-kit": "^7.0.15",
|
|
33
|
+
"@vue/devtools-electron": "^7.0.15"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsup --clean",
|