@histoire/vendors 0.17.6 → 0.17.14
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/client/b-floating-vue.js +1 -1
- package/dist/client/b-iconify.js +1 -1
- package/dist/client/b-pinia.js +1 -1
- package/dist/client/b-vue-router.js +1 -1
- package/dist/client/b-vue-use.js +1 -1
- package/dist/client/b-vue.js +1 -1
- package/dist/client/node_modules/@babel/parser/package.json +3 -3
- package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +2 -1
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/api.d.ts +17 -17
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/app.d.ts +1 -1
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/component.d.ts +5 -5
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/hooks.d.ts +27 -27
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/util.d.ts +1 -1
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/env.d.ts +1 -1
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/index.d.ts +6 -6
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/plugin.d.ts +3 -3
- package/dist/client/node_modules/@vue/devtools-api/package.json +12 -12
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/package.json +2 -2
- package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/package.json +2 -2
- package/dist/client/node_modules/csstype/index.d.ts +1270 -721
- package/dist/client/node_modules/csstype/package.json +3 -3
- package/dist/client/node_modules/magic-string/dist/magic-string.cjs.d.ts +4 -0
- package/dist/client/node_modules/magic-string/package.json +7 -7
- package/dist/client/node_modules/pinia/node_modules/vue-demi/package.json +2 -2
- package/dist/client/node_modules/postcss/lib/at-rule.d.ts +25 -3
- package/dist/client/node_modules/postcss/lib/container.d.ts +44 -6
- package/dist/client/node_modules/postcss/lib/declaration.d.ts +2 -2
- package/dist/client/node_modules/postcss/lib/document.d.ts +1 -0
- package/dist/client/node_modules/postcss/lib/node.d.ts +3 -3
- package/dist/client/node_modules/postcss/lib/postcss.d.ts +1 -1
- package/dist/client/node_modules/postcss/lib/root.d.ts +1 -0
- package/dist/client/node_modules/postcss/lib/rule.d.ts +6 -2
- package/dist/client/node_modules/postcss/package.json +2 -2
- package/dist/client/vue.runtime.esm-bundler.js +1 -1
- package/package.json +3 -3
- package/rollup.config.mjs +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineComponent, o as openBlock,
|
|
1
|
+
import { d as defineComponent, o as openBlock, n as normalizeClass, g as guardReactiveProps, a as normalizeProps, r as renderSlot, c as createElementBlock, b as nextTick, w as withScopeId, p as pushScopeId, e as popScopeId, f as createBlock, h as createBaseVNode, i as resolveComponent, j as normalizeStyle, k as withKeys, F as Fragment, l as createCommentVNode, m as withCtx, q as createVNode, s as mergeProps, t as toDisplayString, u as ref, v as h, x as createApp } from './vue.runtime.esm-bundler.js';
|
|
2
2
|
|
|
3
3
|
function getBasePlacement(placement) {
|
|
4
4
|
return placement.split('-')[0];
|
package/dist/client/b-iconify.js
CHANGED
package/dist/client/b-pinia.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as isVue2, s as set, d as del } from './index.js';
|
|
2
2
|
import { s as setupDevtoolsPlugin } from './index2.js';
|
|
3
|
-
import { y as hasInjectionContext, z as inject, A as toRaw, B as
|
|
3
|
+
import { y as hasInjectionContext, z as inject, A as toRaw, B as unref, C as watch, D as markRaw, E as effectScope, u as ref, G as isRef, H as isReactive, I as getCurrentScope, J as onScopeDispose, K as toRefs, L as computed, b as nextTick, M as reactive, N as toRef, O as getCurrentInstance } from './vue.runtime.esm-bundler.js';
|
|
4
4
|
|
|
5
5
|
/*!
|
|
6
6
|
* pinia v2.1.7
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as onUnmounted, Q as onDeactivated, R as onActivated, O as getCurrentInstance, z as inject,
|
|
1
|
+
import { P as onUnmounted, Q as onDeactivated, R as onActivated, O as getCurrentInstance, z as inject, B as unref, L as computed, S as watchEffect, M as reactive, v as h, d as defineComponent, T as provide, u as ref, C as watch, U as shallowRef, b as nextTick, V as shallowReactive } from './vue.runtime.esm-bundler.js';
|
|
2
2
|
import { s as setupDevtoolsPlugin } from './index2.js';
|
|
3
3
|
|
|
4
4
|
/*!
|
package/dist/client/b-vue-use.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as isVue3, i as isVue2, s as set$1, d as del } from './index.js';
|
|
2
|
-
import { U as shallowRef, S as watchEffect, W as readonly,
|
|
2
|
+
import { U as shallowRef, S as watchEffect, W as readonly, B as unref, u as ref, X as version, C as watch, Y as customRef, I as getCurrentScope, J as onScopeDispose, E as effectScope, T as provide, z as inject, G as isRef, L as computed, M as reactive, K as toRefs$1, N as toRef, O as getCurrentInstance, Z as onBeforeMount, b as nextTick, _ as onBeforeUnmount, $ as onMounted, P as onUnmounted, H as isReactive, a0 as onUpdated, D as markRaw, a1 as isReadonly, a2 as onBeforeUpdate } from './vue.runtime.esm-bundler.js';
|
|
3
3
|
|
|
4
4
|
var __defProp$9$1 = Object.defineProperty;
|
|
5
5
|
var __defProps$6$1 = Object.defineProperties;
|
package/dist/client/b-vue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { am as BaseTransition, an as BaseTransitionPropsValidators, ao as Comment, bn as EffectScope, F as Fragment, ap as KeepAlive, bo as ReactiveEffect, aq as Static, ar as Suspense, as as Teleport, at as Text, a4 as Transition, a5 as TransitionGroup, a6 as VueElement, au as assertNumber, av as callWithAsyncErrorHandling, aw as callWithErrorHandling, bx as camelize, by as capitalize, ax as cloneVNode, ay as compatUtils, a3 as compile, L as computed,
|
|
1
|
+
export { am as BaseTransition, an as BaseTransitionPropsValidators, ao as Comment, bn as EffectScope, F as Fragment, ap as KeepAlive, bo as ReactiveEffect, aq as Static, ar as Suspense, as as Teleport, at as Text, a4 as Transition, a5 as TransitionGroup, a6 as VueElement, au as assertNumber, av as callWithAsyncErrorHandling, aw as callWithErrorHandling, bx as camelize, by as capitalize, ax as cloneVNode, ay as compatUtils, a3 as compile, L as computed, x as createApp, f as createBlock, l as createCommentVNode, c as createElementBlock, h as createElementVNode, az as createHydrationRenderer, aA as createPropsRestProxy, aB as createRenderer, a7 as createSSRApp, aC as createSlots, aD as createStaticVNode, aE as createTextVNode, q as createVNode, Y as customRef, aF as defineAsyncComponent, d as defineComponent, a8 as defineCustomElement, aG as defineEmits, aH as defineExpose, aI as defineModel, aJ as defineOptions, aK as defineProps, a9 as defineSSRCustomElement, aL as defineSlots, aM as devtools, bp as effect, E as effectScope, O as getCurrentInstance, I as getCurrentScope, aN as getTransitionRawChildren, g as guardReactiveProps, v as h, aO as handleError, y as hasInjectionContext, aa as hydrate, aP as initCustomFormatter, ab as initDirectivesForSSR, z as inject, aQ as isMemoSame, bq as isProxy, H as isReactive, a1 as isReadonly, G as isRef, aR as isRuntimeOnly, br as isShallow, aS as isVNode, D as markRaw, aT as mergeDefaults, aU as mergeModels, s as mergeProps, b as nextTick, n as normalizeClass, a as normalizeProps, j as normalizeStyle, R as onActivated, Z as onBeforeMount, _ as onBeforeUnmount, a2 as onBeforeUpdate, Q as onDeactivated, aV as onErrorCaptured, $ as onMounted, aW as onRenderTracked, aX as onRenderTriggered, J as onScopeDispose, aY as onServerPrefetch, P as onUnmounted, a0 as onUpdated, o as openBlock, e as popScopeId, T as provide, bs as proxyRefs, p as pushScopeId, aZ as queuePostFlushCb, M as reactive, W as readonly, u as ref, a_ as registerRuntimeCompiler, ac as render, a$ as renderList, r as renderSlot, i as resolveComponent, b0 as resolveDirective, b1 as resolveDynamicComponent, b2 as resolveFilter, b3 as resolveTransitionHooks, b4 as setBlockTracking, b5 as setDevtoolsHook, b6 as setTransitionHooks, V as shallowReactive, bt as shallowReadonly, U as shallowRef, b7 as ssrContextKey, b8 as ssrUtils, bu as stop, t as toDisplayString, bz as toHandlerKey, b9 as toHandlers, A as toRaw, N as toRef, K as toRefs, bv as toValue, ba as transformVNodeArgs, bw as triggerRef, B as unref, bb as useAttrs, ad as useCssModule, ae as useCssVars, bc as useModel, bd as useSSRContext, be as useSlots, bf as useTransitionState, af as vModelCheckbox, ag as vModelDynamic, ah as vModelRadio, ai as vModelSelect, aj as vModelText, ak as vShow, X as version, bg as warn, C as watch, S as watchEffect, bh as watchPostEffect, bi as watchSyncEffect, bj as withAsyncContext, m as withCtx, bk as withDefaults, bl as withDirectives, k as withKeys, bm as withMemo, al as withModifiers, w as withScopeId } from './vue.runtime.esm-bundler.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babel/parser",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.24.0",
|
|
4
4
|
"description": "A JavaScript parser",
|
|
5
5
|
"author": "The Babel Team (https://babel.dev/team)",
|
|
6
6
|
"homepage": "https://babel.dev/docs/en/next/babel-parser",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"node": ">=6.0.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@babel/code-frame": "^7.23.
|
|
37
|
+
"@babel/code-frame": "^7.23.5",
|
|
38
38
|
"@babel/helper-check-duplicate-nodes": "^7.22.5",
|
|
39
|
-
"@babel/helper-fixtures": "^7.
|
|
39
|
+
"@babel/helper-fixtures": "^7.24.0",
|
|
40
40
|
"@babel/helper-string-parser": "^7.23.4",
|
|
41
41
|
"@babel/helper-validator-identifier": "^7.22.20",
|
|
42
42
|
"charcodes": "^0.2.0"
|
|
@@ -224,8 +224,9 @@ interface ParserOptions {
|
|
|
224
224
|
createParenthesizedExpressions?: boolean;
|
|
225
225
|
|
|
226
226
|
/**
|
|
227
|
-
*
|
|
227
|
+
* The default is false in Babel 7 and true in Babel 8
|
|
228
228
|
* Set this to true to parse it as an `ImportExpression` node.
|
|
229
|
+
* Otherwise `import(foo)` is parsed as `CallExpression(Import, [Identifier(foo)])`.
|
|
229
230
|
*/
|
|
230
231
|
createImportExpressions?: boolean;
|
|
231
232
|
}
|
|
@@ -5,24 +5,24 @@ import type { App } from './app.js';
|
|
|
5
5
|
import type { ID } from './util.js';
|
|
6
6
|
export interface DevtoolsPluginApi<TSettings> {
|
|
7
7
|
on: Hookable<Context>;
|
|
8
|
-
notifyComponentUpdate(instance?: ComponentInstance)
|
|
9
|
-
addTimelineLayer(options: TimelineLayerOptions)
|
|
10
|
-
addTimelineEvent(options: TimelineEventOptions)
|
|
11
|
-
addInspector(options: CustomInspectorOptions)
|
|
12
|
-
sendInspectorTree(inspectorId: string)
|
|
13
|
-
sendInspectorState(inspectorId: string)
|
|
14
|
-
selectInspectorNode(inspectorId: string, nodeId: string)
|
|
15
|
-
getComponentBounds(instance: ComponentInstance)
|
|
16
|
-
getComponentName(instance: ComponentInstance)
|
|
17
|
-
getComponentInstances(app: App)
|
|
18
|
-
highlightElement(instance: ComponentInstance)
|
|
19
|
-
unhighlightElement()
|
|
20
|
-
getSettings(pluginId?: string)
|
|
21
|
-
now()
|
|
8
|
+
notifyComponentUpdate: (instance?: ComponentInstance) => void;
|
|
9
|
+
addTimelineLayer: (options: TimelineLayerOptions) => void;
|
|
10
|
+
addTimelineEvent: (options: TimelineEventOptions) => void;
|
|
11
|
+
addInspector: (options: CustomInspectorOptions) => void;
|
|
12
|
+
sendInspectorTree: (inspectorId: string) => void;
|
|
13
|
+
sendInspectorState: (inspectorId: string) => void;
|
|
14
|
+
selectInspectorNode: (inspectorId: string, nodeId: string) => void;
|
|
15
|
+
getComponentBounds: (instance: ComponentInstance) => Promise<ComponentBounds>;
|
|
16
|
+
getComponentName: (instance: ComponentInstance) => Promise<string>;
|
|
17
|
+
getComponentInstances: (app: App) => Promise<ComponentInstance[]>;
|
|
18
|
+
highlightElement: (instance: ComponentInstance) => void;
|
|
19
|
+
unhighlightElement: () => void;
|
|
20
|
+
getSettings: (pluginId?: string) => TSettings;
|
|
21
|
+
now: () => number;
|
|
22
22
|
/**
|
|
23
|
-
* @private
|
|
23
|
+
* @private
|
|
24
24
|
*/
|
|
25
|
-
setSettings(values: TSettings)
|
|
25
|
+
setSettings: (values: TSettings) => void;
|
|
26
26
|
}
|
|
27
27
|
export interface AppRecord {
|
|
28
28
|
id: string;
|
|
@@ -48,7 +48,7 @@ export interface ScreenshotOverlayRenderContext<TData = any, TMeta = any> {
|
|
|
48
48
|
events: (TimelineEvent<TData, TMeta> & ScreenshotOverlayEvent)[];
|
|
49
49
|
index: number;
|
|
50
50
|
}
|
|
51
|
-
export
|
|
51
|
+
export type ScreenshotOverlayRenderResult = HTMLElement | string | false;
|
|
52
52
|
export interface ScreenshotData {
|
|
53
53
|
time: number;
|
|
54
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type App = any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { InspectorNodeTag } from './api.js';
|
|
2
2
|
import type { ID } from './util.js';
|
|
3
|
-
export
|
|
3
|
+
export type ComponentInstance = any;
|
|
4
4
|
export interface ComponentTreeNode {
|
|
5
5
|
uid: ID;
|
|
6
6
|
id: string;
|
|
@@ -43,11 +43,11 @@ export interface ComponentPropState extends ComponentStateBase {
|
|
|
43
43
|
mode?: 'default' | 'sync' | 'once';
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
export
|
|
46
|
+
export type ComponentBuiltinCustomStateTypes = 'function' | 'map' | 'set' | 'reference' | 'component' | 'component-definition' | 'router' | 'store';
|
|
47
47
|
export interface ComponentCustomState extends ComponentStateBase {
|
|
48
48
|
value: CustomState;
|
|
49
49
|
}
|
|
50
|
-
export
|
|
50
|
+
export interface CustomState {
|
|
51
51
|
_custom: {
|
|
52
52
|
type: ComponentBuiltinCustomStateTypes | string;
|
|
53
53
|
objectType?: string;
|
|
@@ -71,8 +71,8 @@ export declare type CustomState = {
|
|
|
71
71
|
/** internal */
|
|
72
72
|
_reviveId?: number;
|
|
73
73
|
};
|
|
74
|
-
}
|
|
75
|
-
export
|
|
74
|
+
}
|
|
75
|
+
export type ComponentState = ComponentStateBase | ComponentPropState | ComponentCustomState;
|
|
76
76
|
export interface ComponentDevtoolsOptions {
|
|
77
77
|
hide?: boolean;
|
|
78
78
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentDevtoolsOptions, ComponentInstance, ComponentTreeNode, InspectedComponentData } from './component.js';
|
|
2
2
|
import type { App } from './app.js';
|
|
3
3
|
import type { CustomInspectorNode, CustomInspectorState, TimelineEvent } from './api.js';
|
|
4
4
|
export declare const enum Hooks {
|
|
@@ -31,7 +31,7 @@ export interface ComponentBounds {
|
|
|
31
31
|
width: number;
|
|
32
32
|
height: number;
|
|
33
33
|
}
|
|
34
|
-
export
|
|
34
|
+
export interface HookPayloads {
|
|
35
35
|
[Hooks.TRANSFORM_CALL]: {
|
|
36
36
|
callName: string;
|
|
37
37
|
inArgs: any[];
|
|
@@ -143,8 +143,8 @@ export declare type HookPayloads = {
|
|
|
143
143
|
oldValue: any;
|
|
144
144
|
settings: any;
|
|
145
145
|
};
|
|
146
|
-
}
|
|
147
|
-
export
|
|
146
|
+
}
|
|
147
|
+
export type EditStatePayload = {
|
|
148
148
|
value: any;
|
|
149
149
|
newKey?: string | null;
|
|
150
150
|
remove?: undefined | false;
|
|
@@ -153,28 +153,28 @@ export declare type EditStatePayload = {
|
|
|
153
153
|
newKey?: undefined;
|
|
154
154
|
remove: true;
|
|
155
155
|
};
|
|
156
|
-
export
|
|
156
|
+
export type HookHandler<TPayload, TContext> = (payload: TPayload, ctx: TContext) => void | Promise<void>;
|
|
157
157
|
export interface Hookable<TContext> {
|
|
158
|
-
transformCall(handler: HookHandler<HookPayloads[Hooks.TRANSFORM_CALL], TContext>)
|
|
159
|
-
getAppRecordName(handler: HookHandler<HookPayloads[Hooks.GET_APP_RECORD_NAME], TContext>)
|
|
160
|
-
getAppRootInstance(handler: HookHandler<HookPayloads[Hooks.GET_APP_ROOT_INSTANCE], TContext>)
|
|
161
|
-
registerApplication(handler: HookHandler<HookPayloads[Hooks.REGISTER_APPLICATION], TContext>)
|
|
162
|
-
walkComponentTree(handler: HookHandler<HookPayloads[Hooks.WALK_COMPONENT_TREE], TContext>)
|
|
163
|
-
visitComponentTree(handler: HookHandler<HookPayloads[Hooks.VISIT_COMPONENT_TREE], TContext>)
|
|
164
|
-
walkComponentParents(handler: HookHandler<HookPayloads[Hooks.WALK_COMPONENT_PARENTS], TContext>)
|
|
165
|
-
inspectComponent(handler: HookHandler<HookPayloads[Hooks.INSPECT_COMPONENT], TContext>)
|
|
166
|
-
getComponentBounds(handler: HookHandler<HookPayloads[Hooks.GET_COMPONENT_BOUNDS], TContext>)
|
|
167
|
-
getComponentName(handler: HookHandler<HookPayloads[Hooks.GET_COMPONENT_NAME], TContext>)
|
|
168
|
-
getComponentInstances(handler: HookHandler<HookPayloads[Hooks.GET_COMPONENT_INSTANCES], TContext>)
|
|
169
|
-
getElementComponent(handler: HookHandler<HookPayloads[Hooks.GET_ELEMENT_COMPONENT], TContext>)
|
|
170
|
-
getComponentRootElements(handler: HookHandler<HookPayloads[Hooks.GET_COMPONENT_ROOT_ELEMENTS], TContext>)
|
|
171
|
-
editComponentState(handler: HookHandler<HookPayloads[Hooks.EDIT_COMPONENT_STATE], TContext>)
|
|
172
|
-
getComponentDevtoolsOptions(handler: HookHandler<HookPayloads[Hooks.GET_COMPONENT_DEVTOOLS_OPTIONS], TContext>)
|
|
173
|
-
getComponentRenderCode(handler: HookHandler<HookPayloads[Hooks.GET_COMPONENT_RENDER_CODE], TContext>)
|
|
174
|
-
inspectTimelineEvent(handler: HookHandler<HookPayloads[Hooks.INSPECT_TIMELINE_EVENT], TContext>)
|
|
175
|
-
timelineCleared(handler: HookHandler<HookPayloads[Hooks.TIMELINE_CLEARED], TContext>)
|
|
176
|
-
getInspectorTree(handler: HookHandler<HookPayloads[Hooks.GET_INSPECTOR_TREE], TContext>)
|
|
177
|
-
getInspectorState(handler: HookHandler<HookPayloads[Hooks.GET_INSPECTOR_STATE], TContext>)
|
|
178
|
-
editInspectorState(handler: HookHandler<HookPayloads[Hooks.EDIT_INSPECTOR_STATE], TContext>)
|
|
179
|
-
setPluginSettings(handler: HookHandler<HookPayloads[Hooks.SET_PLUGIN_SETTINGS], TContext>)
|
|
158
|
+
transformCall: (handler: HookHandler<HookPayloads[Hooks.TRANSFORM_CALL], TContext>) => any;
|
|
159
|
+
getAppRecordName: (handler: HookHandler<HookPayloads[Hooks.GET_APP_RECORD_NAME], TContext>) => any;
|
|
160
|
+
getAppRootInstance: (handler: HookHandler<HookPayloads[Hooks.GET_APP_ROOT_INSTANCE], TContext>) => any;
|
|
161
|
+
registerApplication: (handler: HookHandler<HookPayloads[Hooks.REGISTER_APPLICATION], TContext>) => any;
|
|
162
|
+
walkComponentTree: (handler: HookHandler<HookPayloads[Hooks.WALK_COMPONENT_TREE], TContext>) => any;
|
|
163
|
+
visitComponentTree: (handler: HookHandler<HookPayloads[Hooks.VISIT_COMPONENT_TREE], TContext>) => any;
|
|
164
|
+
walkComponentParents: (handler: HookHandler<HookPayloads[Hooks.WALK_COMPONENT_PARENTS], TContext>) => any;
|
|
165
|
+
inspectComponent: (handler: HookHandler<HookPayloads[Hooks.INSPECT_COMPONENT], TContext>) => any;
|
|
166
|
+
getComponentBounds: (handler: HookHandler<HookPayloads[Hooks.GET_COMPONENT_BOUNDS], TContext>) => any;
|
|
167
|
+
getComponentName: (handler: HookHandler<HookPayloads[Hooks.GET_COMPONENT_NAME], TContext>) => any;
|
|
168
|
+
getComponentInstances: (handler: HookHandler<HookPayloads[Hooks.GET_COMPONENT_INSTANCES], TContext>) => any;
|
|
169
|
+
getElementComponent: (handler: HookHandler<HookPayloads[Hooks.GET_ELEMENT_COMPONENT], TContext>) => any;
|
|
170
|
+
getComponentRootElements: (handler: HookHandler<HookPayloads[Hooks.GET_COMPONENT_ROOT_ELEMENTS], TContext>) => any;
|
|
171
|
+
editComponentState: (handler: HookHandler<HookPayloads[Hooks.EDIT_COMPONENT_STATE], TContext>) => any;
|
|
172
|
+
getComponentDevtoolsOptions: (handler: HookHandler<HookPayloads[Hooks.GET_COMPONENT_DEVTOOLS_OPTIONS], TContext>) => any;
|
|
173
|
+
getComponentRenderCode: (handler: HookHandler<HookPayloads[Hooks.GET_COMPONENT_RENDER_CODE], TContext>) => any;
|
|
174
|
+
inspectTimelineEvent: (handler: HookHandler<HookPayloads[Hooks.INSPECT_TIMELINE_EVENT], TContext>) => any;
|
|
175
|
+
timelineCleared: (handler: HookHandler<HookPayloads[Hooks.TIMELINE_CLEARED], TContext>) => any;
|
|
176
|
+
getInspectorTree: (handler: HookHandler<HookPayloads[Hooks.GET_INSPECTOR_TREE], TContext>) => any;
|
|
177
|
+
getInspectorState: (handler: HookHandler<HookPayloads[Hooks.GET_INSPECTOR_STATE], TContext>) => any;
|
|
178
|
+
editInspectorState: (handler: HookHandler<HookPayloads[Hooks.EDIT_INSPECTOR_STATE], TContext>) => any;
|
|
179
|
+
setPluginSettings: (handler: HookHandler<HookPayloads[Hooks.SET_PLUGIN_SETTINGS], TContext>) => any;
|
|
180
180
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PluginDescriptor, SetupFunction } from './index.js';
|
|
2
1
|
import type { ApiProxy } from './proxy.js';
|
|
2
|
+
import type { PluginDescriptor, SetupFunction } from './index.js';
|
|
3
3
|
export interface PluginQueueItem {
|
|
4
4
|
pluginDescriptor: PluginDescriptor;
|
|
5
5
|
setupFn: SetupFunction;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { DevtoolsPluginApi } from './api/index.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ExtractSettingsTypes, PluginDescriptor, PluginSettingsItem } from './plugin.js';
|
|
3
3
|
export * from './api/index.js';
|
|
4
4
|
export * from './plugin.js';
|
|
5
5
|
export * from './time.js';
|
|
6
6
|
export { PluginQueueItem } from './env.js';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
type Cast<A, B> = A extends B ? A : B;
|
|
8
|
+
type Narrowable = string | number | bigint | boolean;
|
|
9
|
+
type Narrow<A> = Cast<A, [] | (A extends Narrowable ? A : never) | ({
|
|
10
10
|
[K in keyof A]: Narrow<A[K]>;
|
|
11
11
|
})>;
|
|
12
|
-
|
|
12
|
+
type Exact<C, T> = {
|
|
13
13
|
[K in keyof C]: K extends keyof T ? T[K] : never;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type SetupFunction<TSettings = any> = (api: DevtoolsPluginApi<TSettings>) => void;
|
|
16
16
|
export declare function setupDevtoolsPlugin<TDescriptor extends Exact<TDescriptor, PluginDescriptor>, TSettings = ExtractSettingsTypes<TDescriptor extends {
|
|
17
17
|
settings: infer S;
|
|
18
18
|
} ? S extends Record<string, PluginSettingsItem> ? S : Record<string, PluginSettingsItem> : Record<string, PluginSettingsItem>>>(pluginDescriptor: Narrow<TDescriptor>, setupFn: SetupFunction<TSettings>): void;
|
|
@@ -16,7 +16,7 @@ export interface PluginDescriptor {
|
|
|
16
16
|
enableEarlyProxy?: boolean;
|
|
17
17
|
settings?: Record<string, PluginSettingsItem>;
|
|
18
18
|
}
|
|
19
|
-
export
|
|
19
|
+
export type PluginSettingsItem = {
|
|
20
20
|
label: string;
|
|
21
21
|
description?: string;
|
|
22
22
|
} & ({
|
|
@@ -34,14 +34,14 @@ export declare type PluginSettingsItem = {
|
|
|
34
34
|
type: 'text';
|
|
35
35
|
defaultValue: string;
|
|
36
36
|
});
|
|
37
|
-
|
|
37
|
+
type InferSettingsType<T extends PluginSettingsItem> = [T] extends [{
|
|
38
38
|
type: 'boolean';
|
|
39
39
|
}] ? boolean : [T] extends [{
|
|
40
40
|
type: 'choice';
|
|
41
41
|
}] ? T['options'][number]['value'] : [T] extends [{
|
|
42
42
|
type: 'text';
|
|
43
43
|
}] ? string : unknown;
|
|
44
|
-
export
|
|
44
|
+
export type ExtractSettingsTypes<O extends Record<string, PluginSettingsItem>> = {
|
|
45
45
|
[K in keyof O]: InferSettingsType<O[K]>;
|
|
46
46
|
};
|
|
47
47
|
export {};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/devtools-api",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.1",
|
|
4
4
|
"description": "Interact with the Vue devtools from the page",
|
|
5
|
-
"main": "lib/cjs/index.js",
|
|
6
|
-
"browser": "lib/esm/index.js",
|
|
7
|
-
"module": "lib/esm/index.js",
|
|
8
|
-
"types": "lib/esm/index.d.ts",
|
|
9
|
-
"sideEffects": false,
|
|
10
5
|
"author": {
|
|
11
6
|
"name": "Guillaume Chau"
|
|
12
7
|
},
|
|
13
|
-
"files": [
|
|
14
|
-
"lib/esm",
|
|
15
|
-
"lib/cjs"
|
|
16
|
-
],
|
|
17
8
|
"license": "MIT",
|
|
18
9
|
"repository": {
|
|
19
10
|
"url": "https://github.com/vuejs/vue-devtools.git",
|
|
20
11
|
"type": "git",
|
|
21
12
|
"directory": "packages/api"
|
|
22
13
|
},
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"main": "lib/cjs/index.js",
|
|
16
|
+
"browser": "lib/esm/index.js",
|
|
17
|
+
"module": "lib/esm/index.js",
|
|
18
|
+
"types": "lib/esm/index.d.ts",
|
|
19
|
+
"files": [
|
|
20
|
+
"lib/cjs",
|
|
21
|
+
"lib/esm"
|
|
22
|
+
],
|
|
23
23
|
"publishConfig": {
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"build:watch": "yarn tsc --module es2015 --outDir lib/esm -d -w --sourceMap"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/node": "^
|
|
33
|
+
"@types/node": "^20.11.16",
|
|
34
34
|
"@types/webpack-env": "^1.15.1",
|
|
35
|
-
"typescript": "^
|
|
35
|
+
"typescript": "^5.3.3"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-demi",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.7",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=12"
|
|
6
6
|
},
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"scripts"
|
|
33
33
|
],
|
|
34
34
|
"scripts": {
|
|
35
|
-
"postinstall": "node ./scripts/postinstall.js",
|
|
35
|
+
"postinstall": "node -e \"try{require('./scripts/postinstall.js')}catch(e){}\"",
|
|
36
36
|
"release": "npx bumpp --tag --commit --push && npm publish"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-demi",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.7",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=12"
|
|
6
6
|
},
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"scripts"
|
|
33
33
|
],
|
|
34
34
|
"scripts": {
|
|
35
|
-
"postinstall": "node ./scripts/postinstall.js",
|
|
35
|
+
"postinstall": "node -e \"try{require('./scripts/postinstall.js')}catch(e){}\"",
|
|
36
36
|
"release": "npx bumpp --tag --commit --push && npm publish"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|