@poveste/vendors 0.1.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/LICENSE +22 -0
- package/dist/client/b-floating-vue.d.ts +3 -0
- package/dist/client/b-floating-vue.js +3377 -0
- package/dist/client/b-iconify.d.ts +1 -0
- package/dist/client/b-iconify.js +1883 -0
- package/dist/client/b-pinia.d.ts +1 -0
- package/dist/client/b-pinia.js +2069 -0
- package/dist/client/b-scroll.d.ts +2 -0
- package/dist/client/b-scroll.js +7 -0
- package/dist/client/b-vue-router.d.ts +1 -0
- package/dist/client/b-vue-router.js +2773 -0
- package/dist/client/b-vue-use.d.ts +1 -0
- package/dist/client/b-vue-use.js +9626 -0
- package/dist/client/b-vue.d.ts +1 -0
- package/dist/client/b-vue.js +1 -0
- package/dist/client/index.js +169 -0
- package/dist/client/node_modules/@babel/helper-string-parser/package.json +31 -0
- package/dist/client/node_modules/@babel/helper-validator-identifier/package.json +31 -0
- package/dist/client/node_modules/@babel/parser/package.json +50 -0
- package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +262 -0
- package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +2796 -0
- package/dist/client/node_modules/@babel/types/lib/index.d.ts +3616 -0
- package/dist/client/node_modules/@babel/types/package.json +39 -0
- package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +535 -0
- package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +535 -0
- package/dist/client/node_modules/@floating-ui/core/package.json +63 -0
- package/dist/client/node_modules/@floating-ui/dom/index.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/package.json +74 -0
- package/dist/client/node_modules/@floating-ui/dom/src/autoUpdate.d.ts +31 -0
- package/dist/client/node_modules/@floating-ui/dom/src/index.d.ts +11 -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 +128 -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/getClippingRect.d.ts +12 -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/getCssDimensions.d.ts +4 -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/getNearestOverflowAncestor.d.ts +1 -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/getOverflowAncestors.d.ts +3 -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/getScale.d.ts +7 -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 +17 -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/unwrapElement.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/userAgent.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/window.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +105 -0
- package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +105 -0
- package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +47 -0
- package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +47 -0
- package/dist/client/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +47 -0
- package/dist/client/node_modules/@floating-ui/utils/dom/package.json +6 -0
- package/dist/client/node_modules/@floating-ui/utils/package.json +70 -0
- package/dist/client/node_modules/@iconify/types/package.json +23 -0
- package/dist/client/node_modules/@iconify/types/provider.d.ts +44 -0
- package/dist/client/node_modules/@iconify/types/types.d.ts +272 -0
- package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +475 -0
- package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +114 -0
- package/dist/client/node_modules/@iconify/vue/offline/package.json +14 -0
- package/dist/client/node_modules/@iconify/vue/package.json +65 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/package.json +63 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +50 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +9 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +16 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +7 -0
- package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +265 -0
- package/dist/client/node_modules/@types/web-bluetooth/package.json +46 -0
- package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +1100 -0
- package/dist/client/node_modules/@vue/compiler-core/package.json +58 -0
- package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +45 -0
- package/dist/client/node_modules/@vue/compiler-dom/package.json +57 -0
- package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +485 -0
- package/dist/client/node_modules/@vue/compiler-sfc/package.json +67 -0
- package/dist/client/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +4 -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 +78 -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 +180 -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 +753 -0
- package/dist/client/node_modules/@vue/reactivity/package.json +55 -0
- package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +1839 -0
- package/dist/client/node_modules/@vue/runtime-core/package.json +52 -0
- package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +1430 -0
- package/dist/client/node_modules/@vue/runtime-dom/package.json +60 -0
- package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +65 -0
- package/dist/client/node_modules/@vue/server-renderer/package.json +55 -0
- package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +334 -0
- package/dist/client/node_modules/@vue/shared/package.json +47 -0
- package/dist/client/node_modules/@vueuse/core/index.d.mts +6221 -0
- package/dist/client/node_modules/@vueuse/core/index.d.ts +6221 -0
- package/dist/client/node_modules/@vueuse/core/metadata.d.mts +1 -0
- package/dist/client/node_modules/@vueuse/core/metadata.d.ts +1 -0
- package/dist/client/node_modules/@vueuse/core/package.json +57 -0
- package/dist/client/node_modules/@vueuse/metadata/index.d.mts +78 -0
- package/dist/client/node_modules/@vueuse/metadata/index.d.ts +78 -0
- package/dist/client/node_modules/@vueuse/metadata/package.json +46 -0
- package/dist/client/node_modules/@vueuse/shared/index.d.mts +1260 -0
- package/dist/client/node_modules/@vueuse/shared/index.d.ts +1260 -0
- package/dist/client/node_modules/@vueuse/shared/package.json +49 -0
- package/dist/client/node_modules/compute-scroll-into-view/dist/index.d.ts +75 -0
- package/dist/client/node_modules/compute-scroll-into-view/package.json +82 -0
- package/dist/client/node_modules/csstype/index.d.ts +22569 -0
- package/dist/client/node_modules/csstype/package.json +70 -0
- package/dist/client/node_modules/entities/decode.d.ts +3 -0
- package/dist/client/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +19 -0
- package/dist/client/node_modules/entities/dist/commonjs/decode.d.ts +205 -0
- package/dist/client/node_modules/entities/dist/commonjs/encode.d.ts +22 -0
- package/dist/client/node_modules/entities/dist/commonjs/escape.d.ts +46 -0
- package/dist/client/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +2 -0
- package/dist/client/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +2 -0
- package/dist/client/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +3 -0
- package/dist/client/node_modules/entities/dist/commonjs/index.d.ts +96 -0
- package/dist/client/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts +17 -0
- package/dist/client/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +2 -0
- package/dist/client/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +32 -0
- package/dist/client/node_modules/entities/dist/commonjs/package.json +3 -0
- package/dist/client/node_modules/entities/dist/esm/decode-codepoint.d.ts +19 -0
- package/dist/client/node_modules/entities/dist/esm/decode.d.ts +205 -0
- package/dist/client/node_modules/entities/dist/esm/encode.d.ts +22 -0
- package/dist/client/node_modules/entities/dist/esm/escape.d.ts +46 -0
- package/dist/client/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +2 -0
- package/dist/client/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +2 -0
- package/dist/client/node_modules/entities/dist/esm/generated/encode-html.d.ts +3 -0
- package/dist/client/node_modules/entities/dist/esm/index.d.ts +96 -0
- package/dist/client/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +17 -0
- package/dist/client/node_modules/entities/dist/esm/internal/decode-shared.d.ts +2 -0
- package/dist/client/node_modules/entities/dist/esm/internal/encode-shared.d.ts +32 -0
- package/dist/client/node_modules/entities/dist/esm/package.json +3 -0
- package/dist/client/node_modules/entities/escape.d.ts +3 -0
- package/dist/client/node_modules/entities/package.json +120 -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.d.ts +398 -0
- package/dist/client/node_modules/floating-vue/dist/components/Menu.d.ts +398 -0
- package/dist/client/node_modules/floating-vue/dist/components/Popper.d.ts +495 -0
- package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +474 -0
- package/dist/client/node_modules/floating-vue/dist/components/PopperContent.vue.d.ts +37 -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 +414 -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.d.ts +398 -0
- package/dist/client/node_modules/floating-vue/dist/components/TooltipDirective.vue.d.ts +67 -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 +2239 -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 +14 -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 +80 -0
- package/dist/client/node_modules/magic-string/dist/magic-string.cjs.d.ts +289 -0
- package/dist/client/node_modules/magic-string/dist/magic-string.es.d.mts +289 -0
- package/dist/client/node_modules/magic-string/package.json +67 -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 +89 -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/picocolors/types.d.ts +51 -0
- package/dist/client/node_modules/pinia/dist/pinia.d.ts +1074 -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 +33 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +38 -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 +96 -0
- package/dist/client/node_modules/postcss/lib/at-rule.d.ts +139 -0
- package/dist/client/node_modules/postcss/lib/comment.d.ts +67 -0
- package/dist/client/node_modules/postcss/lib/container.d.ts +478 -0
- package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +247 -0
- package/dist/client/node_modules/postcss/lib/declaration.d.ts +150 -0
- package/dist/client/node_modules/postcss/lib/document.d.ts +68 -0
- package/dist/client/node_modules/postcss/lib/fromJSON.d.ts +9 -0
- package/dist/client/node_modules/postcss/lib/input.d.ts +226 -0
- package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +189 -0
- package/dist/client/node_modules/postcss/lib/list.d.ts +60 -0
- package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +45 -0
- package/dist/client/node_modules/postcss/lib/node.d.ts +555 -0
- package/dist/client/node_modules/postcss/lib/parse.d.ts +9 -0
- package/dist/client/node_modules/postcss/lib/postcss.d.mts +66 -0
- package/dist/client/node_modules/postcss/lib/postcss.d.ts +464 -0
- package/dist/client/node_modules/postcss/lib/previous-map.d.ts +80 -0
- package/dist/client/node_modules/postcss/lib/processor.d.ts +114 -0
- package/dist/client/node_modules/postcss/lib/result.d.ts +204 -0
- package/dist/client/node_modules/postcss/lib/root.d.ts +86 -0
- package/dist/client/node_modules/postcss/lib/rule.d.ts +126 -0
- package/dist/client/node_modules/postcss/lib/stringifier.d.ts +45 -0
- package/dist/client/node_modules/postcss/lib/stringify.d.ts +9 -0
- package/dist/client/node_modules/postcss/lib/warning.d.ts +146 -0
- package/dist/client/node_modules/postcss/package.json +88 -0
- package/dist/client/node_modules/scroll-into-view-if-needed/dist/index.d.ts +79 -0
- package/dist/client/node_modules/scroll-into-view-if-needed/package.json +80 -0
- package/dist/client/node_modules/source-map-js/lib/source-map-consumer.d.ts +1 -0
- package/dist/client/node_modules/source-map-js/lib/source-map-generator.d.ts +1 -0
- package/dist/client/node_modules/source-map-js/lib/source-node.d.ts +1 -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 +104 -0
- package/dist/client/node_modules/vue/compiler-sfc/index.d.mts +1 -0
- package/dist/client/node_modules/vue/compiler-sfc/index.d.ts +1 -0
- package/dist/client/node_modules/vue/compiler-sfc/package.json +4 -0
- package/dist/client/node_modules/vue/dist/vue.d.mts +7 -0
- package/dist/client/node_modules/vue/dist/vue.d.ts +7 -0
- package/dist/client/node_modules/vue/jsx-runtime/index.d.ts +25 -0
- package/dist/client/node_modules/vue/jsx-runtime/package.json +5 -0
- package/dist/client/node_modules/vue/jsx.d.ts +22 -0
- package/dist/client/node_modules/vue/package.json +112 -0
- package/dist/client/node_modules/vue/server-renderer/index.d.mts +1 -0
- package/dist/client/node_modules/vue/server-renderer/index.d.ts +1 -0
- package/dist/client/node_modules/vue/server-renderer/package.json +4 -0
- package/dist/client/node_modules/vue-resize/package.json +77 -0
- package/dist/client/node_modules/vue-router/dist/experimental/index.d.mts +38 -0
- package/dist/client/node_modules/vue-router/dist/router-CWoNjPRp.d.mts +1973 -0
- package/dist/client/node_modules/vue-router/dist/vue-router.d.mts +361 -0
- package/dist/client/node_modules/vue-router/package.json +153 -0
- package/dist/client/node_modules/vue-router/vue-router-auto-resolver.d.mts +22 -0
- package/dist/client/node_modules/vue-router/vue-router-auto-routes.d.ts +4 -0
- package/dist/client/node_modules/vue-router/vue-router-auto.d.ts +1 -0
- package/dist/client/vue.runtime.esm-bundler.js +13167 -0
- package/entries.js +9 -0
- package/floating-vue.d.ts +4 -0
- package/iconify.d.ts +4 -0
- package/package.json +50 -0
- package/pinia.d.ts +4 -0
- package/rollup.config.mjs +119 -0
- package/scroll.d.ts +4 -0
- package/src/client/b-floating-vue.ts +5 -0
- package/src/client/b-iconify.ts +1 -0
- package/src/client/b-pinia.ts +1 -0
- package/src/client/b-scroll.ts +4 -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/tsconfig.json +34 -0
- package/vue-router.d.ts +4 -0
- package/vue-use.d.ts +4 -0
- package/vue.d.ts +4 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vue/compiler-sfc",
|
|
3
|
+
"version": "3.5.26",
|
|
4
|
+
"description": "@vue/compiler-sfc",
|
|
5
|
+
"main": "dist/compiler-sfc.cjs.js",
|
|
6
|
+
"module": "dist/compiler-sfc.esm-browser.js",
|
|
7
|
+
"types": "dist/compiler-sfc.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/compiler-sfc.d.ts",
|
|
14
|
+
"node": "./dist/compiler-sfc.cjs.js",
|
|
15
|
+
"module": "./dist/compiler-sfc.esm-browser.js",
|
|
16
|
+
"import": "./dist/compiler-sfc.esm-browser.js",
|
|
17
|
+
"require": "./dist/compiler-sfc.cjs.js"
|
|
18
|
+
},
|
|
19
|
+
"./*": "./*"
|
|
20
|
+
},
|
|
21
|
+
"buildOptions": {
|
|
22
|
+
"name": "VueCompilerSFC",
|
|
23
|
+
"formats": [
|
|
24
|
+
"cjs",
|
|
25
|
+
"esm-browser"
|
|
26
|
+
],
|
|
27
|
+
"prod": false,
|
|
28
|
+
"enableNonBrowserBranches": true
|
|
29
|
+
},
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git+https://github.com/vuejs/core.git",
|
|
33
|
+
"directory": "packages/compiler-sfc"
|
|
34
|
+
},
|
|
35
|
+
"keywords": [
|
|
36
|
+
"vue"
|
|
37
|
+
],
|
|
38
|
+
"author": "Evan You",
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/vuejs/core/issues"
|
|
42
|
+
},
|
|
43
|
+
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-sfc#readme",
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@babel/parser": "^7.28.5",
|
|
46
|
+
"estree-walker": "^2.0.2",
|
|
47
|
+
"magic-string": "^0.30.21",
|
|
48
|
+
"postcss": "^8.5.6",
|
|
49
|
+
"source-map-js": "^1.2.1",
|
|
50
|
+
"@vue/compiler-core": "3.5.26",
|
|
51
|
+
"@vue/compiler-dom": "3.5.26",
|
|
52
|
+
"@vue/compiler-ssr": "3.5.26",
|
|
53
|
+
"@vue/shared": "3.5.26"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@babel/types": "^7.28.5",
|
|
57
|
+
"@vue/consolidate": "^1.0.0",
|
|
58
|
+
"hash-sum": "^2.0.0",
|
|
59
|
+
"lru-cache": "10.1.0",
|
|
60
|
+
"merge-source-map": "^1.1.0",
|
|
61
|
+
"minimatch": "~10.1.1",
|
|
62
|
+
"postcss-modules": "^6.0.1",
|
|
63
|
+
"postcss-selector-parser": "^7.1.0",
|
|
64
|
+
"pug": "^3.0.3",
|
|
65
|
+
"sass": "^1.96.0"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vue/compiler-ssr",
|
|
3
|
+
"version": "3.5.26",
|
|
4
|
+
"description": "@vue/compiler-ssr",
|
|
5
|
+
"main": "dist/compiler-ssr.cjs.js",
|
|
6
|
+
"types": "dist/compiler-ssr.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"buildOptions": {
|
|
11
|
+
"prod": false,
|
|
12
|
+
"formats": [
|
|
13
|
+
"cjs"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/vuejs/core.git",
|
|
19
|
+
"directory": "packages/compiler-ssr"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"vue"
|
|
23
|
+
],
|
|
24
|
+
"author": "Evan You",
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/vuejs/core/issues"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-ssr#readme",
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@vue/shared": "3.5.26",
|
|
32
|
+
"@vue/compiler-dom": "3.5.26"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { ComponentBounds, Hookable } from './hooks.js';
|
|
2
|
+
import type { Context } from './context.js';
|
|
3
|
+
import type { ComponentInstance, ComponentState, StateBase } from './component.js';
|
|
4
|
+
import type { App } from './app.js';
|
|
5
|
+
import type { ID } from './util.js';
|
|
6
|
+
export interface DevtoolsPluginApi<TSettings> {
|
|
7
|
+
on: Hookable<Context>;
|
|
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
|
+
/**
|
|
23
|
+
* @private
|
|
24
|
+
*/
|
|
25
|
+
setSettings: (values: TSettings) => void;
|
|
26
|
+
}
|
|
27
|
+
export interface AppRecord {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
instanceMap: Map<string, ComponentInstance>;
|
|
31
|
+
rootInstance: ComponentInstance;
|
|
32
|
+
}
|
|
33
|
+
export interface TimelineLayerOptions<TData = any, TMeta = any> {
|
|
34
|
+
id: string;
|
|
35
|
+
label: string;
|
|
36
|
+
color: number;
|
|
37
|
+
skipScreenshots?: boolean;
|
|
38
|
+
groupsOnly?: boolean;
|
|
39
|
+
ignoreNoDurationGroups?: boolean;
|
|
40
|
+
screenshotOverlayRender?: (event: TimelineEvent<TData, TMeta> & ScreenshotOverlayEvent, ctx: ScreenshotOverlayRenderContext) => ScreenshotOverlayRenderResult | Promise<ScreenshotOverlayRenderResult>;
|
|
41
|
+
}
|
|
42
|
+
export interface ScreenshotOverlayEvent {
|
|
43
|
+
layerId: string;
|
|
44
|
+
renderMeta: any;
|
|
45
|
+
}
|
|
46
|
+
export interface ScreenshotOverlayRenderContext<TData = any, TMeta = any> {
|
|
47
|
+
screenshot: ScreenshotData;
|
|
48
|
+
events: (TimelineEvent<TData, TMeta> & ScreenshotOverlayEvent)[];
|
|
49
|
+
index: number;
|
|
50
|
+
}
|
|
51
|
+
export type ScreenshotOverlayRenderResult = HTMLElement | string | false;
|
|
52
|
+
export interface ScreenshotData {
|
|
53
|
+
time: number;
|
|
54
|
+
}
|
|
55
|
+
export interface TimelineEventOptions {
|
|
56
|
+
layerId: string;
|
|
57
|
+
event: TimelineEvent;
|
|
58
|
+
all?: boolean;
|
|
59
|
+
}
|
|
60
|
+
export interface TimelineEvent<TData = any, TMeta = any> {
|
|
61
|
+
time: number;
|
|
62
|
+
data: TData;
|
|
63
|
+
logType?: 'default' | 'warning' | 'error';
|
|
64
|
+
meta?: TMeta;
|
|
65
|
+
groupId?: ID;
|
|
66
|
+
title?: string;
|
|
67
|
+
subtitle?: string;
|
|
68
|
+
}
|
|
69
|
+
export interface TimelineMarkerOptions {
|
|
70
|
+
id: string;
|
|
71
|
+
time: number;
|
|
72
|
+
color: number;
|
|
73
|
+
label: string;
|
|
74
|
+
all?: boolean;
|
|
75
|
+
}
|
|
76
|
+
export interface CustomInspectorOptions {
|
|
77
|
+
id: string;
|
|
78
|
+
label: string;
|
|
79
|
+
icon?: string;
|
|
80
|
+
treeFilterPlaceholder?: string;
|
|
81
|
+
stateFilterPlaceholder?: string;
|
|
82
|
+
noSelectionText?: string;
|
|
83
|
+
actions?: {
|
|
84
|
+
icon: string;
|
|
85
|
+
tooltip?: string;
|
|
86
|
+
action: () => void | Promise<void>;
|
|
87
|
+
}[];
|
|
88
|
+
nodeActions?: {
|
|
89
|
+
icon: string;
|
|
90
|
+
tooltip?: string;
|
|
91
|
+
action: (nodeId: string) => void | Promise<void>;
|
|
92
|
+
}[];
|
|
93
|
+
}
|
|
94
|
+
export interface CustomInspectorNode {
|
|
95
|
+
id: string;
|
|
96
|
+
label: string;
|
|
97
|
+
children?: CustomInspectorNode[];
|
|
98
|
+
tags?: InspectorNodeTag[];
|
|
99
|
+
}
|
|
100
|
+
export interface InspectorNodeTag {
|
|
101
|
+
label: string;
|
|
102
|
+
textColor: number;
|
|
103
|
+
backgroundColor: number;
|
|
104
|
+
tooltip?: string;
|
|
105
|
+
}
|
|
106
|
+
export interface CustomInspectorState {
|
|
107
|
+
[key: string]: (StateBase | Omit<ComponentState, 'type'>)[];
|
|
108
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type App = any;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { InspectorNodeTag } from './api.js';
|
|
2
|
+
import type { ID } from './util.js';
|
|
3
|
+
export 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
|
+
autoOpen: boolean;
|
|
19
|
+
meta?: any;
|
|
20
|
+
}
|
|
21
|
+
export interface InspectedComponentData {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
file: string;
|
|
25
|
+
state: ComponentState[];
|
|
26
|
+
functional?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface StateBase {
|
|
29
|
+
key: string;
|
|
30
|
+
value: any;
|
|
31
|
+
editable?: boolean;
|
|
32
|
+
objectType?: 'ref' | 'reactive' | 'computed' | 'other';
|
|
33
|
+
raw?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface ComponentStateBase extends StateBase {
|
|
36
|
+
type: string;
|
|
37
|
+
}
|
|
38
|
+
export interface ComponentPropState extends ComponentStateBase {
|
|
39
|
+
meta?: {
|
|
40
|
+
type: string;
|
|
41
|
+
required: boolean;
|
|
42
|
+
/** Vue 1 only */
|
|
43
|
+
mode?: 'default' | 'sync' | 'once';
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export type ComponentBuiltinCustomStateTypes = 'function' | 'map' | 'set' | 'reference' | 'component' | 'component-definition' | 'router' | 'store';
|
|
47
|
+
export interface ComponentCustomState extends ComponentStateBase {
|
|
48
|
+
value: CustomState;
|
|
49
|
+
}
|
|
50
|
+
export interface CustomState {
|
|
51
|
+
_custom: {
|
|
52
|
+
type: ComponentBuiltinCustomStateTypes | string;
|
|
53
|
+
objectType?: string;
|
|
54
|
+
display?: string;
|
|
55
|
+
tooltip?: string;
|
|
56
|
+
value?: any;
|
|
57
|
+
abstract?: boolean;
|
|
58
|
+
file?: string;
|
|
59
|
+
uid?: number;
|
|
60
|
+
readOnly?: boolean;
|
|
61
|
+
/** Configure immediate child fields */
|
|
62
|
+
fields?: {
|
|
63
|
+
abstract?: boolean;
|
|
64
|
+
};
|
|
65
|
+
id?: any;
|
|
66
|
+
actions?: {
|
|
67
|
+
icon: string;
|
|
68
|
+
tooltip?: string;
|
|
69
|
+
action: () => void | Promise<void>;
|
|
70
|
+
}[];
|
|
71
|
+
/** internal */
|
|
72
|
+
_reviveId?: number;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export type ComponentState = ComponentStateBase | ComponentPropState | ComponentCustomState;
|
|
76
|
+
export interface ComponentDevtoolsOptions {
|
|
77
|
+
hide?: boolean;
|
|
78
|
+
}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import type { ComponentDevtoolsOptions, ComponentInstance, ComponentTreeNode, InspectedComponentData } 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 interface 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
|
+
recursively: boolean;
|
|
57
|
+
};
|
|
58
|
+
[Hooks.VISIT_COMPONENT_TREE]: {
|
|
59
|
+
app: App;
|
|
60
|
+
componentInstance: ComponentInstance;
|
|
61
|
+
treeNode: ComponentTreeNode;
|
|
62
|
+
filter: string;
|
|
63
|
+
};
|
|
64
|
+
[Hooks.WALK_COMPONENT_PARENTS]: {
|
|
65
|
+
componentInstance: ComponentInstance;
|
|
66
|
+
parentInstances: ComponentInstance[];
|
|
67
|
+
};
|
|
68
|
+
[Hooks.INSPECT_COMPONENT]: {
|
|
69
|
+
app: App;
|
|
70
|
+
componentInstance: ComponentInstance;
|
|
71
|
+
instanceData: InspectedComponentData;
|
|
72
|
+
};
|
|
73
|
+
[Hooks.GET_COMPONENT_BOUNDS]: {
|
|
74
|
+
componentInstance: ComponentInstance;
|
|
75
|
+
bounds: ComponentBounds;
|
|
76
|
+
};
|
|
77
|
+
[Hooks.GET_COMPONENT_NAME]: {
|
|
78
|
+
componentInstance: ComponentInstance;
|
|
79
|
+
name: string;
|
|
80
|
+
};
|
|
81
|
+
[Hooks.GET_COMPONENT_INSTANCES]: {
|
|
82
|
+
app: App;
|
|
83
|
+
componentInstances: ComponentInstance[];
|
|
84
|
+
};
|
|
85
|
+
[Hooks.GET_ELEMENT_COMPONENT]: {
|
|
86
|
+
element: HTMLElement | any;
|
|
87
|
+
componentInstance: ComponentInstance;
|
|
88
|
+
};
|
|
89
|
+
[Hooks.GET_COMPONENT_ROOT_ELEMENTS]: {
|
|
90
|
+
componentInstance: ComponentInstance;
|
|
91
|
+
rootElements: (HTMLElement | any)[];
|
|
92
|
+
};
|
|
93
|
+
[Hooks.EDIT_COMPONENT_STATE]: {
|
|
94
|
+
app: App;
|
|
95
|
+
componentInstance: ComponentInstance;
|
|
96
|
+
path: string[];
|
|
97
|
+
type: string;
|
|
98
|
+
state: EditStatePayload;
|
|
99
|
+
set: (object: any, path?: string | (string[]), value?: any, cb?: (object: any, field: string, value: any) => void) => void;
|
|
100
|
+
};
|
|
101
|
+
[Hooks.GET_COMPONENT_DEVTOOLS_OPTIONS]: {
|
|
102
|
+
componentInstance: ComponentInstance;
|
|
103
|
+
options: ComponentDevtoolsOptions;
|
|
104
|
+
};
|
|
105
|
+
[Hooks.GET_COMPONENT_RENDER_CODE]: {
|
|
106
|
+
componentInstance: ComponentInstance;
|
|
107
|
+
code: string;
|
|
108
|
+
};
|
|
109
|
+
[Hooks.INSPECT_TIMELINE_EVENT]: {
|
|
110
|
+
app: App;
|
|
111
|
+
layerId: string;
|
|
112
|
+
event: TimelineEvent;
|
|
113
|
+
all?: boolean;
|
|
114
|
+
data: any;
|
|
115
|
+
};
|
|
116
|
+
[Hooks.TIMELINE_CLEARED]: Record<string, never>;
|
|
117
|
+
[Hooks.GET_INSPECTOR_TREE]: {
|
|
118
|
+
app: App;
|
|
119
|
+
inspectorId: string;
|
|
120
|
+
filter: string;
|
|
121
|
+
rootNodes: CustomInspectorNode[];
|
|
122
|
+
};
|
|
123
|
+
[Hooks.GET_INSPECTOR_STATE]: {
|
|
124
|
+
app: App;
|
|
125
|
+
inspectorId: string;
|
|
126
|
+
nodeId: string;
|
|
127
|
+
state: CustomInspectorState;
|
|
128
|
+
};
|
|
129
|
+
[Hooks.EDIT_INSPECTOR_STATE]: {
|
|
130
|
+
app: App;
|
|
131
|
+
inspectorId: string;
|
|
132
|
+
nodeId: string;
|
|
133
|
+
path: string[];
|
|
134
|
+
type: string;
|
|
135
|
+
state: EditStatePayload;
|
|
136
|
+
set: (object: any, path?: string | (string[]), value?: any, cb?: (object: any, field: string, value: any) => void) => void;
|
|
137
|
+
};
|
|
138
|
+
[Hooks.SET_PLUGIN_SETTINGS]: {
|
|
139
|
+
app: App;
|
|
140
|
+
pluginId: string;
|
|
141
|
+
key: string;
|
|
142
|
+
newValue: any;
|
|
143
|
+
oldValue: any;
|
|
144
|
+
settings: any;
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
export type EditStatePayload = {
|
|
148
|
+
value: any;
|
|
149
|
+
newKey?: string | null;
|
|
150
|
+
remove?: undefined | false;
|
|
151
|
+
} | {
|
|
152
|
+
value?: undefined;
|
|
153
|
+
newKey?: undefined;
|
|
154
|
+
remove: true;
|
|
155
|
+
};
|
|
156
|
+
export type HookHandler<TPayload, TContext> = (payload: TPayload, ctx: TContext) => void | Promise<void>;
|
|
157
|
+
export interface Hookable<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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ApiProxy } from './proxy.js';
|
|
2
|
+
import type { PluginDescriptor, SetupFunction } from './index.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 { ExtractSettingsTypes, PluginDescriptor, 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
|
+
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
|
+
[K in keyof A]: Narrow<A[K]>;
|
|
11
|
+
})>;
|
|
12
|
+
type Exact<C, T> = {
|
|
13
|
+
[K in keyof C]: K extends keyof T ? T[K] : never;
|
|
14
|
+
};
|
|
15
|
+
export 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 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
|
+
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 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.6.4",
|
|
4
|
+
"description": "Interact with the Vue devtools from the page",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Guillaume Chau"
|
|
7
|
+
},
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"repository": {
|
|
10
|
+
"url": "https://github.com/vuejs/vue-devtools.git",
|
|
11
|
+
"type": "git",
|
|
12
|
+
"directory": "packages/api"
|
|
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
|
+
"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": "^20.11.16",
|
|
34
|
+
"@types/webpack-env": "^1.15.1",
|
|
35
|
+
"typescript": "^5.3.3"
|
|
36
|
+
}
|
|
37
|
+
}
|