@histoire/vendors 0.8.2 → 0.9.0
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.d.ts +3 -0
- package/dist/client/{floating-vue.js → b-floating-vue.js} +1 -1
- package/dist/client/b-iconify.d.ts +1 -0
- package/dist/client/{iconify.js → b-iconify.js} +0 -0
- package/dist/client/b-pinia.d.ts +1 -0
- package/dist/client/{pinia.js → b-pinia.js} +41 -8
- package/dist/client/b-scroll.d.ts +2 -0
- package/dist/client/{scroll.js → b-scroll.js} +1 -1
- package/dist/client/b-vue-router.d.ts +1 -0
- package/dist/client/{vue-router.js → b-vue-router.js} +279 -158
- package/dist/client/b-vue-use.d.ts +1 -0
- package/dist/client/{vue-use.js → b-vue-use.js} +1070 -603
- package/dist/client/b-vue.d.ts +1 -0
- package/dist/client/{vue.js → b-vue.js} +1 -1
- package/dist/client/node_modules/@babel/parser/package.json +45 -0
- package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +214 -0
- package/dist/client/node_modules/@floating-ui/core/index.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/core/package.json +70 -0
- package/dist/client/node_modules/@floating-ui/core/src/_babel.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/core/src/computeCoordsFromPlacement.d.ts +4 -0
- package/dist/client/node_modules/@floating-ui/core/src/computePosition.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/detectOverflow.d.ts +9 -0
- package/dist/client/node_modules/@floating-ui/core/src/enums.d.ts +4 -0
- package/dist/client/node_modules/@floating-ui/core/src/index.d.ts +11 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/arrow.d.ts +6 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/autoPlacement.d.ts +9 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/flip.d.ts +10 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/hide.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/inline.d.ts +5 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/offset.d.ts +21 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/shift.d.ts +32 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/size.d.ts +6 -0
- package/dist/client/node_modules/@floating-ui/core/src/types.d.ts +148 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/expandPaddingObject.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignment.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignmentSides.d.ts +5 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getBasePlacement.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getCrossAxis.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getExpandedPlacements.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getLengthFromAxis.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getMainAxisFromPlacement.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositeAlignmentPlacement.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositePlacement.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getPaddingObject.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/math.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/rectToClientRect.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/within.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/index.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/package.json +75 -0
- package/dist/client/node_modules/@floating-ui/dom/src/index.d.ts +7 -0
- package/dist/client/node_modules/@floating-ui/dom/src/platform.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/types.d.ts +27 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/contains.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/convertOffsetParentRelativeRectToViewportRelativeRect.d.ts +6 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getBoundingClientRect.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingClientRect.d.ts +6 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getComputedStyle.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getDimensions.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentElement.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentRect.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeName.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeScroll.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getOffsetParent.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getParentNode.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getRectRelativeToOffsetParent.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParent.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParents.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getViewportRect.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getWindowScrollBarX.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/is.d.ts +15 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/math.d.ts +3 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/window.d.ts +2 -0
- package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +680 -0
- package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +347 -0
- package/dist/client/node_modules/@iconify/vue/offline/package.json +14 -0
- package/dist/client/node_modules/@iconify/vue/package.json +61 -0
- package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +176 -0
- package/dist/client/node_modules/@types/web-bluetooth/package.json +40 -0
- package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +1198 -0
- package/dist/client/node_modules/@vue/compiler-core/package.json +43 -0
- package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +66 -0
- package/dist/client/node_modules/@vue/compiler-dom/package.json +43 -0
- package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +321 -0
- package/dist/client/node_modules/@vue/compiler-sfc/package.json +59 -0
- package/dist/client/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +6 -0
- package/dist/client/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/api.d.ts +108 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/app.d.ts +1 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/component.d.ts +77 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/context.d.ts +5 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/hooks.d.ts +179 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/index.d.ts +6 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/util.d.ts +4 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/const.d.ts +2 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/env.d.ts +15 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/index.d.ts +18 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/plugin.d.ts +47 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/proxy.d.ts +20 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/time.d.ts +2 -0
- package/dist/client/node_modules/@vue/devtools-api/package.json +37 -0
- package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +347 -0
- package/dist/client/node_modules/@vue/reactivity/package.json +41 -0
- package/dist/client/node_modules/@vue/reactivity-transform/dist/reactivity-transform.d.ts +33 -0
- package/dist/client/node_modules/@vue/reactivity-transform/package.json +41 -0
- package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +2018 -0
- package/dist/client/node_modules/@vue/runtime-core/package.json +38 -0
- package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +1522 -0
- package/dist/client/node_modules/@vue/runtime-dom/package.json +42 -0
- package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +100 -0
- package/dist/client/node_modules/@vue/server-renderer/package.json +41 -0
- package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +356 -0
- package/dist/client/node_modules/@vue/shared/package.json +33 -0
- package/dist/client/node_modules/@vueuse/core/index.d.ts +4305 -0
- package/dist/client/node_modules/@vueuse/core/metadata.d.ts +1 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/@vueuse/shared/index.d.ts +874 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/@vueuse/shared/package.json +50 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/index.d.ts +22 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v2/index.d.ts +31 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v2.7/index.d.ts +52 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v3/index.d.ts +22 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/package.json +47 -0
- package/dist/client/node_modules/@vueuse/core/package.json +59 -0
- package/dist/client/node_modules/@vueuse/metadata/index.d.ts +75 -0
- package/dist/client/node_modules/@vueuse/metadata/package.json +39 -0
- package/dist/client/node_modules/compute-scroll-into-view/package.json +90 -0
- package/dist/client/node_modules/compute-scroll-into-view/typings/index.d.ts +19 -0
- package/dist/client/node_modules/csstype/index.d.ts +38372 -0
- package/dist/client/node_modules/csstype/package.json +57 -0
- package/dist/client/node_modules/estree-walker/dist/esm/package.json +1 -0
- package/dist/client/node_modules/estree-walker/package.json +37 -0
- package/dist/client/node_modules/estree-walker/src/package.json +1 -0
- package/dist/client/node_modules/estree-walker/types/async.d.ts +53 -0
- package/dist/client/node_modules/estree-walker/types/index.d.ts +56 -0
- package/dist/client/node_modules/estree-walker/types/sync.d.ts +53 -0
- package/dist/client/node_modules/estree-walker/types/walker.d.ts +37 -0
- package/dist/client/node_modules/floating-vue/dist/components/Dropdown.vue.d.ts +25 -0
- package/dist/client/node_modules/floating-vue/dist/components/Menu.vue.d.ts +25 -0
- package/dist/client/node_modules/floating-vue/dist/components/Popper.d.ts +374 -0
- package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +366 -0
- package/dist/client/node_modules/floating-vue/dist/components/PopperContent.vue.d.ts +48 -0
- package/dist/client/node_modules/floating-vue/dist/components/PopperMethods.d.ts +9 -0
- package/dist/client/node_modules/floating-vue/dist/components/PopperWrapper.vue.d.ts +28 -0
- package/dist/client/node_modules/floating-vue/dist/components/ThemeClass.d.ts +6 -0
- package/dist/client/node_modules/floating-vue/dist/components/Tooltip.vue.d.ts +25 -0
- package/dist/client/node_modules/floating-vue/dist/components/TooltipDirective.vue.d.ts +28 -0
- package/dist/client/node_modules/floating-vue/dist/config.d.ts +11 -0
- package/dist/client/node_modules/floating-vue/dist/directives/v-close-popper.d.ts +13 -0
- package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.d.ts +27 -0
- package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.spec.d.ts +1 -0
- package/dist/client/node_modules/floating-vue/dist/index.d.ts +414 -0
- package/dist/client/node_modules/floating-vue/dist/util/assign-deep.d.ts +1 -0
- package/dist/client/node_modules/floating-vue/dist/util/env.d.ts +2 -0
- package/dist/client/node_modules/floating-vue/dist/util/events.d.ts +12 -0
- package/dist/client/node_modules/floating-vue/dist/util/frame.d.ts +1 -0
- package/dist/client/node_modules/floating-vue/dist/util/lang.d.ts +1 -0
- package/dist/client/node_modules/floating-vue/dist/util/popper.d.ts +3 -0
- package/dist/client/node_modules/floating-vue/package.json +71 -0
- package/dist/client/node_modules/floating-vue/src/global-shim.d.ts +1 -0
- package/dist/client/node_modules/floating-vue/src/vue-shim.d.ts +5 -0
- package/dist/client/node_modules/magic-string/index.d.ts +221 -0
- package/dist/client/node_modules/magic-string/package.json +52 -0
- package/dist/client/node_modules/nanoid/async/index.d.ts +56 -0
- package/dist/client/node_modules/nanoid/async/package.json +12 -0
- package/dist/client/node_modules/nanoid/index.d.ts +91 -0
- package/dist/client/node_modules/nanoid/non-secure/index.d.ts +33 -0
- package/dist/client/node_modules/nanoid/non-secure/package.json +6 -0
- package/dist/client/node_modules/nanoid/package.json +60 -0
- package/dist/client/node_modules/nanoid/url-alphabet/package.json +6 -0
- package/dist/client/node_modules/picocolors/package.json +25 -0
- package/dist/client/node_modules/picocolors/picocolors.d.ts +5 -0
- package/dist/client/node_modules/pinia/dist/pinia.d.ts +963 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +22 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +31 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +52 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +22 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/package.json +47 -0
- package/dist/client/node_modules/pinia/package.json +101 -0
- package/dist/client/node_modules/postcss/lib/at-rule.d.ts +106 -0
- package/dist/client/node_modules/postcss/lib/comment.d.ts +56 -0
- package/dist/client/node_modules/postcss/lib/container.d.ts +442 -0
- package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +239 -0
- package/dist/client/node_modules/postcss/lib/declaration.d.ts +124 -0
- package/dist/client/node_modules/postcss/lib/document.d.ts +57 -0
- package/dist/client/node_modules/postcss/lib/fromJSON.d.ts +5 -0
- package/dist/client/node_modules/postcss/lib/input.d.ts +150 -0
- package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +176 -0
- package/dist/client/node_modules/postcss/lib/list.d.ts +51 -0
- package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +37 -0
- package/dist/client/node_modules/postcss/lib/node.d.ts +478 -0
- package/dist/client/node_modules/postcss/lib/parse.d.ts +5 -0
- package/dist/client/node_modules/postcss/lib/postcss.d.ts +473 -0
- package/dist/client/node_modules/postcss/lib/previous-map.d.ts +72 -0
- package/dist/client/node_modules/postcss/lib/processor.d.ts +102 -0
- package/dist/client/node_modules/postcss/lib/result.d.ts +196 -0
- package/dist/client/node_modules/postcss/lib/root.d.ts +73 -0
- package/dist/client/node_modules/postcss/lib/rule.d.ts +104 -0
- package/dist/client/node_modules/postcss/lib/stringifier.d.ts +37 -0
- package/dist/client/node_modules/postcss/lib/stringify.d.ts +5 -0
- package/dist/client/node_modules/postcss/lib/warning.d.ts +138 -0
- package/dist/client/node_modules/postcss/package.json +85 -0
- package/dist/client/node_modules/scroll-into-view-if-needed/package.json +144 -0
- package/dist/client/node_modules/scroll-into-view-if-needed/typings/index.d.ts +13 -0
- package/dist/client/node_modules/scroll-into-view-if-needed/typings/types.d.ts +19 -0
- package/dist/client/node_modules/source-map/package.json +73 -0
- package/dist/client/node_modules/source-map/source-map.d.ts +98 -0
- package/dist/client/node_modules/source-map-js/package.json +71 -0
- package/dist/client/node_modules/source-map-js/source-map.d.ts +115 -0
- package/dist/client/node_modules/sourcemap-codec/dist/types/sourcemap-codec.d.ts +5 -0
- package/dist/client/node_modules/sourcemap-codec/package.json +53 -0
- package/dist/client/node_modules/vue/compiler-sfc/index.d.ts +1 -0
- package/dist/client/node_modules/vue/compiler-sfc/package.json +5 -0
- package/dist/client/node_modules/vue/dist/vue.d.ts +9 -0
- package/dist/client/node_modules/vue/macros-global.d.ts +19 -0
- package/dist/client/node_modules/vue/macros.d.ts +110 -0
- package/dist/client/node_modules/vue/package.json +75 -0
- package/dist/client/node_modules/vue/ref-macros.d.ts +2 -0
- package/dist/client/node_modules/vue/server-renderer/index.d.ts +1 -0
- package/dist/client/node_modules/vue/server-renderer/package.json +5 -0
- package/dist/client/node_modules/vue-resize/package.json +77 -0
- package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +1491 -0
- package/dist/client/node_modules/vue-router/package.json +114 -0
- package/dist/client/vue.runtime.esm-bundler.js +24 -19
- package/entries.js +7 -7
- package/floating-vue.d.ts +3 -0
- package/iconify.d.ts +3 -0
- package/package.json +13 -4
- package/pinia.d.ts +3 -0
- package/rollup.config.mjs +116 -0
- package/scroll.d.ts +3 -0
- package/src/client/b-floating-vue.ts +3 -0
- package/src/client/b-iconify.ts +1 -0
- package/src/client/b-pinia.ts +1 -0
- package/src/client/b-scroll.ts +2 -0
- package/src/client/b-vue-router.ts +1 -0
- package/src/client/b-vue-use.ts +1 -0
- package/src/client/b-vue.ts +1 -0
- package/vue-router.d.ts +3 -0
- package/vue-use.d.ts +3 -0
- package/vue.d.ts +3 -0
- package/dist/client/floating-vue.d.ts +0 -2
- package/dist/client/iconify.d.ts +0 -1
- package/dist/client/pinia.d.ts +0 -1
- package/dist/client/scroll.d.ts +0 -1
- package/dist/client/vue-router.d.ts +0 -1
- package/dist/client/vue-use.d.ts +0 -1
- package/dist/client/vue.d.ts +0 -1
- package/rollup.config.js +0 -37
- package/src/client/floating-vue.ts +0 -2
- package/src/client/iconify.ts +0 -1
- package/src/client/pinia.ts +0 -1
- package/src/client/scroll.ts +0 -1
- package/src/client/vue-router.ts +0 -1
- package/src/client/vue-use.ts +0 -1
- package/src/client/vue.ts +0 -1
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { InspectorNodeTag } from './api.js';
|
|
2
|
+
import type { ID } from './util.js';
|
|
3
|
+
export declare type ComponentInstance = any;
|
|
4
|
+
export interface ComponentTreeNode {
|
|
5
|
+
uid: ID;
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
renderKey: string | number;
|
|
9
|
+
inactive: boolean;
|
|
10
|
+
isFragment: boolean;
|
|
11
|
+
hasChildren: boolean;
|
|
12
|
+
children: ComponentTreeNode[];
|
|
13
|
+
domOrder?: number[];
|
|
14
|
+
consoleId?: string;
|
|
15
|
+
isRouterView?: boolean;
|
|
16
|
+
macthedRouteSegment?: string;
|
|
17
|
+
tags: InspectorNodeTag[];
|
|
18
|
+
meta?: any;
|
|
19
|
+
}
|
|
20
|
+
export interface InspectedComponentData {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
file: string;
|
|
24
|
+
state: ComponentState[];
|
|
25
|
+
functional?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface StateBase {
|
|
28
|
+
key: string;
|
|
29
|
+
value: any;
|
|
30
|
+
editable?: boolean;
|
|
31
|
+
objectType?: 'ref' | 'reactive' | 'computed' | 'other';
|
|
32
|
+
raw?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface ComponentStateBase extends StateBase {
|
|
35
|
+
type: string;
|
|
36
|
+
}
|
|
37
|
+
export interface ComponentPropState extends ComponentStateBase {
|
|
38
|
+
meta?: {
|
|
39
|
+
type: string;
|
|
40
|
+
required: boolean;
|
|
41
|
+
/** Vue 1 only */
|
|
42
|
+
mode?: 'default' | 'sync' | 'once';
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export declare type ComponentBuiltinCustomStateTypes = 'function' | 'map' | 'set' | 'reference' | 'component' | 'component-definition' | 'router' | 'store';
|
|
46
|
+
export interface ComponentCustomState extends ComponentStateBase {
|
|
47
|
+
value: CustomState;
|
|
48
|
+
}
|
|
49
|
+
export declare type CustomState = {
|
|
50
|
+
_custom: {
|
|
51
|
+
type: ComponentBuiltinCustomStateTypes | string;
|
|
52
|
+
objectType?: string;
|
|
53
|
+
display?: string;
|
|
54
|
+
tooltip?: string;
|
|
55
|
+
value?: any;
|
|
56
|
+
abstract?: boolean;
|
|
57
|
+
file?: string;
|
|
58
|
+
uid?: number;
|
|
59
|
+
readOnly?: boolean;
|
|
60
|
+
/** Configure immediate child fields */
|
|
61
|
+
fields?: {
|
|
62
|
+
abstract?: boolean;
|
|
63
|
+
};
|
|
64
|
+
id?: any;
|
|
65
|
+
actions?: {
|
|
66
|
+
icon: string;
|
|
67
|
+
tooltip?: string;
|
|
68
|
+
action: () => void | Promise<void>;
|
|
69
|
+
}[];
|
|
70
|
+
/** internal */
|
|
71
|
+
_reviveId?: number;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
export declare type ComponentState = ComponentStateBase | ComponentPropState | ComponentCustomState;
|
|
75
|
+
export interface ComponentDevtoolsOptions {
|
|
76
|
+
hide?: boolean;
|
|
77
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import type { ComponentTreeNode, InspectedComponentData, ComponentInstance, ComponentDevtoolsOptions } from './component.js';
|
|
2
|
+
import type { App } from './app.js';
|
|
3
|
+
import type { CustomInspectorNode, CustomInspectorState, TimelineEvent } from './api.js';
|
|
4
|
+
export declare const enum Hooks {
|
|
5
|
+
TRANSFORM_CALL = "transformCall",
|
|
6
|
+
GET_APP_RECORD_NAME = "getAppRecordName",
|
|
7
|
+
GET_APP_ROOT_INSTANCE = "getAppRootInstance",
|
|
8
|
+
REGISTER_APPLICATION = "registerApplication",
|
|
9
|
+
WALK_COMPONENT_TREE = "walkComponentTree",
|
|
10
|
+
VISIT_COMPONENT_TREE = "visitComponentTree",
|
|
11
|
+
WALK_COMPONENT_PARENTS = "walkComponentParents",
|
|
12
|
+
INSPECT_COMPONENT = "inspectComponent",
|
|
13
|
+
GET_COMPONENT_BOUNDS = "getComponentBounds",
|
|
14
|
+
GET_COMPONENT_NAME = "getComponentName",
|
|
15
|
+
GET_COMPONENT_INSTANCES = "getComponentInstances",
|
|
16
|
+
GET_ELEMENT_COMPONENT = "getElementComponent",
|
|
17
|
+
GET_COMPONENT_ROOT_ELEMENTS = "getComponentRootElements",
|
|
18
|
+
EDIT_COMPONENT_STATE = "editComponentState",
|
|
19
|
+
GET_COMPONENT_DEVTOOLS_OPTIONS = "getAppDevtoolsOptions",
|
|
20
|
+
GET_COMPONENT_RENDER_CODE = "getComponentRenderCode",
|
|
21
|
+
INSPECT_TIMELINE_EVENT = "inspectTimelineEvent",
|
|
22
|
+
TIMELINE_CLEARED = "timelineCleared",
|
|
23
|
+
GET_INSPECTOR_TREE = "getInspectorTree",
|
|
24
|
+
GET_INSPECTOR_STATE = "getInspectorState",
|
|
25
|
+
EDIT_INSPECTOR_STATE = "editInspectorState",
|
|
26
|
+
SET_PLUGIN_SETTINGS = "setPluginSettings"
|
|
27
|
+
}
|
|
28
|
+
export interface ComponentBounds {
|
|
29
|
+
left: number;
|
|
30
|
+
top: number;
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
}
|
|
34
|
+
export declare type HookPayloads = {
|
|
35
|
+
[Hooks.TRANSFORM_CALL]: {
|
|
36
|
+
callName: string;
|
|
37
|
+
inArgs: any[];
|
|
38
|
+
outArgs: any[];
|
|
39
|
+
};
|
|
40
|
+
[Hooks.GET_APP_RECORD_NAME]: {
|
|
41
|
+
app: App;
|
|
42
|
+
name: string;
|
|
43
|
+
};
|
|
44
|
+
[Hooks.GET_APP_ROOT_INSTANCE]: {
|
|
45
|
+
app: App;
|
|
46
|
+
root: ComponentInstance;
|
|
47
|
+
};
|
|
48
|
+
[Hooks.REGISTER_APPLICATION]: {
|
|
49
|
+
app: App;
|
|
50
|
+
};
|
|
51
|
+
[Hooks.WALK_COMPONENT_TREE]: {
|
|
52
|
+
componentInstance: ComponentInstance;
|
|
53
|
+
componentTreeData: ComponentTreeNode[];
|
|
54
|
+
maxDepth: number;
|
|
55
|
+
filter: string;
|
|
56
|
+
};
|
|
57
|
+
[Hooks.VISIT_COMPONENT_TREE]: {
|
|
58
|
+
app: App;
|
|
59
|
+
componentInstance: ComponentInstance;
|
|
60
|
+
treeNode: ComponentTreeNode;
|
|
61
|
+
filter: string;
|
|
62
|
+
};
|
|
63
|
+
[Hooks.WALK_COMPONENT_PARENTS]: {
|
|
64
|
+
componentInstance: ComponentInstance;
|
|
65
|
+
parentInstances: ComponentInstance[];
|
|
66
|
+
};
|
|
67
|
+
[Hooks.INSPECT_COMPONENT]: {
|
|
68
|
+
app: App;
|
|
69
|
+
componentInstance: ComponentInstance;
|
|
70
|
+
instanceData: InspectedComponentData;
|
|
71
|
+
};
|
|
72
|
+
[Hooks.GET_COMPONENT_BOUNDS]: {
|
|
73
|
+
componentInstance: ComponentInstance;
|
|
74
|
+
bounds: ComponentBounds;
|
|
75
|
+
};
|
|
76
|
+
[Hooks.GET_COMPONENT_NAME]: {
|
|
77
|
+
componentInstance: ComponentInstance;
|
|
78
|
+
name: string;
|
|
79
|
+
};
|
|
80
|
+
[Hooks.GET_COMPONENT_INSTANCES]: {
|
|
81
|
+
app: App;
|
|
82
|
+
componentInstances: ComponentInstance[];
|
|
83
|
+
};
|
|
84
|
+
[Hooks.GET_ELEMENT_COMPONENT]: {
|
|
85
|
+
element: HTMLElement | any;
|
|
86
|
+
componentInstance: ComponentInstance;
|
|
87
|
+
};
|
|
88
|
+
[Hooks.GET_COMPONENT_ROOT_ELEMENTS]: {
|
|
89
|
+
componentInstance: ComponentInstance;
|
|
90
|
+
rootElements: (HTMLElement | any)[];
|
|
91
|
+
};
|
|
92
|
+
[Hooks.EDIT_COMPONENT_STATE]: {
|
|
93
|
+
app: App;
|
|
94
|
+
componentInstance: ComponentInstance;
|
|
95
|
+
path: string[];
|
|
96
|
+
type: string;
|
|
97
|
+
state: EditStatePayload;
|
|
98
|
+
set: (object: any, path?: string | (string[]), value?: any, cb?: (object: any, field: string, value: any) => void) => void;
|
|
99
|
+
};
|
|
100
|
+
[Hooks.GET_COMPONENT_DEVTOOLS_OPTIONS]: {
|
|
101
|
+
componentInstance: ComponentInstance;
|
|
102
|
+
options: ComponentDevtoolsOptions;
|
|
103
|
+
};
|
|
104
|
+
[Hooks.GET_COMPONENT_RENDER_CODE]: {
|
|
105
|
+
componentInstance: ComponentInstance;
|
|
106
|
+
code: string;
|
|
107
|
+
};
|
|
108
|
+
[Hooks.INSPECT_TIMELINE_EVENT]: {
|
|
109
|
+
app: App;
|
|
110
|
+
layerId: string;
|
|
111
|
+
event: TimelineEvent;
|
|
112
|
+
all?: boolean;
|
|
113
|
+
data: any;
|
|
114
|
+
};
|
|
115
|
+
[Hooks.TIMELINE_CLEARED]: Record<string, never>;
|
|
116
|
+
[Hooks.GET_INSPECTOR_TREE]: {
|
|
117
|
+
app: App;
|
|
118
|
+
inspectorId: string;
|
|
119
|
+
filter: string;
|
|
120
|
+
rootNodes: CustomInspectorNode[];
|
|
121
|
+
};
|
|
122
|
+
[Hooks.GET_INSPECTOR_STATE]: {
|
|
123
|
+
app: App;
|
|
124
|
+
inspectorId: string;
|
|
125
|
+
nodeId: string;
|
|
126
|
+
state: CustomInspectorState;
|
|
127
|
+
};
|
|
128
|
+
[Hooks.EDIT_INSPECTOR_STATE]: {
|
|
129
|
+
app: App;
|
|
130
|
+
inspectorId: string;
|
|
131
|
+
nodeId: string;
|
|
132
|
+
path: string[];
|
|
133
|
+
type: string;
|
|
134
|
+
state: EditStatePayload;
|
|
135
|
+
set: (object: any, path?: string | (string[]), value?: any, cb?: (object: any, field: string, value: any) => void) => void;
|
|
136
|
+
};
|
|
137
|
+
[Hooks.SET_PLUGIN_SETTINGS]: {
|
|
138
|
+
app: App;
|
|
139
|
+
pluginId: string;
|
|
140
|
+
key: string;
|
|
141
|
+
newValue: any;
|
|
142
|
+
oldValue: any;
|
|
143
|
+
settings: any;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
export declare type EditStatePayload = {
|
|
147
|
+
value: any;
|
|
148
|
+
newKey?: string | null;
|
|
149
|
+
remove?: undefined | false;
|
|
150
|
+
} | {
|
|
151
|
+
value?: undefined;
|
|
152
|
+
newKey?: undefined;
|
|
153
|
+
remove: true;
|
|
154
|
+
};
|
|
155
|
+
export declare type HookHandler<TPayload, TContext> = (payload: TPayload, ctx: TContext) => void | Promise<void>;
|
|
156
|
+
export interface Hookable<TContext> {
|
|
157
|
+
transformCall(handler: HookHandler<HookPayloads[Hooks.TRANSFORM_CALL], TContext>): any;
|
|
158
|
+
getAppRecordName(handler: HookHandler<HookPayloads[Hooks.GET_APP_RECORD_NAME], TContext>): any;
|
|
159
|
+
getAppRootInstance(handler: HookHandler<HookPayloads[Hooks.GET_APP_ROOT_INSTANCE], TContext>): any;
|
|
160
|
+
registerApplication(handler: HookHandler<HookPayloads[Hooks.REGISTER_APPLICATION], TContext>): any;
|
|
161
|
+
walkComponentTree(handler: HookHandler<HookPayloads[Hooks.WALK_COMPONENT_TREE], TContext>): any;
|
|
162
|
+
visitComponentTree(handler: HookHandler<HookPayloads[Hooks.VISIT_COMPONENT_TREE], TContext>): any;
|
|
163
|
+
walkComponentParents(handler: HookHandler<HookPayloads[Hooks.WALK_COMPONENT_PARENTS], TContext>): any;
|
|
164
|
+
inspectComponent(handler: HookHandler<HookPayloads[Hooks.INSPECT_COMPONENT], TContext>): any;
|
|
165
|
+
getComponentBounds(handler: HookHandler<HookPayloads[Hooks.GET_COMPONENT_BOUNDS], TContext>): any;
|
|
166
|
+
getComponentName(handler: HookHandler<HookPayloads[Hooks.GET_COMPONENT_NAME], TContext>): any;
|
|
167
|
+
getComponentInstances(handler: HookHandler<HookPayloads[Hooks.GET_COMPONENT_INSTANCES], TContext>): any;
|
|
168
|
+
getElementComponent(handler: HookHandler<HookPayloads[Hooks.GET_ELEMENT_COMPONENT], TContext>): any;
|
|
169
|
+
getComponentRootElements(handler: HookHandler<HookPayloads[Hooks.GET_COMPONENT_ROOT_ELEMENTS], TContext>): any;
|
|
170
|
+
editComponentState(handler: HookHandler<HookPayloads[Hooks.EDIT_COMPONENT_STATE], TContext>): any;
|
|
171
|
+
getComponentDevtoolsOptions(handler: HookHandler<HookPayloads[Hooks.GET_COMPONENT_DEVTOOLS_OPTIONS], TContext>): any;
|
|
172
|
+
getComponentRenderCode(handler: HookHandler<HookPayloads[Hooks.GET_COMPONENT_RENDER_CODE], TContext>): any;
|
|
173
|
+
inspectTimelineEvent(handler: HookHandler<HookPayloads[Hooks.INSPECT_TIMELINE_EVENT], TContext>): any;
|
|
174
|
+
timelineCleared(handler: HookHandler<HookPayloads[Hooks.TIMELINE_CLEARED], TContext>): any;
|
|
175
|
+
getInspectorTree(handler: HookHandler<HookPayloads[Hooks.GET_INSPECTOR_TREE], TContext>): any;
|
|
176
|
+
getInspectorState(handler: HookHandler<HookPayloads[Hooks.GET_INSPECTOR_STATE], TContext>): any;
|
|
177
|
+
editInspectorState(handler: HookHandler<HookPayloads[Hooks.EDIT_INSPECTOR_STATE], TContext>): any;
|
|
178
|
+
setPluginSettings(handler: HookHandler<HookPayloads[Hooks.SET_PLUGIN_SETTINGS], TContext>): any;
|
|
179
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PluginDescriptor, SetupFunction } from './index.js';
|
|
2
|
+
import type { ApiProxy } from './proxy.js';
|
|
3
|
+
export interface PluginQueueItem {
|
|
4
|
+
pluginDescriptor: PluginDescriptor;
|
|
5
|
+
setupFn: SetupFunction;
|
|
6
|
+
proxy?: ApiProxy;
|
|
7
|
+
}
|
|
8
|
+
interface GlobalTarget {
|
|
9
|
+
__VUE_DEVTOOLS_PLUGINS__?: PluginQueueItem[];
|
|
10
|
+
__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function getDevtoolsGlobalHook(): any;
|
|
13
|
+
export declare function getTarget(): GlobalTarget;
|
|
14
|
+
export declare const isProxyAvailable: boolean;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { DevtoolsPluginApi } from './api/index.js';
|
|
2
|
+
import type { PluginDescriptor, ExtractSettingsTypes, PluginSettingsItem } from './plugin.js';
|
|
3
|
+
export * from './api/index.js';
|
|
4
|
+
export * from './plugin.js';
|
|
5
|
+
export * from './time.js';
|
|
6
|
+
export { PluginQueueItem } from './env.js';
|
|
7
|
+
declare type Cast<A, B> = A extends B ? A : B;
|
|
8
|
+
declare type Narrowable = string | number | bigint | boolean;
|
|
9
|
+
declare type Narrow<A> = Cast<A, [] | (A extends Narrowable ? A : never) | ({
|
|
10
|
+
[K in keyof A]: Narrow<A[K]>;
|
|
11
|
+
})>;
|
|
12
|
+
declare type Exact<C, T> = {
|
|
13
|
+
[K in keyof C]: K extends keyof T ? T[K] : never;
|
|
14
|
+
};
|
|
15
|
+
export declare type SetupFunction<TSettings = any> = (api: DevtoolsPluginApi<TSettings>) => void;
|
|
16
|
+
export declare function setupDevtoolsPlugin<TDescriptor extends Exact<TDescriptor, PluginDescriptor>, TSettings = ExtractSettingsTypes<TDescriptor extends {
|
|
17
|
+
settings: infer S;
|
|
18
|
+
} ? S extends Record<string, PluginSettingsItem> ? S : Record<string, PluginSettingsItem> : Record<string, PluginSettingsItem>>>(pluginDescriptor: Narrow<TDescriptor>, setupFn: SetupFunction<TSettings>): void;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { App } from './api/index.js';
|
|
2
|
+
export interface PluginDescriptor {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
app: App;
|
|
6
|
+
packageName?: string;
|
|
7
|
+
homepage?: string;
|
|
8
|
+
componentStateTypes?: string[];
|
|
9
|
+
logo?: string;
|
|
10
|
+
disableAppScope?: boolean;
|
|
11
|
+
disablePluginScope?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Run the plugin setup and expose the api even if the devtools is not opened yet.
|
|
14
|
+
* Useful to record timeline events early.
|
|
15
|
+
*/
|
|
16
|
+
enableEarlyProxy?: boolean;
|
|
17
|
+
settings?: Record<string, PluginSettingsItem>;
|
|
18
|
+
}
|
|
19
|
+
export declare type PluginSettingsItem = {
|
|
20
|
+
label: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
} & ({
|
|
23
|
+
type: 'boolean';
|
|
24
|
+
defaultValue: boolean;
|
|
25
|
+
} | {
|
|
26
|
+
type: 'choice';
|
|
27
|
+
defaultValue: string | number;
|
|
28
|
+
options: {
|
|
29
|
+
value: string | number;
|
|
30
|
+
label: string;
|
|
31
|
+
}[];
|
|
32
|
+
component?: 'select' | 'button-group';
|
|
33
|
+
} | {
|
|
34
|
+
type: 'text';
|
|
35
|
+
defaultValue: string;
|
|
36
|
+
});
|
|
37
|
+
declare type InferSettingsType<T extends PluginSettingsItem> = [T] extends [{
|
|
38
|
+
type: 'boolean';
|
|
39
|
+
}] ? boolean : [T] extends [{
|
|
40
|
+
type: 'choice';
|
|
41
|
+
}] ? T['options'][number]['value'] : [T] extends [{
|
|
42
|
+
type: 'text';
|
|
43
|
+
}] ? string : unknown;
|
|
44
|
+
export declare type ExtractSettingsTypes<O extends Record<string, PluginSettingsItem>> = {
|
|
45
|
+
[K in keyof O]: InferSettingsType<O[K]>;
|
|
46
|
+
};
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Context, DevtoolsPluginApi, Hookable } from './api/index.js';
|
|
2
|
+
import type { PluginDescriptor } from './plugin.js';
|
|
3
|
+
interface QueueItem {
|
|
4
|
+
method: string;
|
|
5
|
+
args: any[];
|
|
6
|
+
resolve?: (value?: any) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare class ApiProxy<TTarget extends DevtoolsPluginApi<any> = DevtoolsPluginApi<any>> {
|
|
9
|
+
target: TTarget | null;
|
|
10
|
+
targetQueue: QueueItem[];
|
|
11
|
+
proxiedTarget: TTarget;
|
|
12
|
+
onQueue: QueueItem[];
|
|
13
|
+
proxiedOn: Hookable<Context>;
|
|
14
|
+
plugin: PluginDescriptor;
|
|
15
|
+
hook: any;
|
|
16
|
+
fallbacks: Record<string, any>;
|
|
17
|
+
constructor(plugin: PluginDescriptor, hook: any);
|
|
18
|
+
setRealTarget(target: TTarget): Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vue/devtools-api",
|
|
3
|
+
"version": "6.2.1",
|
|
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
|
+
"author": {
|
|
11
|
+
"name": "Guillaume Chau"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"lib/esm",
|
|
15
|
+
"lib/cjs"
|
|
16
|
+
],
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"repository": {
|
|
19
|
+
"url": "https://github.com/vuejs/vue-devtools.git",
|
|
20
|
+
"type": "git",
|
|
21
|
+
"directory": "packages/api"
|
|
22
|
+
},
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "rimraf lib && yarn build:esm && yarn build:cjs",
|
|
28
|
+
"build:esm": "tsc --module es2015 --outDir lib/esm -d",
|
|
29
|
+
"build:cjs": "tsc --module commonjs --outDir lib/cjs",
|
|
30
|
+
"build:watch": "yarn tsc --module es2015 --outDir lib/esm -d -w --sourceMap"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@types/node": "^13.9.1",
|
|
34
|
+
"@types/webpack-env": "^1.15.1",
|
|
35
|
+
"typescript": "^4.5.2"
|
|
36
|
+
}
|
|
37
|
+
}
|