@histoire/vendors 0.8.3 → 0.9.1
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,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vue-router",
|
|
3
|
+
"version": "4.1.3",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"unpkg": "dist/vue-router.global.js",
|
|
6
|
+
"jsdelivr": "dist/vue-router.global.js",
|
|
7
|
+
"module": "dist/vue-router.mjs",
|
|
8
|
+
"types": "dist/vue-router.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/vue-router.d.ts",
|
|
12
|
+
"node": {
|
|
13
|
+
"import": {
|
|
14
|
+
"production": "./dist/vue-router.prod.cjs",
|
|
15
|
+
"development": "./dist/vue-router.node.mjs",
|
|
16
|
+
"default": "./dist/vue-router.node.mjs"
|
|
17
|
+
},
|
|
18
|
+
"require": {
|
|
19
|
+
"production": "./dist/vue-router.prod.cjs",
|
|
20
|
+
"development": "./dist/vue-router.cjs",
|
|
21
|
+
"default": "./index.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"import": "./dist/vue-router.mjs",
|
|
25
|
+
"require": "./index.js"
|
|
26
|
+
},
|
|
27
|
+
"./dist/*": "./dist/*",
|
|
28
|
+
"./vetur/*": "./vetur/*",
|
|
29
|
+
"./package.json": "./package.json"
|
|
30
|
+
},
|
|
31
|
+
"sideEffects": false,
|
|
32
|
+
"funding": "https://github.com/sponsors/posva",
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/vuejs/router.git"
|
|
37
|
+
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/vuejs/router/issues"
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://github.com/vuejs/router#readme",
|
|
42
|
+
"files": [
|
|
43
|
+
"index.js",
|
|
44
|
+
"dist/*.{js,cjs,mjs}",
|
|
45
|
+
"dist/vue-router.d.ts",
|
|
46
|
+
"vetur/tags.json",
|
|
47
|
+
"vetur/attributes.json",
|
|
48
|
+
"README.md"
|
|
49
|
+
],
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"vue": "^3.2.0"
|
|
52
|
+
},
|
|
53
|
+
"vetur": {
|
|
54
|
+
"tags": "vetur/tags.json",
|
|
55
|
+
"attributes": "vetur/attributes.json"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@vue/devtools-api": "^6.1.4"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@microsoft/api-extractor": "^7.28.4",
|
|
62
|
+
"@rollup/plugin-alias": "^3.1.4",
|
|
63
|
+
"@rollup/plugin-commonjs": "^22.0.1",
|
|
64
|
+
"@rollup/plugin-node-resolve": "^13.0.5",
|
|
65
|
+
"@rollup/plugin-replace": "^4.0.0",
|
|
66
|
+
"@sucrase/jest-plugin": "^2.1.1",
|
|
67
|
+
"@types/jest": "^27.4.1",
|
|
68
|
+
"@types/jsdom": "^16.2.13",
|
|
69
|
+
"@types/nightwatch": "^2.0.9",
|
|
70
|
+
"@vitejs/plugin-vue": "^2.3.3",
|
|
71
|
+
"@vue/compiler-sfc": "^3.2.31",
|
|
72
|
+
"@vue/server-renderer": "^3.2.37",
|
|
73
|
+
"@vue/test-utils": "^2.0.2",
|
|
74
|
+
"browserstack-local": "^1.4.5",
|
|
75
|
+
"chromedriver": "^102.0.0",
|
|
76
|
+
"connect-history-api-fallback": "^1.6.0",
|
|
77
|
+
"conventional-changelog-cli": "^2.1.1",
|
|
78
|
+
"dotenv": "^16.0.0",
|
|
79
|
+
"faked-promise": "^2.2.2",
|
|
80
|
+
"geckodriver": "^3.0.2",
|
|
81
|
+
"jest": "^27.5.1",
|
|
82
|
+
"jest-mock-warn": "^1.1.0",
|
|
83
|
+
"nightwatch": "^2.2.3",
|
|
84
|
+
"nightwatch-helpers": "^1.2.0",
|
|
85
|
+
"rimraf": "^3.0.2",
|
|
86
|
+
"rollup": "^2.77.0",
|
|
87
|
+
"rollup-plugin-analyzer": "^4.0.0",
|
|
88
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
89
|
+
"rollup-plugin-typescript2": "^0.32.1",
|
|
90
|
+
"typescript": "~4.7.4",
|
|
91
|
+
"vite": "^2.9.9",
|
|
92
|
+
"vue": "^3.2.37"
|
|
93
|
+
},
|
|
94
|
+
"scripts": {
|
|
95
|
+
"dev": "vite --config playground/vite.config.js",
|
|
96
|
+
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
|
|
97
|
+
"build": "rimraf dist && rollup -c rollup.config.js",
|
|
98
|
+
"build:dts": "api-extractor run --local --verbose && tail -n +10 src/globalExtensions.ts >> dist/vue-router.d.ts",
|
|
99
|
+
"build:playground": "vue-tsc --noEmit && vite build --config playground/vite.config.js",
|
|
100
|
+
"build:e2e": "vue-tsc --noEmit && vite build --config e2e/vite.config.js",
|
|
101
|
+
"build:size": "pnpm run build && rollup -c size-checks/rollup.config.js",
|
|
102
|
+
"dev:e2e": "vite --config e2e/vite.config.js",
|
|
103
|
+
"test:types": "tsc --build tsconfig.json",
|
|
104
|
+
"test:dts": "tsc -p ./test-dts/tsconfig.json",
|
|
105
|
+
"test:unit": "jest --coverage",
|
|
106
|
+
"test": "pnpm run test:types && pnpm run test:unit && pnpm run build && pnpm run build:dts && pnpm run test:e2e",
|
|
107
|
+
"test:e2e": "pnpm run test:e2e:headless",
|
|
108
|
+
"test:e2e:headless": "node e2e/runner.js --env chrome-headless",
|
|
109
|
+
"test:e2e:native": "node e2e/runner.js --env chrome",
|
|
110
|
+
"test:e2e:ci": "node e2e/runner.js --env chrome-headless --retries 2",
|
|
111
|
+
"test:e2e:bs": "node e2e/runner.js --local -e android5 --tag browserstack",
|
|
112
|
+
"test:e2e:bs-test": "node e2e/runner.js --local --env browserstack.local_chrome --tag browserstack"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -2580,7 +2580,7 @@ function normalizeEmitsOptions(comp, appContext, asMixin = false) {
|
|
|
2580
2580
|
let normalized = {};
|
|
2581
2581
|
// apply mixin/extends props
|
|
2582
2582
|
let hasExtends = false;
|
|
2583
|
-
if (
|
|
2583
|
+
if (true && !isFunction(comp)) {
|
|
2584
2584
|
const extendEmits = (raw) => {
|
|
2585
2585
|
const normalizedFromExtend = normalizeEmitsOptions(raw, appContext, true);
|
|
2586
2586
|
if (normalizedFromExtend) {
|
|
@@ -4671,7 +4671,7 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
4671
4671
|
const Component = instance.type;
|
|
4672
4672
|
// explicit self name has highest priority
|
|
4673
4673
|
if (type === COMPONENTS) {
|
|
4674
|
-
const selfName = getComponentName(Component);
|
|
4674
|
+
const selfName = getComponentName(Component, false /* do not include inferred name to avoid breaking existing code */);
|
|
4675
4675
|
if (selfName &&
|
|
4676
4676
|
(selfName === name ||
|
|
4677
4677
|
selfName === camelize(name) ||
|
|
@@ -4872,10 +4872,10 @@ const publicPropertiesMap =
|
|
|
4872
4872
|
$parent: i => getPublicInstance(i.parent),
|
|
4873
4873
|
$root: i => getPublicInstance(i.root),
|
|
4874
4874
|
$emit: i => i.emit,
|
|
4875
|
-
$options: i => (
|
|
4875
|
+
$options: i => (true ? resolveMergedOptions(i) : i.type),
|
|
4876
4876
|
$forceUpdate: i => i.f || (i.f = () => queueJob(i.update)),
|
|
4877
4877
|
$nextTick: i => i.n || (i.n = nextTick.bind(i.proxy)),
|
|
4878
|
-
$watch: i => (
|
|
4878
|
+
$watch: i => (true ? instanceWatch.bind(i) : NOOP)
|
|
4879
4879
|
});
|
|
4880
4880
|
const isReservedPrefix = (key) => key === '_' || key === '$';
|
|
4881
4881
|
const PublicInstanceProxyHandlers = {
|
|
@@ -4937,7 +4937,7 @@ const PublicInstanceProxyHandlers = {
|
|
|
4937
4937
|
accessCache[key] = 4 /* CONTEXT */;
|
|
4938
4938
|
return ctx[key];
|
|
4939
4939
|
}
|
|
4940
|
-
else if (!
|
|
4940
|
+
else if (!true || shouldCacheAccess) {
|
|
4941
4941
|
accessCache[key] = 0 /* OTHER */;
|
|
4942
4942
|
}
|
|
4943
4943
|
}
|
|
@@ -5763,7 +5763,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
|
|
|
5763
5763
|
const needCastKeys = [];
|
|
5764
5764
|
// apply mixin/extends props
|
|
5765
5765
|
let hasExtends = false;
|
|
5766
|
-
if (
|
|
5766
|
+
if (true && !isFunction(comp)) {
|
|
5767
5767
|
const extendProps = (raw) => {
|
|
5768
5768
|
hasExtends = true;
|
|
5769
5769
|
const [props, keys] = normalizePropsOptions(raw, appContext, true);
|
|
@@ -6175,7 +6175,7 @@ function createAppAPI(render, hydrate) {
|
|
|
6175
6175
|
return app;
|
|
6176
6176
|
},
|
|
6177
6177
|
mixin(mixin) {
|
|
6178
|
-
if (
|
|
6178
|
+
if (true) {
|
|
6179
6179
|
if (!context.mixins.includes(mixin)) {
|
|
6180
6180
|
context.mixins.push(mixin);
|
|
6181
6181
|
}
|
|
@@ -6357,7 +6357,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
6357
6357
|
setupState[ref] = value;
|
|
6358
6358
|
}
|
|
6359
6359
|
}
|
|
6360
|
-
else if (
|
|
6360
|
+
else if (_isRef) {
|
|
6361
6361
|
ref.value = value;
|
|
6362
6362
|
if (rawRef.k)
|
|
6363
6363
|
refs[rawRef.k] = value;
|
|
@@ -6397,11 +6397,13 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
6397
6397
|
`Performing full mount instead.`);
|
|
6398
6398
|
patch(null, vnode, container);
|
|
6399
6399
|
flushPostFlushCbs();
|
|
6400
|
+
container._vnode = vnode;
|
|
6400
6401
|
return;
|
|
6401
6402
|
}
|
|
6402
6403
|
hasMismatch = false;
|
|
6403
6404
|
hydrateNode(container.firstChild, vnode, null, null, null);
|
|
6404
6405
|
flushPostFlushCbs();
|
|
6406
|
+
container._vnode = vnode;
|
|
6405
6407
|
if (hasMismatch && !false) {
|
|
6406
6408
|
// this error should show up in production
|
|
6407
6409
|
console.error(`Hydration completed but contains mismatches.`);
|
|
@@ -6452,7 +6454,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
6452
6454
|
}
|
|
6453
6455
|
break;
|
|
6454
6456
|
case Static:
|
|
6455
|
-
if (domType !== 1 /* ELEMENT */) {
|
|
6457
|
+
if (domType !== 1 /* ELEMENT */ && domType !== 3 /* TEXT */) {
|
|
6456
6458
|
nextNode = onMismatch();
|
|
6457
6459
|
}
|
|
6458
6460
|
else {
|
|
@@ -6463,7 +6465,10 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
6463
6465
|
const needToAdoptContent = !vnode.children.length;
|
|
6464
6466
|
for (let i = 0; i < vnode.staticCount; i++) {
|
|
6465
6467
|
if (needToAdoptContent)
|
|
6466
|
-
vnode.children +=
|
|
6468
|
+
vnode.children +=
|
|
6469
|
+
nextNode.nodeType === 1 /* ELEMENT */
|
|
6470
|
+
? nextNode.outerHTML
|
|
6471
|
+
: nextNode.data;
|
|
6467
6472
|
if (i === vnode.staticCount - 1) {
|
|
6468
6473
|
vnode.anchor = nextNode;
|
|
6469
6474
|
}
|
|
@@ -6772,9 +6777,9 @@ function isSupported() {
|
|
|
6772
6777
|
*/
|
|
6773
6778
|
function initFeatureFlags() {
|
|
6774
6779
|
const needWarn = [];
|
|
6775
|
-
if (typeof
|
|
6776
|
-
(process.env.NODE_ENV !== 'production') && needWarn.push(`
|
|
6777
|
-
getGlobalThis().
|
|
6780
|
+
if (typeof true !== 'boolean') {
|
|
6781
|
+
(process.env.NODE_ENV !== 'production') && needWarn.push(`true`);
|
|
6782
|
+
getGlobalThis().true = true;
|
|
6778
6783
|
}
|
|
6779
6784
|
if (typeof __VUE_PROD_DEVTOOLS__ !== 'boolean') {
|
|
6780
6785
|
(process.env.NODE_ENV !== 'production') && needWarn.push(`__VUE_PROD_DEVTOOLS__`);
|
|
@@ -9113,7 +9118,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
9113
9118
|
}
|
|
9114
9119
|
}
|
|
9115
9120
|
// support for 2.x options
|
|
9116
|
-
if (
|
|
9121
|
+
if (true && !(false )) {
|
|
9117
9122
|
setCurrentInstance(instance);
|
|
9118
9123
|
pauseTracking();
|
|
9119
9124
|
applyOptions(instance);
|
|
@@ -9211,10 +9216,10 @@ function getExposeProxy(instance) {
|
|
|
9211
9216
|
}
|
|
9212
9217
|
const classifyRE = /(?:^|[-_])(\w)/g;
|
|
9213
9218
|
const classify = (str) => str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, '');
|
|
9214
|
-
function getComponentName(Component) {
|
|
9219
|
+
function getComponentName(Component, includeInferred = true) {
|
|
9215
9220
|
return isFunction(Component)
|
|
9216
9221
|
? Component.displayName || Component.name
|
|
9217
|
-
: Component.name;
|
|
9222
|
+
: Component.name || (includeInferred && Component.__name);
|
|
9218
9223
|
}
|
|
9219
9224
|
/* istanbul ignore next */
|
|
9220
9225
|
function formatComponentName(instance, Component, isRoot = false) {
|
|
@@ -9662,7 +9667,7 @@ function isMemoSame(cached, memo) {
|
|
|
9662
9667
|
}
|
|
9663
9668
|
|
|
9664
9669
|
// Core API ------------------------------------------------------------------
|
|
9665
|
-
const version = "3.2.
|
|
9670
|
+
const version = "3.2.37";
|
|
9666
9671
|
const _ssrUtils = {
|
|
9667
9672
|
createComponentInstance,
|
|
9668
9673
|
setupComponent,
|
|
@@ -9672,7 +9677,7 @@ const _ssrUtils = {
|
|
|
9672
9677
|
normalizeVNode
|
|
9673
9678
|
};
|
|
9674
9679
|
/**
|
|
9675
|
-
* SSR utils for \@vue/server-renderer. Only exposed in
|
|
9680
|
+
* SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
|
|
9676
9681
|
* @internal
|
|
9677
9682
|
*/
|
|
9678
9683
|
const ssrUtils = (_ssrUtils );
|
|
@@ -11545,4 +11550,4 @@ var vue_runtime_esmBundler = /*#__PURE__*/Object.freeze({
|
|
|
11545
11550
|
withModifiers: withModifiers
|
|
11546
11551
|
});
|
|
11547
11552
|
|
|
11548
|
-
export { compile as $,
|
|
11553
|
+
export { compile as $, toRaw as A, watch as B, unref as C, markRaw as D, effectScope as E, Fragment as F, isRef as G, isReactive as H, onUnmounted as I, toRefs as J, computed as K, reactive as L, toRef as M, onDeactivated as N, onActivated as O, watchEffect as P, provide as Q, shallowRef as R, readonly as S, customRef as T, getCurrentScope as U, onScopeDispose as V, onBeforeMount as W, onBeforeUnmount as X, onMounted as Y, onUpdated as Z, onBeforeUpdate as _, normalizeProps as a, toHandlers as a$, Transition as a0, TransitionGroup as a1, VueElement as a2, createSSRApp as a3, defineCustomElement as a4, defineSSRCustomElement as a5, hydrate as a6, initDirectivesForSSR as a7, render as a8, useCssModule as a9, defineEmits as aA, defineExpose as aB, defineProps as aC, devtools as aD, getTransitionRawChildren as aE, handleError as aF, initCustomFormatter as aG, isMemoSame as aH, isRuntimeOnly as aI, isVNode as aJ, mergeDefaults as aK, onErrorCaptured as aL, onRenderTracked as aM, onRenderTriggered as aN, onServerPrefetch as aO, queuePostFlushCb as aP, registerRuntimeCompiler as aQ, renderList as aR, resolveDirective as aS, resolveDynamicComponent as aT, resolveFilter as aU, resolveTransitionHooks as aV, setBlockTracking as aW, setDevtoolsHook as aX, setTransitionHooks as aY, ssrContextKey as aZ, ssrUtils as a_, useCssVars as aa, vModelCheckbox as ab, vModelDynamic as ac, vModelRadio as ad, vModelSelect as ae, vModelText as af, vShow as ag, withModifiers as ah, BaseTransition as ai, Comment as aj, KeepAlive as ak, Static as al, Suspense as am, Teleport as an, Text as ao, callWithAsyncErrorHandling as ap, callWithErrorHandling as aq, cloneVNode as ar, compatUtils as as, createHydrationRenderer as at, createPropsRestProxy as au, createRenderer as av, createSlots as aw, createStaticVNode as ax, createTextVNode as ay, defineAsyncComponent as az, nextTick as b, transformVNodeArgs as b0, useAttrs as b1, useSSRContext as b2, useSlots as b3, useTransitionState as b4, version as b5, warn as b6, watchPostEffect as b7, watchSyncEffect as b8, withAsyncContext as b9, withDefaults as ba, withDirectives as bb, withMemo as bc, EffectScope as bd, ReactiveEffect as be, effect as bf, isProxy as bg, isReadonly as bh, isShallow$1 as bi, proxyRefs as bj, shallowReactive as bk, shallowReadonly as bl, stop as bm, triggerRef as bn, camelize as bo, capitalize as bp, toHandlerKey as bq, createElementBlock as c, defineComponent as d, popScopeId as e, createBlock as f, guardReactiveProps as g, createBaseVNode as h, resolveComponent as i, normalizeStyle as j, withKeys as k, createCommentVNode as l, withCtx as m, normalizeClass as n, openBlock as o, pushScopeId as p, createVNode as q, renderSlot as r, mergeProps as s, toDisplayString as t, ref as u, createApp as v, withScopeId as w, h as x, getCurrentInstance as y, inject as z };
|
package/entries.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export const entries = [
|
|
2
|
-
'src/client/floating-vue.ts',
|
|
3
|
-
'src/client/iconify.ts',
|
|
4
|
-
'src/client/pinia.ts',
|
|
5
|
-
'src/client/scroll.ts',
|
|
6
|
-
'src/client/vue-router.ts',
|
|
7
|
-
'src/client/vue-use.ts',
|
|
8
|
-
'src/client/vue.ts',
|
|
2
|
+
'src/client/b-floating-vue.ts',
|
|
3
|
+
'src/client/b-iconify.ts',
|
|
4
|
+
'src/client/b-pinia.ts',
|
|
5
|
+
'src/client/b-scroll.ts',
|
|
6
|
+
'src/client/b-vue-router.ts',
|
|
7
|
+
'src/client/b-vue-use.ts',
|
|
8
|
+
'src/client/b-vue.ts',
|
|
9
9
|
]
|
package/iconify.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@histoire/vendors",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "Bundled vendors for histoire",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -16,7 +16,13 @@
|
|
|
16
16
|
},
|
|
17
17
|
"type": "module",
|
|
18
18
|
"exports": {
|
|
19
|
-
"./
|
|
19
|
+
"./floating-vue": "./dist/client/b-floating-vue.js",
|
|
20
|
+
"./iconify": "./dist/client/b-iconify.js",
|
|
21
|
+
"./pinia": "./dist/client/b-pinia.js",
|
|
22
|
+
"./scroll": "./dist/client/b-scroll.js",
|
|
23
|
+
"./vue-router": "./dist/client/b-vue-router.js",
|
|
24
|
+
"./vue-use": "./dist/client/b-vue-use.js",
|
|
25
|
+
"./vue": "./dist/client/b-vue.js",
|
|
20
26
|
"./*": "./*"
|
|
21
27
|
},
|
|
22
28
|
"sideEffects": false,
|
|
@@ -26,7 +32,10 @@
|
|
|
26
32
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
27
33
|
"@types/node": "^18.0.3",
|
|
28
34
|
"@vueuse/core": "^8.2.5",
|
|
29
|
-
"
|
|
35
|
+
"execa": "^6.1.0",
|
|
36
|
+
"floating-vue": "^2.0.0-beta.19",
|
|
37
|
+
"fs-extra": "^10.0.1",
|
|
38
|
+
"globby": "^13.1.1",
|
|
30
39
|
"pinia": "^2.0.13",
|
|
31
40
|
"rollup": "^2.75.7",
|
|
32
41
|
"rollup-plugin-typescript2": "^0.32.1",
|
|
@@ -36,7 +45,7 @@
|
|
|
36
45
|
"vue": "^3.2.31"
|
|
37
46
|
},
|
|
38
47
|
"scripts": {
|
|
39
|
-
"build": "rimraf dist && rollup -c rollup.config.
|
|
40
|
-
"watch": "rollup -c rollup.config.
|
|
48
|
+
"build": "rimraf dist && rollup -c rollup.config.mjs",
|
|
49
|
+
"watch": "rollup -c rollup.config.mjs"
|
|
41
50
|
}
|
|
42
51
|
}
|
package/pinia.d.ts
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { createRequire } from 'module'
|
|
2
|
+
import { fileURLToPath } from 'url'
|
|
3
|
+
import path from 'path'
|
|
4
|
+
import { defineConfig } from 'rollup'
|
|
5
|
+
import ts from 'rollup-plugin-typescript2'
|
|
6
|
+
import resolve from '@rollup/plugin-node-resolve'
|
|
7
|
+
import commonjs from '@rollup/plugin-commonjs'
|
|
8
|
+
import fs from 'fs-extra'
|
|
9
|
+
import { globbySync } from 'globby'
|
|
10
|
+
import { execaSync } from 'execa'
|
|
11
|
+
import { entries } from './entries.js'
|
|
12
|
+
|
|
13
|
+
const require = createRequire(import.meta.url)
|
|
14
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
15
|
+
|
|
16
|
+
export default defineConfig({
|
|
17
|
+
input: entries,
|
|
18
|
+
|
|
19
|
+
plugins: [
|
|
20
|
+
resolve({ preferBuiltins: true }),
|
|
21
|
+
commonjs(),
|
|
22
|
+
ts({
|
|
23
|
+
check: false,
|
|
24
|
+
tsconfigOverride: {
|
|
25
|
+
compilerOptions: {
|
|
26
|
+
rootDir: 'src/client',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
}),
|
|
30
|
+
{
|
|
31
|
+
name: 'define',
|
|
32
|
+
transform (code) {
|
|
33
|
+
return code.replace(/__VUE_OPTIONS_API__/g, 'true')
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'process-build',
|
|
38
|
+
closeBundle () {
|
|
39
|
+
try {
|
|
40
|
+
const pkg = fs.readJsonSync('./package.json')
|
|
41
|
+
const tempDir = path.resolve('./node_modules/.temp/histoire-vendors')
|
|
42
|
+
fs.ensureDirSync(tempDir)
|
|
43
|
+
fs.emptyDirSync(tempDir)
|
|
44
|
+
const targetDtsDir = path.resolve('./dist/client/node_modules')
|
|
45
|
+
fs.ensureDirSync(targetDtsDir)
|
|
46
|
+
fs.emptyDirSync(targetDtsDir)
|
|
47
|
+
const tempPkg = {
|
|
48
|
+
name: 'histoire-vendors-temp',
|
|
49
|
+
version: '0.0.0',
|
|
50
|
+
dependencies: {},
|
|
51
|
+
}
|
|
52
|
+
const pkgExports = {}
|
|
53
|
+
const files = globbySync('./dist/client/*.d.ts', { cwd: __dirname })
|
|
54
|
+
for (const file of files) {
|
|
55
|
+
// Retrieve imports from dts
|
|
56
|
+
{
|
|
57
|
+
let content = fs.readFileSync(file, 'utf-8')
|
|
58
|
+
content = content.replace(/from '(.*)'/g, (match, p1) => {
|
|
59
|
+
const data = fs.readJsonSync(require.resolve(`${p1}/package.json`))
|
|
60
|
+
const versionSelector = data.version
|
|
61
|
+
tempPkg.dependencies[p1] = versionSelector
|
|
62
|
+
return `from './node_modules/${p1}'`
|
|
63
|
+
})
|
|
64
|
+
fs.writeFileSync(file, content, 'utf-8')
|
|
65
|
+
}
|
|
66
|
+
// Create entry files in root
|
|
67
|
+
{
|
|
68
|
+
const filepath = file.replace(/\.d\.ts$/, '')
|
|
69
|
+
const content = `import Default from '${filepath}'
|
|
70
|
+
export default Default
|
|
71
|
+
export * from '${filepath}'\n`
|
|
72
|
+
fs.writeFileSync(path.basename(file).replace(/^b-/, ''), content, 'utf-8')
|
|
73
|
+
}
|
|
74
|
+
// Exports (package.json)
|
|
75
|
+
const importName = path.basename(file).replace(/\.d\.ts$/, '').replace(/^b-/, '')
|
|
76
|
+
pkgExports[`./${importName}`] = file.replace(/\.d\.ts$/, '.js')
|
|
77
|
+
}
|
|
78
|
+
// Install dependencies in temp module
|
|
79
|
+
{
|
|
80
|
+
const tempPkgFile = path.resolve(tempDir, 'package.json')
|
|
81
|
+
fs.writeJsonSync(tempPkgFile, tempPkg)
|
|
82
|
+
execaSync('npm', ['install'], { cwd: tempDir })
|
|
83
|
+
const dtsFiles = globbySync(['**/*.d.ts', '**/package.json'], {
|
|
84
|
+
cwd: path.join(tempDir, 'node_modules'),
|
|
85
|
+
dot: true,
|
|
86
|
+
})
|
|
87
|
+
for (const dtsFile of dtsFiles) {
|
|
88
|
+
const absoluteDtsFile = path.resolve(tempDir, 'node_modules', dtsFile)
|
|
89
|
+
fs.copySync(absoluteDtsFile, path.resolve(targetDtsDir, dtsFile))
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
// Update exports field in package.json
|
|
93
|
+
pkgExports['./*'] = './*'
|
|
94
|
+
pkg.exports = pkgExports
|
|
95
|
+
fs.writeJsonSync('./package.json', pkg, { spaces: 2 })
|
|
96
|
+
} catch (e) {
|
|
97
|
+
console.error(e)
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
|
|
103
|
+
output: {
|
|
104
|
+
format: 'es',
|
|
105
|
+
exports: 'auto',
|
|
106
|
+
entryFileNames: '[name].js',
|
|
107
|
+
chunkFileNames: '[name].js',
|
|
108
|
+
assetFileNames: '[name][extname]',
|
|
109
|
+
hoistTransitiveImports: false,
|
|
110
|
+
dir: 'dist/client',
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
external: [],
|
|
114
|
+
|
|
115
|
+
treeshake: false,
|
|
116
|
+
preserveEntrySignatures: 'strict',
|
|
117
|
+
})
|
package/scroll.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@iconify/vue'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'pinia'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'vue-router'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vueuse/core'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'vue'
|
package/vue-router.d.ts
ADDED
package/vue-use.d.ts
ADDED
package/vue.d.ts
ADDED
package/dist/client/iconify.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '../../node_modules/@iconify/vue';
|
package/dist/client/pinia.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '../../node_modules/pinia';
|
package/dist/client/scroll.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as scrollIntoView } from '../../node_modules/scroll-into-view-if-needed';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '../../node_modules/vue-router';
|
package/dist/client/vue-use.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '../../node_modules/@vueuse/core';
|
package/dist/client/vue.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '../../node_modules/vue';
|
package/rollup.config.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'rollup'
|
|
2
|
-
import ts from 'rollup-plugin-typescript2'
|
|
3
|
-
import resolve from '@rollup/plugin-node-resolve'
|
|
4
|
-
import commonjs from '@rollup/plugin-commonjs'
|
|
5
|
-
import { entries } from './entries.js'
|
|
6
|
-
|
|
7
|
-
export default defineConfig({
|
|
8
|
-
input: entries,
|
|
9
|
-
|
|
10
|
-
plugins: [
|
|
11
|
-
resolve({ preferBuiltins: true }),
|
|
12
|
-
commonjs(),
|
|
13
|
-
ts({
|
|
14
|
-
check: false,
|
|
15
|
-
tsconfigOverride: {
|
|
16
|
-
compilerOptions: {
|
|
17
|
-
rootDir: 'src/client',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
}),
|
|
21
|
-
],
|
|
22
|
-
|
|
23
|
-
output: {
|
|
24
|
-
format: 'es',
|
|
25
|
-
exports: 'auto',
|
|
26
|
-
entryFileNames: '[name].js',
|
|
27
|
-
chunkFileNames: '[name].js',
|
|
28
|
-
assetFileNames: '[name][extname]',
|
|
29
|
-
hoistTransitiveImports: false,
|
|
30
|
-
dir: 'dist/client',
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
external: [],
|
|
34
|
-
|
|
35
|
-
treeshake: false,
|
|
36
|
-
preserveEntrySignatures: 'strict',
|
|
37
|
-
})
|
package/src/client/iconify.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '../../node_modules/@iconify/vue'
|
package/src/client/pinia.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '../../node_modules/pinia'
|
package/src/client/scroll.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as scrollIntoView } from '../../node_modules/scroll-into-view-if-needed'
|
package/src/client/vue-router.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '../../node_modules/vue-router'
|
package/src/client/vue-use.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '../../node_modules/@vueuse/core'
|
package/src/client/vue.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '../../node_modules/vue'
|