@histoire/vendors 0.17.16 → 1.0.0-alpha.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 -3
- package/dist/client/b-floating-vue.js +2176 -2149
- package/dist/client/b-iconify.d.ts +1 -1
- package/dist/client/b-iconify.js +751 -825
- package/dist/client/b-pinia.d.ts +1 -1
- package/dist/client/b-pinia.js +130 -68
- package/dist/client/b-scroll.d.ts +2 -2
- package/dist/client/b-scroll.js +5 -52
- package/dist/client/b-vue-router.d.ts +1 -1
- package/dist/client/b-vue-router.js +385 -237
- package/dist/client/b-vue-use.d.ts +1 -1
- package/dist/client/b-vue-use.js +3898 -2871
- package/dist/client/b-vue.d.ts +1 -1
- package/dist/client/b-vue.js +1 -1
- package/dist/client/index.js +162 -20
- 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 +10 -6
- package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +47 -31
- package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +2776 -0
- package/dist/client/node_modules/@babel/types/lib/index.d.ts +3275 -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.ts +525 -0
- package/dist/client/node_modules/@floating-ui/core/package.json +32 -39
- package/dist/client/node_modules/@floating-ui/dom/package.json +23 -24
- 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 -7
- package/dist/client/node_modules/@floating-ui/dom/src/platform.d.ts +1 -1
- package/dist/client/node_modules/@floating-ui/dom/src/types.d.ts +121 -20
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getBoundingClientRect.d.ts +1 -1
- 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/getCssDimensions.d.ts +4 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getDimensions.d.ts +1 -1
- 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/getOverflowAncestors.d.ts +3 -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 -2
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getWindowScrollBarX.d.ts +1 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/is.d.ts +3 -1
- 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 -2
- package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +103 -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 +72 -330
- package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +28 -268
- package/dist/client/node_modules/@iconify/vue/package.json +64 -60
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts +49 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +2 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/strings.d.ts +15 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/vlq.d.ts +6 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/package.json +3 -2
- package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +33 -14
- package/dist/client/node_modules/@types/web-bluetooth/package.json +12 -12
- package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +218 -125
- package/dist/client/node_modules/@vue/compiler-core/package.json +20 -5
- package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +6 -3
- package/dist/client/node_modules/@vue/compiler-dom/package.json +17 -3
- package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +35 -25
- package/dist/client/node_modules/@vue/compiler-sfc/package.json +27 -18
- package/dist/client/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +2 -2
- package/dist/client/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/dist/client/node_modules/@vue/devtools-api/package.json +1 -1
- package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +268 -166
- package/dist/client/node_modules/@vue/reactivity/package.json +16 -2
- package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +728 -529
- package/dist/client/node_modules/@vue/runtime-core/package.json +17 -3
- package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +195 -86
- package/dist/client/node_modules/@vue/runtime-dom/package.json +22 -4
- package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +4 -8
- package/dist/client/node_modules/@vue/server-renderer/package.json +18 -4
- package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +45 -30
- package/dist/client/node_modules/@vue/shared/package.json +15 -1
- package/dist/client/node_modules/@vueuse/core/index.d.ts +2040 -633
- package/dist/client/node_modules/@vueuse/core/package.json +10 -12
- package/dist/client/node_modules/@vueuse/metadata/index.d.ts +7 -5
- package/dist/client/node_modules/@vueuse/metadata/package.json +4 -4
- package/dist/client/node_modules/@vueuse/shared/index.d.ts +410 -273
- package/dist/client/node_modules/@vueuse/shared/package.json +5 -6
- 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 +35 -45
- package/dist/client/node_modules/entities/lib/decode.d.ts +211 -0
- package/dist/client/node_modules/entities/lib/decode_codepoint.d.ts +19 -0
- package/dist/client/node_modules/entities/lib/encode.d.ts +22 -0
- package/dist/client/node_modules/entities/lib/escape.d.ts +43 -0
- package/dist/client/node_modules/entities/lib/esm/decode.d.ts +211 -0
- package/dist/client/node_modules/entities/lib/esm/decode_codepoint.d.ts +19 -0
- package/dist/client/node_modules/entities/lib/esm/encode.d.ts +22 -0
- package/dist/client/node_modules/entities/lib/esm/escape.d.ts +43 -0
- package/dist/client/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +3 -0
- package/dist/client/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +3 -0
- package/dist/client/node_modules/entities/lib/esm/generated/encode-html.d.ts +8 -0
- package/dist/client/node_modules/entities/lib/esm/index.d.ts +96 -0
- package/dist/client/node_modules/entities/lib/esm/package.json +1 -0
- package/dist/client/node_modules/entities/lib/generated/decode-data-html.d.ts +3 -0
- package/dist/client/node_modules/entities/lib/generated/decode-data-xml.d.ts +3 -0
- package/dist/client/node_modules/entities/lib/generated/encode-html.d.ts +8 -0
- package/dist/client/node_modules/entities/lib/index.d.ts +96 -0
- package/dist/client/node_modules/entities/package.json +90 -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 +225 -105
- package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +471 -364
- package/dist/client/node_modules/floating-vue/dist/components/PopperContent.vue.d.ts +14 -25
- package/dist/client/node_modules/floating-vue/dist/components/PopperWrapper.vue.d.ts +392 -6
- 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 +49 -10
- package/dist/client/node_modules/floating-vue/dist/config.d.ts +1 -1
- package/dist/client/node_modules/floating-vue/dist/index.d.ts +2071 -247
- package/dist/client/node_modules/floating-vue/dist/util/events.d.ts +2 -0
- package/dist/client/node_modules/floating-vue/dist/util/popper.d.ts +1 -1
- package/dist/client/node_modules/floating-vue/package.json +42 -33
- package/dist/client/node_modules/magic-string/dist/magic-string.cjs.d.ts +250 -229
- package/dist/client/node_modules/magic-string/package.json +24 -26
- package/dist/client/node_modules/nanoid/package.json +1 -1
- package/dist/client/node_modules/picocolors/package.json +2 -2
- package/dist/client/node_modules/picocolors/types.d.ts +51 -0
- package/dist/client/node_modules/pinia/dist/pinia.d.ts +116 -37
- package/dist/client/node_modules/pinia/package.json +7 -11
- package/dist/client/node_modules/postcss/lib/at-rule.d.ts +25 -22
- package/dist/client/node_modules/postcss/lib/comment.d.ts +10 -9
- package/dist/client/node_modules/postcss/lib/container.d.ts +47 -54
- package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +1 -1
- package/dist/client/node_modules/postcss/lib/declaration.d.ts +20 -17
- package/dist/client/node_modules/postcss/lib/document.d.ts +4 -4
- package/dist/client/node_modules/postcss/lib/input.d.ts +14 -0
- package/dist/client/node_modules/postcss/lib/list.d.ts +5 -2
- package/dist/client/node_modules/postcss/lib/node.d.ts +19 -14
- package/dist/client/node_modules/postcss/lib/postcss.d.ts +25 -8
- package/dist/client/node_modules/postcss/lib/processor.d.ts +1 -1
- package/dist/client/node_modules/postcss/lib/result.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/root.d.ts +4 -4
- package/dist/client/node_modules/postcss/lib/rule.d.ts +27 -18
- package/dist/client/node_modules/postcss/package.json +4 -4
- 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 +28 -67
- 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 +1 -1
- package/dist/client/node_modules/source-map-js/source-map.d.ts +88 -99
- package/dist/client/node_modules/vue/dist/vue.d.ts +0 -4
- package/dist/client/node_modules/vue/jsx-runtime/index.d.ts +2 -1
- package/dist/client/node_modules/vue/jsx.d.ts +2 -1
- package/dist/client/node_modules/vue/package.json +13 -14
- package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/package.json +1 -1
- package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +410 -81
- package/dist/client/node_modules/vue-router/package.json +66 -37
- 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 +4 -0
- package/dist/client/vue.runtime.esm-bundler.js +6458 -4714
- package/floating-vue.d.ts +1 -0
- package/iconify.d.ts +1 -0
- package/package.json +20 -20
- package/pinia.d.ts +1 -0
- package/rollup.config.mjs +11 -9
- package/scroll.d.ts +1 -0
- package/src/client/b-floating-vue.ts +2 -0
- package/src/client/b-scroll.ts +2 -0
- package/tsconfig.json +17 -17
- package/vue-router.d.ts +1 -0
- package/vue-use.d.ts +1 -0
- package/vue.d.ts +1 -0
- package/dist/client/index2.js +0 -168
- package/dist/client/node_modules/@floating-ui/core/index.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/core/src/_babel.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/core/src/computeCoordsFromPlacement.d.ts +0 -4
- package/dist/client/node_modules/@floating-ui/core/src/computePosition.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/detectOverflow.d.ts +0 -9
- package/dist/client/node_modules/@floating-ui/core/src/enums.d.ts +0 -4
- package/dist/client/node_modules/@floating-ui/core/src/index.d.ts +0 -11
- package/dist/client/node_modules/@floating-ui/core/src/middleware/arrow.d.ts +0 -6
- package/dist/client/node_modules/@floating-ui/core/src/middleware/autoPlacement.d.ts +0 -9
- package/dist/client/node_modules/@floating-ui/core/src/middleware/flip.d.ts +0 -10
- package/dist/client/node_modules/@floating-ui/core/src/middleware/hide.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/middleware/inline.d.ts +0 -5
- package/dist/client/node_modules/@floating-ui/core/src/middleware/offset.d.ts +0 -21
- package/dist/client/node_modules/@floating-ui/core/src/middleware/shift.d.ts +0 -32
- package/dist/client/node_modules/@floating-ui/core/src/middleware/size.d.ts +0 -6
- package/dist/client/node_modules/@floating-ui/core/src/types.d.ts +0 -148
- package/dist/client/node_modules/@floating-ui/core/src/utils/expandPaddingObject.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignment.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignmentSides.d.ts +0 -5
- package/dist/client/node_modules/@floating-ui/core/src/utils/getBasePlacement.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getCrossAxis.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getExpandedPlacements.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getLengthFromAxis.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getMainAxisFromPlacement.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositeAlignmentPlacement.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositePlacement.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/core/src/utils/getPaddingObject.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/math.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/rectToClientRect.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/within.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/contains.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingClientRect.d.ts +0 -6
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParent.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParents.d.ts +0 -1
- package/dist/client/node_modules/@vue/reactivity-transform/dist/reactivity-transform.d.ts +0 -43
- package/dist/client/node_modules/@vue/reactivity-transform/package.json +0 -41
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/package.json +0 -47
- package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/index.d.ts +0 -22
- package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
- package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
- package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
- package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/package.json +0 -47
- package/dist/client/node_modules/compute-scroll-into-view/typings/index.d.ts +0 -19
- package/dist/client/node_modules/floating-vue/dist/components/Dropdown.vue.d.ts +0 -25
- package/dist/client/node_modules/floating-vue/dist/components/Menu.vue.d.ts +0 -25
- package/dist/client/node_modules/floating-vue/dist/components/Tooltip.vue.d.ts +0 -25
- package/dist/client/node_modules/floating-vue/src/global-shim.d.ts +0 -1
- package/dist/client/node_modules/floating-vue/src/vue-shim.d.ts +0 -5
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +0 -22
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
- package/dist/client/node_modules/scroll-into-view-if-needed/typings/index.d.ts +0 -13
- package/dist/client/node_modules/scroll-into-view-if-needed/typings/types.d.ts +0 -19
- package/dist/client/node_modules/vue/macros-global.d.ts +0 -19
- package/dist/client/node_modules/vue/macros.d.ts +0 -112
- package/dist/client/node_modules/vue/ref-macros.d.ts +0 -2
- /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/index.d.ts +0 -0
- /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/v2/index.d.ts +0 -0
- /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/v2.7/index.d.ts +0 -0
- /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/v3/index.d.ts +0 -0
package/floating-vue.d.ts
CHANGED
package/iconify.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@histoire/vendors",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.0.0-alpha.1",
|
|
4
5
|
"description": "Bundled vendors for histoire",
|
|
5
|
-
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Guillaume Chau"
|
|
8
8
|
},
|
|
9
|
+
"license": "MIT",
|
|
9
10
|
"repository": {
|
|
10
11
|
"url": "https://github.com/Akryum/histoire.git",
|
|
11
12
|
"type": "git",
|
|
@@ -14,7 +15,7 @@
|
|
|
14
15
|
"publishConfig": {
|
|
15
16
|
"access": "public"
|
|
16
17
|
},
|
|
17
|
-
"
|
|
18
|
+
"sideEffects": false,
|
|
18
19
|
"exports": {
|
|
19
20
|
"./floating-vue": "./dist/client/b-floating-vue.js",
|
|
20
21
|
"./iconify": "./dist/client/b-iconify.js",
|
|
@@ -25,24 +26,23 @@
|
|
|
25
26
|
"./vue": "./dist/client/b-vue.js",
|
|
26
27
|
"./*": "./*"
|
|
27
28
|
},
|
|
28
|
-
"sideEffects": false,
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@iconify/vue": "^
|
|
31
|
-
"@rollup/plugin-commonjs": "^
|
|
32
|
-
"@rollup/plugin-node-resolve": "^15.
|
|
33
|
-
"@types/node": "^
|
|
34
|
-
"@vueuse/core": "^
|
|
35
|
-
"execa": "^
|
|
36
|
-
"floating-vue": "2.
|
|
37
|
-
"fs-extra": "^
|
|
38
|
-
"globby": "^
|
|
39
|
-
"pinia": "^2.
|
|
40
|
-
"rollup": "^4.
|
|
41
|
-
"rollup-plugin-typescript2": "^0.
|
|
42
|
-
"scroll-into-view-if-needed": "^
|
|
43
|
-
"typescript": "
|
|
44
|
-
"vue": "^3.
|
|
45
|
-
"vue-router": "^4.
|
|
30
|
+
"@iconify/vue": "^4.1.2",
|
|
31
|
+
"@rollup/plugin-commonjs": "^28.0.1",
|
|
32
|
+
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
33
|
+
"@types/node": "^22.10.1",
|
|
34
|
+
"@vueuse/core": "^12.0.0",
|
|
35
|
+
"execa": "^9.5.1",
|
|
36
|
+
"floating-vue": "5.2.2",
|
|
37
|
+
"fs-extra": "^11.2.0",
|
|
38
|
+
"globby": "^14.0.2",
|
|
39
|
+
"pinia": "^2.3.0",
|
|
40
|
+
"rollup": "^4.28.0",
|
|
41
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
42
|
+
"scroll-into-view-if-needed": "^3.1.0",
|
|
43
|
+
"typescript": "5.6.3",
|
|
44
|
+
"vue": "^3.5.13",
|
|
45
|
+
"vue-router": "^4.5.0"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "rimraf dist && rollup -c rollup.config.mjs"
|
package/pinia.d.ts
CHANGED
package/rollup.config.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { createRequire } from 'module'
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { defineConfig } from 'rollup'
|
|
5
|
-
import ts from 'rollup-plugin-typescript2'
|
|
6
|
-
import resolve from '@rollup/plugin-node-resolve'
|
|
1
|
+
import { createRequire } from 'node:module'
|
|
2
|
+
import path from 'node:path'
|
|
3
|
+
import { fileURLToPath } from 'node:url'
|
|
7
4
|
import commonjs from '@rollup/plugin-commonjs'
|
|
5
|
+
import resolve from '@rollup/plugin-node-resolve'
|
|
6
|
+
import { execaSync } from 'execa'
|
|
8
7
|
import fs from 'fs-extra'
|
|
9
8
|
import { globbySync } from 'globby'
|
|
10
|
-
import {
|
|
9
|
+
import { defineConfig } from 'rollup'
|
|
10
|
+
import ts from 'rollup-plugin-typescript2'
|
|
11
11
|
import { entries } from './entries.js'
|
|
12
12
|
|
|
13
13
|
const require = createRequire(import.meta.url)
|
|
@@ -56,7 +56,7 @@ export default defineConfig({
|
|
|
56
56
|
{
|
|
57
57
|
let content = fs.readFileSync(file, 'utf-8')
|
|
58
58
|
content = content.replace(/from '(.*)'/g, (match, p1) => {
|
|
59
|
-
const data = fs.readJsonSync(require.resolve(
|
|
59
|
+
const data = fs.readJsonSync(require.resolve(`./node_modules/${p1}/package.json`))
|
|
60
60
|
const versionSelector = data.version
|
|
61
61
|
tempPkg.dependencies[p1] = versionSelector
|
|
62
62
|
return `from './node_modules/${p1}'`
|
|
@@ -67,6 +67,7 @@ export default defineConfig({
|
|
|
67
67
|
{
|
|
68
68
|
const filepath = file.replace(/\.d\.ts$/, '')
|
|
69
69
|
const content = `import Default from '${filepath}'
|
|
70
|
+
|
|
70
71
|
export default Default
|
|
71
72
|
export * from '${filepath}'\n`.replace(/\n/g, process.platform === 'win32' ? '\r\n' : '\n')
|
|
72
73
|
fs.writeFileSync(path.basename(file).replace(/^b-/, ''), content, 'utf-8')
|
|
@@ -93,7 +94,8 @@ export * from '${filepath}'\n`.replace(/\n/g, process.platform === 'win32' ? '\r
|
|
|
93
94
|
pkgExports['./*'] = './*'
|
|
94
95
|
pkg.exports = pkgExports
|
|
95
96
|
fs.writeJsonSync('./package.json', pkg, { spaces: 2 })
|
|
96
|
-
}
|
|
97
|
+
}
|
|
98
|
+
catch (e) {
|
|
97
99
|
console.error(e)
|
|
98
100
|
}
|
|
99
101
|
},
|
package/scroll.d.ts
CHANGED
package/src/client/b-scroll.ts
CHANGED
package/tsconfig.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"target": "ESNext",
|
|
4
|
+
// Volar
|
|
5
|
+
"jsx": "preserve",
|
|
6
|
+
"lib": [
|
|
7
|
+
"ESNext",
|
|
8
|
+
"DOM"
|
|
9
|
+
],
|
|
4
10
|
"module": "ESNext",
|
|
5
11
|
"moduleResolution": "node",
|
|
6
|
-
"outDir": "dist",
|
|
7
|
-
"allowSyntheticDefaultImports": true,
|
|
8
|
-
"esModuleInterop": true,
|
|
9
|
-
"removeComments": false,
|
|
10
12
|
"resolveJsonModule": true,
|
|
11
|
-
"skipLibCheck": true,
|
|
12
|
-
"declaration": true,
|
|
13
13
|
"types": [
|
|
14
14
|
"node"
|
|
15
15
|
],
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
],
|
|
20
|
-
"sourceMap": false,
|
|
21
|
-
"preserveWatchOutput": true,
|
|
16
|
+
"strictBindCallApply": true,
|
|
17
|
+
"strictFunctionTypes": true,
|
|
18
|
+
"alwaysStrict": true,
|
|
22
19
|
// Strict
|
|
23
20
|
"noImplicitAny": false,
|
|
24
21
|
"noImplicitThis": true,
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
"
|
|
22
|
+
"declaration": true,
|
|
23
|
+
"outDir": "dist",
|
|
24
|
+
"removeComments": false,
|
|
25
|
+
"sourceMap": false,
|
|
26
|
+
"allowSyntheticDefaultImports": true,
|
|
27
|
+
"esModuleInterop": true,
|
|
28
|
+
"skipLibCheck": true,
|
|
29
|
+
"preserveWatchOutput": true
|
|
30
30
|
},
|
|
31
31
|
"include": [
|
|
32
32
|
"src"
|
package/vue-router.d.ts
CHANGED
package/vue-use.d.ts
CHANGED
package/vue.d.ts
CHANGED
package/dist/client/index2.js
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
function getDevtoolsGlobalHook() {
|
|
2
|
-
return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
3
|
-
}
|
|
4
|
-
function getTarget() {
|
|
5
|
-
// @ts-ignore
|
|
6
|
-
return (typeof navigator !== 'undefined' && typeof window !== 'undefined')
|
|
7
|
-
? window
|
|
8
|
-
: typeof global !== 'undefined'
|
|
9
|
-
? global
|
|
10
|
-
: {};
|
|
11
|
-
}
|
|
12
|
-
const isProxyAvailable = typeof Proxy === 'function';
|
|
13
|
-
|
|
14
|
-
const HOOK_SETUP = 'devtools-plugin:setup';
|
|
15
|
-
const HOOK_PLUGIN_SETTINGS_SET = 'plugin:settings:set';
|
|
16
|
-
|
|
17
|
-
let supported;
|
|
18
|
-
let perf;
|
|
19
|
-
function isPerformanceSupported() {
|
|
20
|
-
var _a;
|
|
21
|
-
if (supported !== undefined) {
|
|
22
|
-
return supported;
|
|
23
|
-
}
|
|
24
|
-
if (typeof window !== 'undefined' && window.performance) {
|
|
25
|
-
supported = true;
|
|
26
|
-
perf = window.performance;
|
|
27
|
-
}
|
|
28
|
-
else if (typeof global !== 'undefined' && ((_a = global.perf_hooks) === null || _a === void 0 ? void 0 : _a.performance)) {
|
|
29
|
-
supported = true;
|
|
30
|
-
perf = global.perf_hooks.performance;
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
supported = false;
|
|
34
|
-
}
|
|
35
|
-
return supported;
|
|
36
|
-
}
|
|
37
|
-
function now() {
|
|
38
|
-
return isPerformanceSupported() ? perf.now() : Date.now();
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
class ApiProxy {
|
|
42
|
-
constructor(plugin, hook) {
|
|
43
|
-
this.target = null;
|
|
44
|
-
this.targetQueue = [];
|
|
45
|
-
this.onQueue = [];
|
|
46
|
-
this.plugin = plugin;
|
|
47
|
-
this.hook = hook;
|
|
48
|
-
const defaultSettings = {};
|
|
49
|
-
if (plugin.settings) {
|
|
50
|
-
for (const id in plugin.settings) {
|
|
51
|
-
const item = plugin.settings[id];
|
|
52
|
-
defaultSettings[id] = item.defaultValue;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
const localSettingsSaveId = `__vue-devtools-plugin-settings__${plugin.id}`;
|
|
56
|
-
let currentSettings = Object.assign({}, defaultSettings);
|
|
57
|
-
try {
|
|
58
|
-
const raw = localStorage.getItem(localSettingsSaveId);
|
|
59
|
-
const data = JSON.parse(raw);
|
|
60
|
-
Object.assign(currentSettings, data);
|
|
61
|
-
}
|
|
62
|
-
catch (e) {
|
|
63
|
-
// noop
|
|
64
|
-
}
|
|
65
|
-
this.fallbacks = {
|
|
66
|
-
getSettings() {
|
|
67
|
-
return currentSettings;
|
|
68
|
-
},
|
|
69
|
-
setSettings(value) {
|
|
70
|
-
try {
|
|
71
|
-
localStorage.setItem(localSettingsSaveId, JSON.stringify(value));
|
|
72
|
-
}
|
|
73
|
-
catch (e) {
|
|
74
|
-
// noop
|
|
75
|
-
}
|
|
76
|
-
currentSettings = value;
|
|
77
|
-
},
|
|
78
|
-
now() {
|
|
79
|
-
return now();
|
|
80
|
-
},
|
|
81
|
-
};
|
|
82
|
-
if (hook) {
|
|
83
|
-
hook.on(HOOK_PLUGIN_SETTINGS_SET, (pluginId, value) => {
|
|
84
|
-
if (pluginId === this.plugin.id) {
|
|
85
|
-
this.fallbacks.setSettings(value);
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
this.proxiedOn = new Proxy({}, {
|
|
90
|
-
get: (_target, prop) => {
|
|
91
|
-
if (this.target) {
|
|
92
|
-
return this.target.on[prop];
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
return (...args) => {
|
|
96
|
-
this.onQueue.push({
|
|
97
|
-
method: prop,
|
|
98
|
-
args,
|
|
99
|
-
});
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
});
|
|
104
|
-
this.proxiedTarget = new Proxy({}, {
|
|
105
|
-
get: (_target, prop) => {
|
|
106
|
-
if (this.target) {
|
|
107
|
-
return this.target[prop];
|
|
108
|
-
}
|
|
109
|
-
else if (prop === 'on') {
|
|
110
|
-
return this.proxiedOn;
|
|
111
|
-
}
|
|
112
|
-
else if (Object.keys(this.fallbacks).includes(prop)) {
|
|
113
|
-
return (...args) => {
|
|
114
|
-
this.targetQueue.push({
|
|
115
|
-
method: prop,
|
|
116
|
-
args,
|
|
117
|
-
resolve: () => { },
|
|
118
|
-
});
|
|
119
|
-
return this.fallbacks[prop](...args);
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
return (...args) => {
|
|
124
|
-
return new Promise(resolve => {
|
|
125
|
-
this.targetQueue.push({
|
|
126
|
-
method: prop,
|
|
127
|
-
args,
|
|
128
|
-
resolve,
|
|
129
|
-
});
|
|
130
|
-
});
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
async setRealTarget(target) {
|
|
137
|
-
this.target = target;
|
|
138
|
-
for (const item of this.onQueue) {
|
|
139
|
-
this.target.on[item.method](...item.args);
|
|
140
|
-
}
|
|
141
|
-
for (const item of this.targetQueue) {
|
|
142
|
-
item.resolve(await this.target[item.method](...item.args));
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
function setupDevtoolsPlugin(pluginDescriptor, setupFn) {
|
|
148
|
-
const descriptor = pluginDescriptor;
|
|
149
|
-
const target = getTarget();
|
|
150
|
-
const hook = getDevtoolsGlobalHook();
|
|
151
|
-
const enableProxy = isProxyAvailable && descriptor.enableEarlyProxy;
|
|
152
|
-
if (hook && (target.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !enableProxy)) {
|
|
153
|
-
hook.emit(HOOK_SETUP, pluginDescriptor, setupFn);
|
|
154
|
-
}
|
|
155
|
-
else {
|
|
156
|
-
const proxy = enableProxy ? new ApiProxy(descriptor, hook) : null;
|
|
157
|
-
const list = target.__VUE_DEVTOOLS_PLUGINS__ = target.__VUE_DEVTOOLS_PLUGINS__ || [];
|
|
158
|
-
list.push({
|
|
159
|
-
pluginDescriptor: descriptor,
|
|
160
|
-
setupFn,
|
|
161
|
-
proxy,
|
|
162
|
-
});
|
|
163
|
-
if (proxy)
|
|
164
|
-
setupFn(proxy.proxiedTarget);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
export { setupDevtoolsPlugin as s };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/types';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare const __DEV__: boolean;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { SideObject, Padding, Boundary, RootBoundary, ElementContext, MiddlewareArguments } from './types';
|
|
2
|
-
export declare type Options = {
|
|
3
|
-
boundary: Boundary;
|
|
4
|
-
rootBoundary: RootBoundary;
|
|
5
|
-
elementContext: ElementContext;
|
|
6
|
-
altBoundary: boolean;
|
|
7
|
-
padding: Padding;
|
|
8
|
-
};
|
|
9
|
-
export declare function detectOverflow(middlewareArguments: MiddlewareArguments, options?: Partial<Options>): Promise<SideObject>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { computePosition } from './computePosition';
|
|
2
|
-
export { detectOverflow } from './detectOverflow';
|
|
3
|
-
export { arrow } from './middleware/arrow';
|
|
4
|
-
export { autoPlacement } from './middleware/autoPlacement';
|
|
5
|
-
export { flip } from './middleware/flip';
|
|
6
|
-
export { hide } from './middleware/hide';
|
|
7
|
-
export { offset } from './middleware/offset';
|
|
8
|
-
export { shift, limitShift } from './middleware/shift';
|
|
9
|
-
export { size } from './middleware/size';
|
|
10
|
-
export { inline } from './middleware/inline';
|
|
11
|
-
export { rectToClientRect } from './utils/rectToClientRect';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Middleware, Placement, Alignment } from '../types';
|
|
2
|
-
import { Options as DetectOverflowOptions } from '../detectOverflow';
|
|
3
|
-
export declare function getPlacementList(alignment: Alignment | null, autoAlignment: boolean, allowedPlacements: Array<Placement>): Placement[];
|
|
4
|
-
export declare type Options = {
|
|
5
|
-
alignment: Alignment | null;
|
|
6
|
-
allowedPlacements: Array<Placement>;
|
|
7
|
-
autoAlignment: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare const autoPlacement: (options?: Partial<Options & DetectOverflowOptions>) => Middleware;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Placement, Middleware } from '../types';
|
|
2
|
-
import { Options as DetectOverflowOptions } from '../detectOverflow';
|
|
3
|
-
export declare type Options = {
|
|
4
|
-
mainAxis: boolean;
|
|
5
|
-
crossAxis: boolean;
|
|
6
|
-
fallbackPlacements: Array<Placement>;
|
|
7
|
-
fallbackStrategy: 'bestFit' | 'initialPlacement';
|
|
8
|
-
flipAlignment: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare const flip: (options?: Partial<Options & DetectOverflowOptions>) => Middleware;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Placement, Rect, Coords, Middleware } from '../types';
|
|
2
|
-
declare type OffsetValue = number | {
|
|
3
|
-
mainAxis?: number;
|
|
4
|
-
crossAxis?: number;
|
|
5
|
-
};
|
|
6
|
-
declare type OffsetFunction = (args: {
|
|
7
|
-
floating: Rect;
|
|
8
|
-
reference: Rect;
|
|
9
|
-
placement: Placement;
|
|
10
|
-
}) => OffsetValue;
|
|
11
|
-
export declare type Options = OffsetValue | OffsetFunction;
|
|
12
|
-
export declare function convertValueToCoords({ placement, rects, value, }: {
|
|
13
|
-
placement: Placement;
|
|
14
|
-
rects: {
|
|
15
|
-
floating: Rect;
|
|
16
|
-
reference: Rect;
|
|
17
|
-
};
|
|
18
|
-
value: Options;
|
|
19
|
-
}): Coords;
|
|
20
|
-
export declare const offset: (value?: Options) => Middleware;
|
|
21
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { Middleware, Rect, Placement, MiddlewareArguments, Coords } from '../types';
|
|
2
|
-
import { Options as DetectOverflowOptions } from '../detectOverflow';
|
|
3
|
-
export declare type Options = {
|
|
4
|
-
mainAxis: boolean;
|
|
5
|
-
crossAxis: boolean;
|
|
6
|
-
limiter: {
|
|
7
|
-
fn: (middlewareArguments: MiddlewareArguments) => Coords;
|
|
8
|
-
options?: any;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export declare const shift: (options?: Partial<Options & DetectOverflowOptions>) => Middleware;
|
|
12
|
-
declare type LimitShiftOffset = ((args: {
|
|
13
|
-
placement: Placement;
|
|
14
|
-
floating: Rect;
|
|
15
|
-
reference: Rect;
|
|
16
|
-
}) => number | {
|
|
17
|
-
mainAxis?: number;
|
|
18
|
-
crossAxis?: number;
|
|
19
|
-
}) | number | {
|
|
20
|
-
mainAxis?: number;
|
|
21
|
-
crossAxis?: number;
|
|
22
|
-
};
|
|
23
|
-
export declare type LimitShiftOptions = {
|
|
24
|
-
offset: LimitShiftOffset;
|
|
25
|
-
mainAxis: boolean;
|
|
26
|
-
crossAxis: boolean;
|
|
27
|
-
};
|
|
28
|
-
export declare const limitShift: (options?: Partial<LimitShiftOptions>) => {
|
|
29
|
-
options: Partial<LimitShiftOffset>;
|
|
30
|
-
fn: (middlewareArguments: MiddlewareArguments) => Coords;
|
|
31
|
-
};
|
|
32
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { Dimensions, ElementRects, Middleware } from '../types';
|
|
2
|
-
import { Options as DetectOverflowOptions } from '../detectOverflow';
|
|
3
|
-
export declare type Options = {
|
|
4
|
-
apply(args: Dimensions & ElementRects): void;
|
|
5
|
-
};
|
|
6
|
-
export declare const size: (options?: Partial<Options & DetectOverflowOptions>) => Middleware;
|