@vue/devtools-kit
Advanced tools
Comparing version 7.0.16 to 7.0.17
@@ -1,2 +0,2 @@ | ||
import { App, ComponentInternalInstance, ComponentOptions, SuspenseBoundary, VNode } from 'vue'; | ||
import { VNode, App, ComponentInternalInstance, ComponentOptions, SuspenseBoundary } from 'vue'; | ||
import { RouteLocationNormalizedLoaded, RouteRecordNormalized, Router } from 'vue-router'; | ||
@@ -64,2 +64,273 @@ export { Router } from 'vue-router'; | ||
declare function setupDevToolsPlugin(pluginDescriptor: PluginDescriptor, setupFn: PluginSetupFunction): void; | ||
interface InspectorNodeTag { | ||
label: string; | ||
textColor: number; | ||
backgroundColor: number; | ||
tooltip?: string; | ||
} | ||
interface ComponentTreeNode { | ||
uid: number | string; | ||
id: string; | ||
name: string; | ||
renderKey: string | number; | ||
inactive: boolean; | ||
isFragment: boolean; | ||
children: ComponentTreeNode[]; | ||
domOrder?: number[]; | ||
tags: InspectorNodeTag[]; | ||
autoOpen: boolean; | ||
file: string; | ||
} | ||
interface InspectorTreeApiPayload { | ||
app?: VueAppInstance; | ||
inspectorId?: string; | ||
filter?: string; | ||
instanceId?: string; | ||
rootNodes?: ComponentTreeNode[]; | ||
} | ||
interface ComponentBoundingRect { | ||
left: number; | ||
top: number; | ||
right: number; | ||
bottom: number; | ||
width: number; | ||
height: number; | ||
} | ||
interface ComponentBoundingRectApiPayload { | ||
app?: VueAppInstance; | ||
inspectorId?: string; | ||
instanceId?: string; | ||
rect?: ComponentBoundingRect; | ||
} | ||
interface InspectorCustomState { | ||
_custom?: { | ||
type?: string; | ||
displayText?: string; | ||
tooltipText?: string; | ||
value?: string | InspectorCustomState; | ||
stateTypeName?: string; | ||
fields?: { | ||
abstract?: boolean; | ||
}; | ||
}; | ||
} | ||
interface InspectorState { | ||
key: string; | ||
value: string | number | boolean | null | Record<string, unknown> | InspectorCustomState | Array<unknown>; | ||
type: string; | ||
stateType?: string; | ||
stateTypeName?: string; | ||
meta?: Record<string, boolean | string>; | ||
raw?: string; | ||
editable?: boolean; | ||
children?: { | ||
key: string; | ||
value: string | number; | ||
type: string; | ||
}[]; | ||
} | ||
interface InspectorStateApiPayload { | ||
app: VueAppInstance; | ||
inspectorId: string; | ||
nodeId: string; | ||
state: { | ||
id: string; | ||
name: string; | ||
file: string | undefined; | ||
state: InspectorState[]; | ||
instance: VueAppInstance | undefined; | ||
}; | ||
} | ||
interface AddInspectorApiPayload { | ||
id: string; | ||
label: string; | ||
icon?: string; | ||
treeFilterPlaceholder?: string; | ||
actions?: { | ||
icon: string; | ||
tooltip: string; | ||
action: (payload: unknown) => void; | ||
}[]; | ||
} | ||
type Recordable = Record<PropertyKey, any>; | ||
type PropPath = string | string[]; | ||
interface InspectorStateEditorPayload { | ||
app?: AppRecord['app']; | ||
inspectorId: string; | ||
nodeId: string; | ||
type: string; | ||
path: PropPath; | ||
state: { | ||
value: unknown; | ||
newKey: string; | ||
remove?: boolean; | ||
type: string; | ||
}; | ||
set?: (obj: Recordable, path: PropPath, value: unknown, cb?: (object: Recordable, field: string, value: unknown) => void) => unknown; | ||
} | ||
type customTypeEnums = 'function' | 'bigint' | 'map' | 'set' | 'store' | 'router' | 'component' | 'component-definition' | 'HTMLElement' | 'component-definition' | 'date'; | ||
interface ComponentHighLighterOptions { | ||
bounds: ComponentBoundingRect; | ||
name?: string; | ||
id?: string; | ||
visible?: boolean; | ||
} | ||
interface ScrollToComponentOptions { | ||
id?: string; | ||
} | ||
declare function toggleComponentHighLighter(options: ComponentHighLighterOptions): void; | ||
declare function highlight(instance: VueAppInstance): void; | ||
declare function unhighlight(): void; | ||
declare function inspectComponentHighLighter(): Promise<string>; | ||
declare function scrollToComponent(options: ScrollToComponentOptions): void; | ||
type TabCategory = 'pinned' | 'app' | 'modules' | 'advanced'; | ||
type ModuleView = ModuleIframeView | ModuleVNodeView; | ||
interface ModuleIframeView { | ||
/** | ||
* Iframe view | ||
*/ | ||
type: 'iframe'; | ||
/** | ||
* Url of the iframe | ||
*/ | ||
src: string; | ||
/** | ||
* Persist the iframe instance even if the tab is not active | ||
* | ||
* @default true | ||
*/ | ||
persistent?: boolean; | ||
} | ||
interface ModuleVNodeView { | ||
/** | ||
* Vue's VNode view | ||
*/ | ||
type: 'vnode'; | ||
/** | ||
* Send vnode to the client, they must be static and serializable | ||
*/ | ||
vnode: VNode; | ||
} | ||
interface CustomTab { | ||
/** | ||
* The name of the tab, must be unique | ||
*/ | ||
name: string; | ||
/** | ||
* Icon of the tab, support any Iconify icons, or a url to an image | ||
*/ | ||
icon?: string; | ||
/** | ||
* Title of the tab | ||
*/ | ||
title: string; | ||
/** | ||
* Main view of the tab | ||
*/ | ||
view: ModuleView; | ||
/** | ||
* Category of the tab | ||
* @default 'app' | ||
*/ | ||
category?: TabCategory; | ||
} | ||
interface CustomCommandAction { | ||
type: 'url'; | ||
/** | ||
* Url of the action, if set, execute the action will open the url | ||
*/ | ||
src: string; | ||
} | ||
interface CustomCommand { | ||
/** | ||
* The id of the command, should be unique | ||
*/ | ||
id: string; | ||
title: string; | ||
description?: string; | ||
/** | ||
* Order of the command, bigger number will be shown first | ||
* @default 0 | ||
*/ | ||
order?: number; | ||
/** | ||
* Icon of the tab, support any Iconify icons, or a url to an image | ||
*/ | ||
icon?: string; | ||
/** | ||
* - action of the command | ||
* - __NOTE__: This will be ignored if `children` is set | ||
*/ | ||
action?: CustomCommandAction; | ||
/** | ||
* - children of action, if set, execute the action will show the children | ||
*/ | ||
children?: Omit<CustomCommand, 'children'>[]; | ||
} | ||
declare function addCustomCommand(action: CustomCommand): void; | ||
declare function removeCustomCommand(actionId: string): void; | ||
declare enum DevToolsEvents { | ||
DEVTOOLS_STATE_UPDATED = "devtools:state-updated", | ||
DEVTOOLS_CONNECTED_UPDATED = "devtools:connected-updated", | ||
ROUTER_INFO_UPDATED = "router-info:updated", | ||
COMPONENT_STATE_INSPECT = "component-state:inspect", | ||
COMPONENT_UPDATED = "component:updated", | ||
TOGGLE_COMPONENT_HIGHLIGHTER = "component-highlighter:toggle", | ||
GET_COMPONENT_BOUNDING_RECT = "component-bounding-rect:get", | ||
SCROLL_TO_COMPONENT = "scroll-to-component", | ||
GET_INSPECTOR_TREE = "inspector-tree:get", | ||
SEND_INSPECTOR_TREE = "inspector-tree:send", | ||
GET_INSPECTOR_STATE = "inspector-state:get", | ||
EDIT_INSPECTOR_STATE = "inspector-state:edit", | ||
SEND_INSPECTOR_STATE = "inspector-state:send", | ||
VISIT_COMPONENT_TREE = "component-tree:visit", | ||
ADD_TIMELINE_EVENT = "timeline:add-event", | ||
CUSTOM_TABS_UPDATED = "custom-tabs:updated", | ||
CUSTOM_COMMANDS_UPDATED = "custom-commands:updated" | ||
} | ||
interface DevToolsEvent$1 { | ||
[DevToolsEvents.ADD_TIMELINE_EVENT]: (payload: TimelineEvent) => void; | ||
[DevToolsEvents.ROUTER_INFO_UPDATED]: (routerInfo: RouterInfo) => void; | ||
[DevToolsEvents.TOGGLE_COMPONENT_HIGHLIGHTER]: (payload: ComponentHighLighterOptions) => void; | ||
[DevToolsEvents.SCROLL_TO_COMPONENT]: (payload: ScrollToComponentOptions) => void; | ||
[DevToolsEvents.GET_COMPONENT_BOUNDING_RECT]: (payload: ComponentBoundingRectApiPayload) => void; | ||
[DevToolsEvents.DEVTOOLS_STATE_UPDATED]: (state: DevToolsState, oldState: DevToolsState) => void; | ||
[DevToolsEvents.DEVTOOLS_CONNECTED_UPDATED]: (state: DevToolsState, oldState: DevToolsState) => void; | ||
[DevToolsEvents.COMPONENT_STATE_INSPECT]: (payload: { | ||
componentInstance: VueAppInstance | undefined; | ||
app: VueAppInstance | undefined; | ||
instanceData: InspectorStateApiPayload['state']; | ||
}) => void; | ||
[DevToolsEvents.GET_INSPECTOR_TREE]: (payload: InspectorTreeApiPayload) => void; | ||
[DevToolsEvents.SEND_INSPECTOR_TREE]: (payload: { | ||
inspectorId: string; | ||
data: InspectorTreeApiPayload['rootNodes']; | ||
}) => void; | ||
[DevToolsEvents.GET_INSPECTOR_STATE]: (payload: InspectorStateApiPayload) => void; | ||
[DevToolsEvents.EDIT_INSPECTOR_STATE]: (payload: InspectorStateEditorPayload) => void; | ||
[DevToolsEvents.SEND_INSPECTOR_STATE]: (payload: string) => void; | ||
[DevToolsEvents.VISIT_COMPONENT_TREE]: (payload: { | ||
componentInstance: VueAppInstance | undefined; | ||
app: VueAppInstance | undefined; | ||
treeNode: ComponentTreeNode; | ||
filter: string; | ||
}) => void; | ||
[DevToolsEvents.CUSTOM_TABS_UPDATED]: (payload: CustomTab[]) => void; | ||
[DevToolsEvents.CUSTOM_COMMANDS_UPDATED]: (payload: CustomCommand[]) => void; | ||
[DevToolsEvents.COMPONENT_UPDATED]: () => void; | ||
} | ||
type DevToolsEventParams<T extends keyof DevToolsEvent$1> = Parameters<DevToolsEvent$1[T]>; | ||
type PluginApi = DevToolsPluginApi; | ||
@@ -179,8 +450,8 @@ declare type PluginSettingsItem = { | ||
} | ||
interface DevToolsEvent$1 { | ||
interface DevToolsEvent { | ||
[DevToolsHooks.APP_INIT]: (app: VueAppInstance['appContext']['app'], version: string) => void; | ||
[DevToolsHooks.APP_CONNECTED]: () => void; | ||
[DevToolsHooks.COMPONENT_ADDED]: (app: HookAppInstance, uid: number, parentUid: number, component: VueAppInstance) => void; | ||
[DevToolsHooks.COMPONENT_UPDATED]: DevToolsEvent$1['component:added']; | ||
[DevToolsHooks.COMPONENT_REMOVED]: DevToolsEvent$1['component:added']; | ||
[DevToolsHooks.COMPONENT_UPDATED]: DevToolsEvent['component:added']; | ||
[DevToolsHooks.COMPONENT_REMOVED]: DevToolsEvent['component:added']; | ||
[DevToolsHooks.SETUP_DEVTOOLS_PLUGIN]: (pluginDescriptor: PluginDescriptor, setupFn: PluginSetupFunction) => void; | ||
@@ -204,8 +475,8 @@ } | ||
on: { | ||
vueAppInit: (fn: DevToolsEvent$1[DevToolsHooks.APP_INIT]) => void; | ||
vueAppConnected: (fn: DevToolsEvent$1[DevToolsHooks.APP_CONNECTED]) => void; | ||
componentAdded: (fn: DevToolsEvent$1[DevToolsHooks.COMPONENT_ADDED]) => () => void; | ||
componentUpdated: (fn: DevToolsEvent$1[DevToolsHooks.COMPONENT_UPDATED]) => () => void; | ||
componentRemoved: (fn: DevToolsEvent$1[DevToolsHooks.COMPONENT_REMOVED]) => () => void; | ||
setupDevtoolsPlugin: (fn: DevToolsEvent$1[DevToolsHooks.SETUP_DEVTOOLS_PLUGIN]) => void; | ||
vueAppInit: (fn: DevToolsEvent[DevToolsHooks.APP_INIT]) => void; | ||
vueAppConnected: (fn: DevToolsEvent[DevToolsHooks.APP_CONNECTED]) => void; | ||
componentAdded: (fn: DevToolsEvent[DevToolsHooks.COMPONENT_ADDED]) => () => void; | ||
componentUpdated: (fn: DevToolsEvent[DevToolsHooks.COMPONENT_UPDATED]) => () => void; | ||
componentRemoved: (fn: DevToolsEvent[DevToolsHooks.COMPONENT_REMOVED]) => () => void; | ||
setupDevtoolsPlugin: (fn: DevToolsEvent[DevToolsHooks.SETUP_DEVTOOLS_PLUGIN]) => void; | ||
}; | ||
@@ -215,90 +486,2 @@ setupDevToolsPlugin: (pluginDescriptor: PluginDescriptor, setupFn: PluginSetupFunction) => void; | ||
interface CustomCommandAction { | ||
type: 'url'; | ||
/** | ||
* Url of the action, if set, execute the action will open the url | ||
*/ | ||
src: string; | ||
} | ||
interface CustomCommand { | ||
/** | ||
* The id of the command, should be unique | ||
*/ | ||
id: string; | ||
title: string; | ||
description?: string; | ||
/** | ||
* Order of the command, bigger number will be shown first | ||
* @default 0 | ||
*/ | ||
order?: number; | ||
/** | ||
* Icon of the tab, support any Iconify icons, or a url to an image | ||
*/ | ||
icon?: string; | ||
/** | ||
* - action of the command | ||
* - __NOTE__: This will be ignored if `children` is set | ||
*/ | ||
action?: CustomCommandAction; | ||
/** | ||
* - children of action, if set, execute the action will show the children | ||
*/ | ||
children?: Omit<CustomCommand, 'children'>[]; | ||
} | ||
declare function addCustomCommand(action: CustomCommand): void; | ||
declare function removeCustomCommand(actionId: string): void; | ||
type TabCategory = 'pinned' | 'app' | 'modules' | 'advanced'; | ||
type ModuleView = ModuleIframeView | ModuleVNodeView; | ||
interface ModuleIframeView { | ||
/** | ||
* Iframe view | ||
*/ | ||
type: 'iframe'; | ||
/** | ||
* Url of the iframe | ||
*/ | ||
src: string; | ||
/** | ||
* Persist the iframe instance even if the tab is not active | ||
* | ||
* @default true | ||
*/ | ||
persistent?: boolean; | ||
} | ||
interface ModuleVNodeView { | ||
/** | ||
* Vue's VNode view | ||
*/ | ||
type: 'vnode'; | ||
/** | ||
* Send vnode to the client, they must be static and serializable | ||
*/ | ||
vnode: VNode; | ||
} | ||
interface CustomTab { | ||
/** | ||
* The name of the tab, must be unique | ||
*/ | ||
name: string; | ||
/** | ||
* Icon of the tab, support any Iconify icons, or a url to an image | ||
*/ | ||
icon?: string; | ||
/** | ||
* Title of the tab | ||
*/ | ||
title: string; | ||
/** | ||
* Main view of the tab | ||
*/ | ||
view: ModuleView; | ||
/** | ||
* Category of the tab | ||
* @default 'app' | ||
*/ | ||
category?: TabCategory; | ||
} | ||
declare function addCustomTab(tab: CustomTab): void; | ||
@@ -340,115 +523,2 @@ | ||
interface InspectorNodeTag { | ||
label: string; | ||
textColor: number; | ||
backgroundColor: number; | ||
tooltip?: string; | ||
} | ||
interface ComponentTreeNode { | ||
uid: number | string; | ||
id: string; | ||
name: string; | ||
renderKey: string | number; | ||
inactive: boolean; | ||
isFragment: boolean; | ||
children: ComponentTreeNode[]; | ||
domOrder?: number[]; | ||
tags: InspectorNodeTag[]; | ||
autoOpen: boolean; | ||
file: string; | ||
} | ||
interface InspectorTreeApiPayload { | ||
app?: VueAppInstance; | ||
inspectorId?: string; | ||
filter?: string; | ||
instanceId?: string; | ||
rootNodes?: ComponentTreeNode[]; | ||
} | ||
interface ComponentBoundingRect { | ||
left: number; | ||
top: number; | ||
right: number; | ||
bottom: number; | ||
width: number; | ||
height: number; | ||
} | ||
interface ComponentBoundingRectApiPayload { | ||
app?: VueAppInstance; | ||
inspectorId?: string; | ||
instanceId?: string; | ||
rect?: ComponentBoundingRect; | ||
} | ||
interface InspectorCustomState { | ||
_custom?: { | ||
type?: string; | ||
displayText?: string; | ||
tooltipText?: string; | ||
value?: string | InspectorCustomState; | ||
stateTypeName?: string; | ||
fields?: { | ||
abstract?: boolean; | ||
}; | ||
}; | ||
} | ||
interface InspectorState { | ||
key: string; | ||
value: string | number | boolean | null | Record<string, unknown> | InspectorCustomState | Array<unknown>; | ||
type: string; | ||
stateType?: string; | ||
stateTypeName?: string; | ||
meta?: Record<string, boolean | string>; | ||
raw?: string; | ||
editable?: boolean; | ||
children?: { | ||
key: string; | ||
value: string | number; | ||
type: string; | ||
}[]; | ||
} | ||
interface InspectorStateApiPayload { | ||
app: VueAppInstance; | ||
inspectorId: string; | ||
nodeId: string; | ||
state: { | ||
id: string; | ||
name: string; | ||
file: string | undefined; | ||
state: InspectorState[]; | ||
instance: VueAppInstance | undefined; | ||
}; | ||
} | ||
interface AddInspectorApiPayload { | ||
id: string; | ||
label: string; | ||
icon?: string; | ||
treeFilterPlaceholder?: string; | ||
actions?: { | ||
icon: string; | ||
tooltip: string; | ||
action: (payload: unknown) => void; | ||
}[]; | ||
} | ||
type Recordable = Record<PropertyKey, any>; | ||
type PropPath = string | string[]; | ||
interface InspectorStateEditorPayload { | ||
app?: AppRecord['app']; | ||
inspectorId: string; | ||
nodeId: string; | ||
type: string; | ||
path: PropPath; | ||
state: { | ||
value: unknown; | ||
newKey: string; | ||
remove?: boolean; | ||
type: string; | ||
}; | ||
set?: (obj: Recordable, path: PropPath, value: unknown, cb?: (object: Recordable, field: string, value: unknown) => void) => unknown; | ||
} | ||
type customTypeEnums = 'function' | 'bigint' | 'map' | 'set' | 'store' | 'router' | 'component' | 'component-definition' | 'HTMLElement' | 'component-definition'; | ||
interface OpenInEditorOptions { | ||
@@ -461,83 +531,18 @@ file?: string; | ||
interface ComponentHighLighterOptions { | ||
bounds: ComponentBoundingRect; | ||
name?: string; | ||
id?: string; | ||
visible?: boolean; | ||
} | ||
interface ScrollToComponentOptions { | ||
id?: string; | ||
} | ||
declare function toggleComponentHighLighter(options: ComponentHighLighterOptions): void; | ||
declare function highlight(instance: VueAppInstance): void; | ||
declare function unhighlight(): void; | ||
declare function inspectComponentHighLighter(): Promise<string>; | ||
declare function scrollToComponent(options: ScrollToComponentOptions): void; | ||
declare enum DevToolsEvents { | ||
DEVTOOLS_STATE_UPDATED = "devtools:state-updated", | ||
DEVTOOLS_CONNECTED_UPDATED = "devtools:connected-updated", | ||
ROUTER_INFO_UPDATED = "router-info:updated", | ||
COMPONENT_STATE_INSPECT = "component-state:inspect", | ||
COMPONENT_UPDATED = "component:updated", | ||
TOGGLE_COMPONENT_HIGHLIGHTER = "component-highlighter:toggle", | ||
GET_COMPONENT_BOUNDING_RECT = "component-bounding-rect:get", | ||
SCROLL_TO_COMPONENT = "scroll-to-component", | ||
GET_INSPECTOR_TREE = "inspector-tree:get", | ||
SEND_INSPECTOR_TREE = "inspector-tree:send", | ||
GET_INSPECTOR_STATE = "inspector-state:get", | ||
EDIT_INSPECTOR_STATE = "inspector-state:edit", | ||
SEND_INSPECTOR_STATE = "inspector-state:send", | ||
VISIT_COMPONENT_TREE = "component-tree:visit", | ||
ADD_TIMELINE_EVENT = "timeline:add-event", | ||
CUSTOM_TABS_UPDATED = "custom-tabs:updated", | ||
CUSTOM_COMMANDS_UPDATED = "custom-commands:updated" | ||
} | ||
interface DevToolsEvent { | ||
[DevToolsEvents.ADD_TIMELINE_EVENT]: (payload: TimelineEvent) => void; | ||
[DevToolsEvents.ROUTER_INFO_UPDATED]: (routerInfo: RouterInfo) => void; | ||
[DevToolsEvents.TOGGLE_COMPONENT_HIGHLIGHTER]: (payload: ComponentHighLighterOptions) => void; | ||
[DevToolsEvents.SCROLL_TO_COMPONENT]: (payload: ScrollToComponentOptions) => void; | ||
[DevToolsEvents.GET_COMPONENT_BOUNDING_RECT]: (payload: ComponentBoundingRectApiPayload) => void; | ||
[DevToolsEvents.DEVTOOLS_STATE_UPDATED]: (state: DevToolsState, oldState: DevToolsState) => void; | ||
[DevToolsEvents.DEVTOOLS_CONNECTED_UPDATED]: (state: DevToolsState, oldState: DevToolsState) => void; | ||
[DevToolsEvents.COMPONENT_STATE_INSPECT]: (payload: { | ||
componentInstance: VueAppInstance | undefined; | ||
app: VueAppInstance | undefined; | ||
instanceData: InspectorStateApiPayload['state']; | ||
}) => void; | ||
[DevToolsEvents.GET_INSPECTOR_TREE]: (payload: InspectorTreeApiPayload) => void; | ||
[DevToolsEvents.SEND_INSPECTOR_TREE]: (payload: string) => void; | ||
[DevToolsEvents.GET_INSPECTOR_STATE]: (payload: InspectorStateApiPayload) => void; | ||
[DevToolsEvents.EDIT_INSPECTOR_STATE]: (payload: InspectorStateEditorPayload) => void; | ||
[DevToolsEvents.SEND_INSPECTOR_STATE]: (payload: string) => void; | ||
[DevToolsEvents.VISIT_COMPONENT_TREE]: (payload: { | ||
componentInstance: VueAppInstance | undefined; | ||
app: VueAppInstance | undefined; | ||
treeNode: ComponentTreeNode; | ||
filter: string; | ||
}) => void; | ||
[DevToolsEvents.CUSTOM_TABS_UPDATED]: (payload: CustomTab[]) => void; | ||
[DevToolsEvents.CUSTOM_COMMANDS_UPDATED]: (payload: CustomCommand[]) => void; | ||
[DevToolsEvents.COMPONENT_UPDATED]: () => void; | ||
} | ||
type DevToolsEventParams<T extends keyof DevToolsEvent> = Parameters<DevToolsEvent[T]>; | ||
declare const on: { | ||
readonly addTimelineEvent: (fn: DevToolsEvent[DevToolsEvents.ADD_TIMELINE_EVENT]) => void; | ||
readonly inspectComponent: (fn: DevToolsEvent[DevToolsEvents.COMPONENT_STATE_INSPECT]) => void; | ||
readonly visitComponentTree: (fn: DevToolsEvent[DevToolsEvents.VISIT_COMPONENT_TREE]) => void; | ||
readonly getInspectorTree: (fn: DevToolsEvent[DevToolsEvents.GET_INSPECTOR_TREE]) => void; | ||
readonly getInspectorState: (fn: DevToolsEvent[DevToolsEvents.GET_INSPECTOR_STATE]) => void; | ||
readonly sendInspectorTree: (fn: DevToolsEvent[DevToolsEvents.SEND_INSPECTOR_TREE]) => void; | ||
readonly sendInspectorState: (fn: DevToolsEvent[DevToolsEvents.SEND_INSPECTOR_STATE]) => void; | ||
readonly editInspectorState: (fn: DevToolsEvent[DevToolsEvents.EDIT_INSPECTOR_STATE]) => void; | ||
readonly addTimelineEvent: (fn: DevToolsEvent$1[DevToolsEvents.ADD_TIMELINE_EVENT]) => void; | ||
readonly inspectComponent: (fn: DevToolsEvent$1[DevToolsEvents.COMPONENT_STATE_INSPECT]) => void; | ||
readonly visitComponentTree: (fn: DevToolsEvent$1[DevToolsEvents.VISIT_COMPONENT_TREE]) => void; | ||
readonly getInspectorTree: (fn: DevToolsEvent$1[DevToolsEvents.GET_INSPECTOR_TREE]) => void; | ||
readonly getInspectorState: (fn: DevToolsEvent$1[DevToolsEvents.GET_INSPECTOR_STATE]) => void; | ||
readonly sendInspectorTree: (fn: DevToolsEvent$1[DevToolsEvents.SEND_INSPECTOR_TREE]) => void; | ||
readonly sendInspectorState: (fn: DevToolsEvent$1[DevToolsEvents.SEND_INSPECTOR_STATE]) => void; | ||
readonly editInspectorState: (fn: DevToolsEvent$1[DevToolsEvents.EDIT_INSPECTOR_STATE]) => void; | ||
readonly editComponentState: () => void; | ||
readonly componentUpdated: (fn: DevToolsEvent[DevToolsEvents.COMPONENT_UPDATED]) => void; | ||
readonly routerInfoUpdated: (fn: DevToolsEvent[DevToolsEvents.ROUTER_INFO_UPDATED]) => void; | ||
readonly getComponentBoundingRect: (fn: DevToolsEvent[DevToolsEvents.GET_COMPONENT_BOUNDING_RECT]) => void; | ||
readonly customTabsUpdated: (fn: DevToolsEvent[DevToolsEvents.CUSTOM_TABS_UPDATED]) => void; | ||
readonly customCommandsUpdated: (fn: DevToolsEvent[DevToolsEvents.CUSTOM_COMMANDS_UPDATED]) => void; | ||
readonly devtoolsStateUpdated: (fn: DevToolsEvent[DevToolsEvents.DEVTOOLS_STATE_UPDATED]) => void; | ||
readonly componentUpdated: (fn: DevToolsEvent$1[DevToolsEvents.COMPONENT_UPDATED]) => void; | ||
readonly routerInfoUpdated: (fn: DevToolsEvent$1[DevToolsEvents.ROUTER_INFO_UPDATED]) => void; | ||
readonly getComponentBoundingRect: (fn: DevToolsEvent$1[DevToolsEvents.GET_COMPONENT_BOUNDING_RECT]) => void; | ||
readonly customTabsUpdated: (fn: DevToolsEvent$1[DevToolsEvents.CUSTOM_TABS_UPDATED]) => void; | ||
readonly customCommandsUpdated: (fn: DevToolsEvent$1[DevToolsEvents.CUSTOM_COMMANDS_UPDATED]) => void; | ||
readonly devtoolsStateUpdated: (fn: DevToolsEvent$1[DevToolsEvents.DEVTOOLS_STATE_UPDATED]) => void; | ||
}; | ||
@@ -547,4 +552,2 @@ | ||
declare function setupDevToolsPlugin(pluginDescriptor: PluginDescriptor, setupFn: PluginSetupFunction): void; | ||
declare class DevToolsPluginApi { | ||
@@ -559,7 +562,7 @@ on: typeof on; | ||
unhighlightElement(): void; | ||
getInspectorTree(payload?: DevToolsEventParams<DevToolsEvents.GET_INSPECTOR_TREE>[0]): Promise<string>; | ||
getInspectorTree(payload?: DevToolsEventParams<DevToolsEvents.GET_INSPECTOR_TREE>[0]): Promise<ComponentTreeNode[]>; | ||
getInspectorState(payload?: { | ||
inspectorId?: string; | ||
nodeId?: string; | ||
}): string; | ||
}): any; | ||
editInspectorState(payload: InspectorStateEditorPayload): Promise<void>; | ||
@@ -587,2 +590,6 @@ sendInspectorTree(inspectorId: string): Promise<void>; | ||
declare function initDevTools(): void; | ||
declare function onDevToolsConnected(fn: () => void): Promise<void>; | ||
declare function onDevToolsClientConnected(fn: () => void): Promise<void>; | ||
declare const hook: VueHooks; | ||
@@ -596,6 +603,2 @@ | ||
declare function initDevTools(): void; | ||
declare function onDevToolsConnected(fn: () => void): Promise<void>; | ||
declare function onDevToolsClientConnected(fn: () => void): Promise<void>; | ||
declare function getInspectorStateValueType(value: any, raw?: boolean): string; | ||
@@ -634,2 +637,2 @@ declare function formatInspectorStateValue(value: any, quotes?: boolean): any; | ||
export { type AddInspectorApiPayload, type AppRecord, type ComponentBoundingRect, type ComponentBoundingRectApiPayload, type ComponentHighLighterOptions, type ComponentInspector, type ComponentTreeNode, type CustomCommand, type CustomCommandAction, type CustomTab, type DevToolsContext, type DevToolsEnv, type DevToolsEvent$1 as DevToolsEvent, type DevToolsHook, DevToolsHooks, type DevToolsState, type DevToolsType, type Inspector, type InspectorApiPayload, type InspectorCustomState, type InspectorNodeTag, type InspectorState, type InspectorStateApiPayload, type InspectorStateEditorPayload, type InspectorTreeApiPayload, type OpenInEditorOptions, type PluginApi, type PluginDescriptor, type PluginSettingsItem, type PluginSetupFunction, type PropPath, type RouterInfo, type ScrollToComponentOptions, type TimelineEvent, type TimelineLayerItem, UNDEFINED, type VueAppInstance, type VueHooks, addCustomCommand, addCustomTab, addInspector, addTimelineLayer, type customTypeEnums, devtools, formatInspectorStateValue, getComponentInspector, getInspector, getInspectorStateValueType, getRaw, getTimelineLayer, highlight, inspectComponentHighLighter, onDevToolsClientConnected, onDevToolsConnected, openInEditor, parse, removeCustomCommand, scrollToComponent, setDevToolsEnv, setupDevToolsPlugin, stringify, toEdit, toSubmit, toggleComponentHighLighter, toggleComponentInspectorEnabled, unhighlight, updateInspector }; | ||
export { type AddInspectorApiPayload, type AppRecord, type ComponentBoundingRect, type ComponentBoundingRectApiPayload, type ComponentHighLighterOptions, type ComponentInspector, type ComponentTreeNode, type CustomCommand, type CustomCommandAction, type CustomTab, type DevToolsContext, type DevToolsEnv, type DevToolsEvent, type DevToolsHook, DevToolsHooks, type DevToolsState, type DevToolsType, type Inspector, type InspectorApiPayload, type InspectorCustomState, type InspectorNodeTag, type InspectorState, type InspectorStateApiPayload, type InspectorStateEditorPayload, type InspectorTreeApiPayload, type OpenInEditorOptions, type PluginApi, type PluginDescriptor, type PluginSettingsItem, type PluginSetupFunction, type PropPath, type RouterInfo, type ScrollToComponentOptions, type TimelineEvent, type TimelineLayerItem, UNDEFINED, type VueAppInstance, type VueHooks, addCustomCommand, addCustomTab, addInspector, addTimelineLayer, type customTypeEnums, devtools, formatInspectorStateValue, getComponentInspector, getInspector, getInspectorStateValueType, getRaw, getTimelineLayer, highlight, inspectComponentHighLighter, onDevToolsClientConnected, onDevToolsConnected, openInEditor, parse, removeCustomCommand, scrollToComponent, setDevToolsEnv, setupDevToolsPlugin, stringify, toEdit, toSubmit, toggleComponentHighLighter, toggleComponentInspectorEnabled, unhighlight, updateInspector }; |
{ | ||
"name": "@vue/devtools-kit", | ||
"type": "module", | ||
"version": "7.0.16", | ||
"version": "7.0.17", | ||
"author": "webfansplz", | ||
@@ -28,3 +28,3 @@ "license": "MIT", | ||
"speakingurl": "^14.0.1", | ||
"@vue/devtools-shared": "^7.0.16" | ||
"@vue/devtools-shared": "^7.0.17" | ||
}, | ||
@@ -31,0 +31,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
311778
9360
Updated@vue/devtools-shared@^7.0.17