@histoire/vendors 0.8.4 → 0.9.2
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} +13 -18
- 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 +46 -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 +375 -0
- package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +367 -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 +415 -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 +14 -5
- package/pinia.d.ts +3 -0
- package/rollup.config.mjs +117 -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,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vue/compiler-core",
|
|
3
|
+
"version": "3.2.37",
|
|
4
|
+
"description": "@vue/compiler-core",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"module": "dist/compiler-core.esm-bundler.js",
|
|
7
|
+
"types": "dist/compiler-core.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"index.js",
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"buildOptions": {
|
|
13
|
+
"name": "VueCompilerCore",
|
|
14
|
+
"compat": true,
|
|
15
|
+
"formats": [
|
|
16
|
+
"esm-bundler",
|
|
17
|
+
"cjs"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/vuejs/core.git",
|
|
23
|
+
"directory": "packages/compiler-core"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"vue"
|
|
27
|
+
],
|
|
28
|
+
"author": "Evan You",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/vuejs/core/issues"
|
|
32
|
+
},
|
|
33
|
+
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-core#readme",
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@vue/shared": "3.2.37",
|
|
36
|
+
"@babel/parser": "^7.16.4",
|
|
37
|
+
"estree-walker": "^2.0.2",
|
|
38
|
+
"source-map": "^0.6.1"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@babel/types": "^7.16.0"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { CodegenResult } from '@vue/compiler-core';
|
|
2
|
+
import { CompilerError } from '@vue/compiler-core';
|
|
3
|
+
import { CompilerOptions } from '@vue/compiler-core';
|
|
4
|
+
import { DirectiveTransform } from '@vue/compiler-core';
|
|
5
|
+
import { NodeTransform } from '@vue/compiler-core';
|
|
6
|
+
import { ParserOptions } from '@vue/compiler-core';
|
|
7
|
+
import { RootNode } from '@vue/compiler-core';
|
|
8
|
+
import { SourceLocation } from '@vue/compiler-core';
|
|
9
|
+
|
|
10
|
+
export declare function compile(template: string, options?: CompilerOptions): CodegenResult;
|
|
11
|
+
|
|
12
|
+
export declare function createDOMCompilerError(code: DOMErrorCodes, loc?: SourceLocation): DOMCompilerError;
|
|
13
|
+
|
|
14
|
+
declare interface DOMCompilerError extends CompilerError {
|
|
15
|
+
code: DOMErrorCodes;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export declare const DOMDirectiveTransforms: Record<string, DirectiveTransform>;
|
|
19
|
+
|
|
20
|
+
export declare const enum DOMErrorCodes {
|
|
21
|
+
X_V_HTML_NO_EXPRESSION = 50,
|
|
22
|
+
X_V_HTML_WITH_CHILDREN = 51,
|
|
23
|
+
X_V_TEXT_NO_EXPRESSION = 52,
|
|
24
|
+
X_V_TEXT_WITH_CHILDREN = 53,
|
|
25
|
+
X_V_MODEL_ON_INVALID_ELEMENT = 54,
|
|
26
|
+
X_V_MODEL_ARG_ON_ELEMENT = 55,
|
|
27
|
+
X_V_MODEL_ON_FILE_INPUT_ELEMENT = 56,
|
|
28
|
+
X_V_MODEL_UNNECESSARY_VALUE = 57,
|
|
29
|
+
X_V_SHOW_NO_EXPRESSION = 58,
|
|
30
|
+
X_TRANSITION_INVALID_CHILDREN = 59,
|
|
31
|
+
X_IGNORED_SIDE_EFFECT_TAG = 60,
|
|
32
|
+
__EXTEND_POINT__ = 61
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export declare const DOMNodeTransforms: NodeTransform[];
|
|
36
|
+
|
|
37
|
+
export declare function parse(template: string, options?: ParserOptions): RootNode;
|
|
38
|
+
|
|
39
|
+
export declare const parserOptions: ParserOptions;
|
|
40
|
+
|
|
41
|
+
export declare const transformStyle: NodeTransform;
|
|
42
|
+
|
|
43
|
+
export declare const TRANSITION: unique symbol;
|
|
44
|
+
|
|
45
|
+
export declare const TRANSITION_GROUP: unique symbol;
|
|
46
|
+
|
|
47
|
+
export declare const V_MODEL_CHECKBOX: unique symbol;
|
|
48
|
+
|
|
49
|
+
export declare const V_MODEL_DYNAMIC: unique symbol;
|
|
50
|
+
|
|
51
|
+
export declare const V_MODEL_RADIO: unique symbol;
|
|
52
|
+
|
|
53
|
+
export declare const V_MODEL_SELECT: unique symbol;
|
|
54
|
+
|
|
55
|
+
export declare const V_MODEL_TEXT: unique symbol;
|
|
56
|
+
|
|
57
|
+
export declare const V_ON_WITH_KEYS: unique symbol;
|
|
58
|
+
|
|
59
|
+
export declare const V_ON_WITH_MODIFIERS: unique symbol;
|
|
60
|
+
|
|
61
|
+
export declare const V_SHOW: unique symbol;
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
export * from "@vue/compiler-core";
|
|
65
|
+
|
|
66
|
+
export { }
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vue/compiler-dom",
|
|
3
|
+
"version": "3.2.37",
|
|
4
|
+
"description": "@vue/compiler-dom",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"module": "dist/compiler-dom.esm-bundler.js",
|
|
7
|
+
"types": "dist/compiler-dom.d.ts",
|
|
8
|
+
"unpkg": "dist/compiler-dom.global.js",
|
|
9
|
+
"jsdelivr": "dist/compiler-dom.global.js",
|
|
10
|
+
"files": [
|
|
11
|
+
"index.js",
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"buildOptions": {
|
|
16
|
+
"name": "VueCompilerDOM",
|
|
17
|
+
"compat": true,
|
|
18
|
+
"formats": [
|
|
19
|
+
"esm-bundler",
|
|
20
|
+
"esm-browser",
|
|
21
|
+
"cjs",
|
|
22
|
+
"global"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/vuejs/core.git",
|
|
28
|
+
"directory": "packages/compiler-dom"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"vue"
|
|
32
|
+
],
|
|
33
|
+
"author": "Evan You",
|
|
34
|
+
"license": "MIT",
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/vuejs/core/issues"
|
|
37
|
+
},
|
|
38
|
+
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-dom#readme",
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@vue/shared": "3.2.37",
|
|
41
|
+
"@vue/compiler-core": "3.2.37"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
import { parse as babelParse } from '@babel/parser';
|
|
2
|
+
import { BindingMetadata } from '@vue/compiler-core';
|
|
3
|
+
import { CodegenResult } from '@vue/compiler-core';
|
|
4
|
+
import { CompilerError } from '@vue/compiler-core';
|
|
5
|
+
import { CompilerOptions } from '@vue/compiler-core';
|
|
6
|
+
import { ElementNode } from '@vue/compiler-core';
|
|
7
|
+
import { extractIdentifiers } from '@vue/compiler-core';
|
|
8
|
+
import { generateCodeFrame } from '@vue/compiler-core';
|
|
9
|
+
import { isInDestructureAssignment } from '@vue/compiler-core';
|
|
10
|
+
import { isStaticProperty } from '@vue/compiler-core';
|
|
11
|
+
import { LazyResult } from 'postcss';
|
|
12
|
+
import MagicString from 'magic-string';
|
|
13
|
+
import { ParserOptions } from '@vue/compiler-core';
|
|
14
|
+
import { ParserPlugin } from '@babel/parser';
|
|
15
|
+
import { RawSourceMap } from 'source-map';
|
|
16
|
+
import { Result } from 'postcss';
|
|
17
|
+
import { RootNode } from '@vue/compiler-core';
|
|
18
|
+
import { shouldTransform as shouldTransformRef } from '@vue/reactivity-transform';
|
|
19
|
+
import { SourceLocation } from '@vue/compiler-core';
|
|
20
|
+
import { transform as transformRef } from '@vue/reactivity-transform';
|
|
21
|
+
import { transformAST as transformRefAST } from '@vue/reactivity-transform';
|
|
22
|
+
import { walkIdentifiers } from '@vue/compiler-core';
|
|
23
|
+
|
|
24
|
+
export declare interface AssetURLOptions {
|
|
25
|
+
/**
|
|
26
|
+
* If base is provided, instead of transforming relative asset urls into
|
|
27
|
+
* imports, they will be directly rewritten to absolute urls.
|
|
28
|
+
*/
|
|
29
|
+
base?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* If true, also processes absolute urls.
|
|
32
|
+
*/
|
|
33
|
+
includeAbsolute?: boolean;
|
|
34
|
+
tags?: AssetURLTagConfig;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export declare interface AssetURLTagConfig {
|
|
38
|
+
[name: string]: string[];
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { babelParse }
|
|
42
|
+
|
|
43
|
+
export { BindingMetadata }
|
|
44
|
+
|
|
45
|
+
export { CompilerError }
|
|
46
|
+
|
|
47
|
+
export { CompilerOptions }
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Compile `<script setup>`
|
|
51
|
+
* It requires the whole SFC descriptor because we need to handle and merge
|
|
52
|
+
* normal `<script>` + `<script setup>` if both are present.
|
|
53
|
+
*/
|
|
54
|
+
export declare function compileScript(sfc: SFCDescriptor, options: SFCScriptCompileOptions): SFCScriptBlock;
|
|
55
|
+
|
|
56
|
+
export declare function compileStyle(options: SFCStyleCompileOptions): SFCStyleCompileResults;
|
|
57
|
+
|
|
58
|
+
export declare function compileStyleAsync(options: SFCAsyncStyleCompileOptions): Promise<SFCStyleCompileResults>;
|
|
59
|
+
|
|
60
|
+
export declare function compileTemplate(options: SFCTemplateCompileOptions): SFCTemplateCompileResults;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Aligns with postcss-modules
|
|
64
|
+
* https://github.com/css-modules/postcss-modules
|
|
65
|
+
*/
|
|
66
|
+
declare interface CSSModulesOptions {
|
|
67
|
+
scopeBehaviour?: 'global' | 'local';
|
|
68
|
+
generateScopedName?: string | ((name: string, filename: string, css: string) => string);
|
|
69
|
+
hashPrefix?: string;
|
|
70
|
+
localsConvention?: 'camelCase' | 'camelCaseOnly' | 'dashes' | 'dashesOnly';
|
|
71
|
+
exportGlobals?: boolean;
|
|
72
|
+
globalModulePaths?: RegExp[];
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export { extractIdentifiers }
|
|
76
|
+
|
|
77
|
+
export { generateCodeFrame }
|
|
78
|
+
|
|
79
|
+
declare interface ImportBinding {
|
|
80
|
+
isType: boolean;
|
|
81
|
+
imported: string;
|
|
82
|
+
source: string;
|
|
83
|
+
isFromSetup: boolean;
|
|
84
|
+
isUsedInTemplate: boolean;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export { isInDestructureAssignment }
|
|
88
|
+
|
|
89
|
+
export { isStaticProperty }
|
|
90
|
+
|
|
91
|
+
export { MagicString }
|
|
92
|
+
|
|
93
|
+
export declare function parse(source: string, { sourceMap, filename, sourceRoot, pad, ignoreEmpty, compiler }?: SFCParseOptions): SFCParseResult;
|
|
94
|
+
|
|
95
|
+
declare type PreprocessLang = 'less' | 'sass' | 'scss' | 'styl' | 'stylus';
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Utility for rewriting `export default` in a script block into a variable
|
|
99
|
+
* declaration so that we can inject things into it
|
|
100
|
+
*/
|
|
101
|
+
export declare function rewriteDefault(input: string, as: string, parserPlugins?: ParserPlugin[]): string;
|
|
102
|
+
|
|
103
|
+
export declare interface SFCAsyncStyleCompileOptions extends SFCStyleCompileOptions {
|
|
104
|
+
isAsync?: boolean;
|
|
105
|
+
modules?: boolean;
|
|
106
|
+
modulesOptions?: CSSModulesOptions;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export declare interface SFCBlock {
|
|
110
|
+
type: string;
|
|
111
|
+
content: string;
|
|
112
|
+
attrs: Record<string, string | true>;
|
|
113
|
+
loc: SourceLocation;
|
|
114
|
+
map?: RawSourceMap;
|
|
115
|
+
lang?: string;
|
|
116
|
+
src?: string;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export declare interface SFCDescriptor {
|
|
120
|
+
filename: string;
|
|
121
|
+
source: string;
|
|
122
|
+
template: SFCTemplateBlock | null;
|
|
123
|
+
script: SFCScriptBlock | null;
|
|
124
|
+
scriptSetup: SFCScriptBlock | null;
|
|
125
|
+
styles: SFCStyleBlock[];
|
|
126
|
+
customBlocks: SFCBlock[];
|
|
127
|
+
cssVars: string[];
|
|
128
|
+
/**
|
|
129
|
+
* whether the SFC uses :slotted() modifier.
|
|
130
|
+
* this is used as a compiler optimization hint.
|
|
131
|
+
*/
|
|
132
|
+
slotted: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* compare with an existing descriptor to determine whether HMR should perform
|
|
135
|
+
* a reload vs. re-render.
|
|
136
|
+
*
|
|
137
|
+
* Note: this comparison assumes the prev/next script are already identical,
|
|
138
|
+
* and only checks the special case where <script setup lang="ts"> unused import
|
|
139
|
+
* pruning result changes due to template changes.
|
|
140
|
+
*/
|
|
141
|
+
shouldForceReload: (prevImports: Record<string, ImportBinding>) => boolean;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export declare interface SFCParseOptions {
|
|
145
|
+
filename?: string;
|
|
146
|
+
sourceMap?: boolean;
|
|
147
|
+
sourceRoot?: string;
|
|
148
|
+
pad?: boolean | 'line' | 'space';
|
|
149
|
+
ignoreEmpty?: boolean;
|
|
150
|
+
compiler?: TemplateCompiler;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export declare interface SFCParseResult {
|
|
154
|
+
descriptor: SFCDescriptor;
|
|
155
|
+
errors: (CompilerError | SyntaxError)[];
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export declare interface SFCScriptBlock extends SFCBlock {
|
|
159
|
+
type: 'script';
|
|
160
|
+
setup?: string | boolean;
|
|
161
|
+
bindings?: BindingMetadata;
|
|
162
|
+
imports?: Record<string, ImportBinding>;
|
|
163
|
+
/**
|
|
164
|
+
* import('\@babel/types').Statement
|
|
165
|
+
*/
|
|
166
|
+
scriptAst?: any[];
|
|
167
|
+
/**
|
|
168
|
+
* import('\@babel/types').Statement
|
|
169
|
+
*/
|
|
170
|
+
scriptSetupAst?: any[];
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export declare interface SFCScriptCompileOptions {
|
|
174
|
+
/**
|
|
175
|
+
* Scope ID for prefixing injected CSS variables.
|
|
176
|
+
* This must be consistent with the `id` passed to `compileStyle`.
|
|
177
|
+
*/
|
|
178
|
+
id: string;
|
|
179
|
+
/**
|
|
180
|
+
* Production mode. Used to determine whether to generate hashed CSS variables
|
|
181
|
+
*/
|
|
182
|
+
isProd?: boolean;
|
|
183
|
+
/**
|
|
184
|
+
* Enable/disable source map. Defaults to true.
|
|
185
|
+
*/
|
|
186
|
+
sourceMap?: boolean;
|
|
187
|
+
/**
|
|
188
|
+
* https://babeljs.io/docs/en/babel-parser#plugins
|
|
189
|
+
*/
|
|
190
|
+
babelParserPlugins?: ParserPlugin[];
|
|
191
|
+
/**
|
|
192
|
+
* (Experimental) Enable syntax transform for using refs without `.value` and
|
|
193
|
+
* using destructured props with reactivity
|
|
194
|
+
*/
|
|
195
|
+
reactivityTransform?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* (Experimental) Enable syntax transform for using refs without `.value`
|
|
198
|
+
* https://github.com/vuejs/rfcs/discussions/369
|
|
199
|
+
* @deprecated now part of `reactivityTransform`
|
|
200
|
+
* @default false
|
|
201
|
+
*/
|
|
202
|
+
refTransform?: boolean;
|
|
203
|
+
/**
|
|
204
|
+
* (Experimental) Enable syntax transform for destructuring from defineProps()
|
|
205
|
+
* https://github.com/vuejs/rfcs/discussions/394
|
|
206
|
+
* @deprecated now part of `reactivityTransform`
|
|
207
|
+
* @default false
|
|
208
|
+
*/
|
|
209
|
+
propsDestructureTransform?: boolean;
|
|
210
|
+
/**
|
|
211
|
+
* @deprecated use `reactivityTransform` instead.
|
|
212
|
+
*/
|
|
213
|
+
refSugar?: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* Compile the template and inline the resulting render function
|
|
216
|
+
* directly inside setup().
|
|
217
|
+
* - Only affects `<script setup>`
|
|
218
|
+
* - This should only be used in production because it prevents the template
|
|
219
|
+
* from being hot-reloaded separately from component state.
|
|
220
|
+
*/
|
|
221
|
+
inlineTemplate?: boolean;
|
|
222
|
+
/**
|
|
223
|
+
* Options for template compilation when inlining. Note these are options that
|
|
224
|
+
* would normally be passed to `compiler-sfc`'s own `compileTemplate()`, not
|
|
225
|
+
* options passed to `compiler-dom`.
|
|
226
|
+
*/
|
|
227
|
+
templateOptions?: Partial<SFCTemplateCompileOptions>;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export declare interface SFCStyleBlock extends SFCBlock {
|
|
231
|
+
type: 'style';
|
|
232
|
+
scoped?: boolean;
|
|
233
|
+
module?: string | boolean;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export declare interface SFCStyleCompileOptions {
|
|
237
|
+
source: string;
|
|
238
|
+
filename: string;
|
|
239
|
+
id: string;
|
|
240
|
+
scoped?: boolean;
|
|
241
|
+
trim?: boolean;
|
|
242
|
+
isProd?: boolean;
|
|
243
|
+
inMap?: RawSourceMap;
|
|
244
|
+
preprocessLang?: PreprocessLang;
|
|
245
|
+
preprocessOptions?: any;
|
|
246
|
+
preprocessCustomRequire?: (id: string) => any;
|
|
247
|
+
postcssOptions?: any;
|
|
248
|
+
postcssPlugins?: any[];
|
|
249
|
+
/**
|
|
250
|
+
* @deprecated use `inMap` instead.
|
|
251
|
+
*/
|
|
252
|
+
map?: RawSourceMap;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export declare interface SFCStyleCompileResults {
|
|
256
|
+
code: string;
|
|
257
|
+
map: RawSourceMap | undefined;
|
|
258
|
+
rawResult: Result | LazyResult | undefined;
|
|
259
|
+
errors: Error[];
|
|
260
|
+
modules?: Record<string, string>;
|
|
261
|
+
dependencies: Set<string>;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export declare interface SFCTemplateBlock extends SFCBlock {
|
|
265
|
+
type: 'template';
|
|
266
|
+
ast: ElementNode;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export declare interface SFCTemplateCompileOptions {
|
|
270
|
+
source: string;
|
|
271
|
+
filename: string;
|
|
272
|
+
id: string;
|
|
273
|
+
scoped?: boolean;
|
|
274
|
+
slotted?: boolean;
|
|
275
|
+
isProd?: boolean;
|
|
276
|
+
ssr?: boolean;
|
|
277
|
+
ssrCssVars?: string[];
|
|
278
|
+
inMap?: RawSourceMap;
|
|
279
|
+
compiler?: TemplateCompiler;
|
|
280
|
+
compilerOptions?: CompilerOptions;
|
|
281
|
+
preprocessLang?: string;
|
|
282
|
+
preprocessOptions?: any;
|
|
283
|
+
/**
|
|
284
|
+
* In some cases, compiler-sfc may not be inside the project root (e.g. when
|
|
285
|
+
* linked or globally installed). In such cases a custom `require` can be
|
|
286
|
+
* passed to correctly resolve the preprocessors.
|
|
287
|
+
*/
|
|
288
|
+
preprocessCustomRequire?: (id: string) => any;
|
|
289
|
+
/**
|
|
290
|
+
* Configure what tags/attributes to transform into asset url imports,
|
|
291
|
+
* or disable the transform altogether with `false`.
|
|
292
|
+
*/
|
|
293
|
+
transformAssetUrls?: AssetURLOptions | AssetURLTagConfig | boolean;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export declare interface SFCTemplateCompileResults {
|
|
297
|
+
code: string;
|
|
298
|
+
ast?: RootNode;
|
|
299
|
+
preamble?: string;
|
|
300
|
+
source: string;
|
|
301
|
+
tips: string[];
|
|
302
|
+
errors: (string | CompilerError)[];
|
|
303
|
+
map?: RawSourceMap;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export { shouldTransformRef }
|
|
307
|
+
|
|
308
|
+
export declare interface TemplateCompiler {
|
|
309
|
+
compile(template: string, options: CompilerOptions): CodegenResult;
|
|
310
|
+
parse(template: string, options: ParserOptions): RootNode;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export { transformRef }
|
|
314
|
+
|
|
315
|
+
export { transformRefAST }
|
|
316
|
+
|
|
317
|
+
export declare const walk: any;
|
|
318
|
+
|
|
319
|
+
export { walkIdentifiers }
|
|
320
|
+
|
|
321
|
+
export { }
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vue/compiler-sfc",
|
|
3
|
+
"version": "3.2.37",
|
|
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
|
+
"buildOptions": {
|
|
12
|
+
"name": "VueCompilerSFC",
|
|
13
|
+
"formats": [
|
|
14
|
+
"cjs",
|
|
15
|
+
"esm-browser"
|
|
16
|
+
],
|
|
17
|
+
"prod": false,
|
|
18
|
+
"enableNonBrowserBranches": true
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/vuejs/core.git",
|
|
23
|
+
"directory": "packages/compiler-sfc"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"vue"
|
|
27
|
+
],
|
|
28
|
+
"author": "Evan You",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/vuejs/core/issues"
|
|
32
|
+
},
|
|
33
|
+
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-sfc#readme",
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@babel/parser": "^7.16.4",
|
|
36
|
+
"@vue/compiler-core": "3.2.37",
|
|
37
|
+
"@vue/compiler-dom": "3.2.37",
|
|
38
|
+
"@vue/compiler-ssr": "3.2.37",
|
|
39
|
+
"@vue/reactivity-transform": "3.2.37",
|
|
40
|
+
"@vue/shared": "3.2.37",
|
|
41
|
+
"estree-walker": "^2.0.2",
|
|
42
|
+
"magic-string": "^0.25.7",
|
|
43
|
+
"source-map": "^0.6.1",
|
|
44
|
+
"postcss": "^8.1.10"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@types/estree": "^0.0.48",
|
|
48
|
+
"@babel/types": "^7.16.0",
|
|
49
|
+
"@types/lru-cache": "^5.1.0",
|
|
50
|
+
"pug": "^3.0.1",
|
|
51
|
+
"sass": "^1.26.9",
|
|
52
|
+
"@vue/consolidate": "^0.17.3",
|
|
53
|
+
"hash-sum": "^2.0.0",
|
|
54
|
+
"lru-cache": "^5.1.1",
|
|
55
|
+
"merge-source-map": "^1.1.0",
|
|
56
|
+
"postcss-modules": "^4.0.0",
|
|
57
|
+
"postcss-selector-parser": "^6.0.4"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vue/compiler-ssr",
|
|
3
|
+
"version": "3.2.37",
|
|
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.2.37",
|
|
32
|
+
"@vue/compiler-dom": "3.2.37"
|
|
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 Not implemented yet
|
|
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 declare 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 declare type App = any;
|