@histoire/vendors 0.17.17 → 1.0.0-alpha.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.js +2175 -2150
- package/dist/client/b-iconify.js +663 -850
- package/dist/client/b-pinia.js +130 -68
- package/dist/client/b-scroll.js +3 -52
- package/dist/client/b-vue-router.js +385 -237
- package/dist/client/b-vue-use.js +4578 -3115
- 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 +167 -188
- package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +2786 -0
- package/dist/client/node_modules/@babel/types/lib/index.d.ts +3286 -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 +122 -327
- package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +36 -269
- 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 +2323 -666
- package/dist/client/node_modules/@vueuse/core/package.json +22 -12
- package/dist/client/node_modules/@vueuse/metadata/index.d.ts +7 -5
- package/dist/client/node_modules/@vueuse/metadata/package.json +14 -7
- package/dist/client/node_modules/@vueuse/shared/index.d.ts +451 -280
- package/dist/client/node_modules/@vueuse/shared/package.json +17 -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 +22 -19
- package/dist/client/node_modules/postcss/lib/comment.d.ts +6 -5
- package/dist/client/node_modules/postcss/lib/container.d.ts +72 -82
- package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +1 -1
- package/dist/client/node_modules/postcss/lib/declaration.d.ts +16 -13
- package/dist/client/node_modules/postcss/lib/document.d.ts +4 -4
- package/dist/client/node_modules/postcss/lib/input.d.ts +28 -16
- package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +40 -40
- package/dist/client/node_modules/postcss/lib/list.d.ts +5 -2
- package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +5 -5
- 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 +10 -11
- package/dist/client/node_modules/postcss/lib/root.d.ts +4 -4
- package/dist/client/node_modules/postcss/lib/rule.d.ts +22 -13
- 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/package.json +17 -17
- package/rollup.config.mjs +6 -6
- 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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@histoire/vendors",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.0-alpha.2",
|
|
5
5
|
"description": "Bundled vendors for histoire",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Guillaume Chau"
|
|
@@ -27,22 +27,22 @@
|
|
|
27
27
|
"./*": "./*"
|
|
28
28
|
},
|
|
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/rollup.config.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createRequire } from 'node:module'
|
|
2
|
-
import { fileURLToPath } from 'node:url'
|
|
3
2
|
import path from 'node:path'
|
|
4
|
-
import {
|
|
5
|
-
import ts from 'rollup-plugin-typescript2'
|
|
6
|
-
import resolve from '@rollup/plugin-node-resolve'
|
|
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}'`
|
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;
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
export declare type Alignment = 'start' | 'end';
|
|
2
|
-
export declare type BasePlacement = 'top' | 'right' | 'bottom' | 'left';
|
|
3
|
-
export declare type AlignedPlacement = `${BasePlacement}-${Alignment}`;
|
|
4
|
-
export declare type Placement = BasePlacement | AlignedPlacement;
|
|
5
|
-
export declare type Strategy = 'absolute' | 'fixed';
|
|
6
|
-
export declare type Axis = 'x' | 'y';
|
|
7
|
-
export declare type Length = 'width' | 'height';
|
|
8
|
-
declare type Promisable<T> = T | Promise<T>;
|
|
9
|
-
export declare type Platform = {
|
|
10
|
-
getElementRects: (args: {
|
|
11
|
-
reference: ReferenceElement;
|
|
12
|
-
floating: FloatingElement;
|
|
13
|
-
strategy: Strategy;
|
|
14
|
-
}) => Promisable<ElementRects>;
|
|
15
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: (args: {
|
|
16
|
-
rect: Rect;
|
|
17
|
-
offsetParent: any;
|
|
18
|
-
strategy: Strategy;
|
|
19
|
-
}) => Promisable<Rect>;
|
|
20
|
-
getOffsetParent: (args: {
|
|
21
|
-
element: any;
|
|
22
|
-
}) => Promisable<any>;
|
|
23
|
-
isElement: (value: unknown) => Promisable<boolean>;
|
|
24
|
-
getDocumentElement: (args: {
|
|
25
|
-
element: any;
|
|
26
|
-
}) => Promisable<any>;
|
|
27
|
-
getClippingClientRect: (args: {
|
|
28
|
-
element: any;
|
|
29
|
-
boundary: Boundary;
|
|
30
|
-
rootBoundary: RootBoundary;
|
|
31
|
-
}) => Promisable<ClientRectObject>;
|
|
32
|
-
getDimensions: (args: {
|
|
33
|
-
element: any;
|
|
34
|
-
}) => Promisable<Dimensions>;
|
|
35
|
-
getClientRects?: (args: {
|
|
36
|
-
element: any;
|
|
37
|
-
}) => Promisable<Array<ClientRectObject>>;
|
|
38
|
-
};
|
|
39
|
-
export declare type Coords = {
|
|
40
|
-
[key in Axis]: number;
|
|
41
|
-
};
|
|
42
|
-
export declare type SideObject = {
|
|
43
|
-
[key in BasePlacement]: number;
|
|
44
|
-
};
|
|
45
|
-
export declare type MiddlewareData = {
|
|
46
|
-
arrow?: Partial<Coords> & {
|
|
47
|
-
centerOffset: number;
|
|
48
|
-
};
|
|
49
|
-
autoPlacement?: {
|
|
50
|
-
index?: number;
|
|
51
|
-
skip?: boolean;
|
|
52
|
-
overflows: Array<{
|
|
53
|
-
placement: Placement;
|
|
54
|
-
overflows: Array<number>;
|
|
55
|
-
}>;
|
|
56
|
-
};
|
|
57
|
-
flip?: {
|
|
58
|
-
index?: number;
|
|
59
|
-
skip?: boolean;
|
|
60
|
-
overflows: Array<{
|
|
61
|
-
placement: Placement;
|
|
62
|
-
overflows: Array<number>;
|
|
63
|
-
}>;
|
|
64
|
-
};
|
|
65
|
-
hide?: {
|
|
66
|
-
referenceHidden: boolean;
|
|
67
|
-
escaped: boolean;
|
|
68
|
-
referenceHiddenOffsets: SideObject;
|
|
69
|
-
escapedOffsets: SideObject;
|
|
70
|
-
};
|
|
71
|
-
inline?: {
|
|
72
|
-
skip?: boolean;
|
|
73
|
-
};
|
|
74
|
-
size?: {
|
|
75
|
-
skip?: boolean;
|
|
76
|
-
};
|
|
77
|
-
offset?: Coords;
|
|
78
|
-
[key: string]: any;
|
|
79
|
-
};
|
|
80
|
-
export declare type ComputePositionConfig = {
|
|
81
|
-
platform: Platform;
|
|
82
|
-
placement?: Placement;
|
|
83
|
-
strategy?: Strategy;
|
|
84
|
-
middleware?: Array<Middleware>;
|
|
85
|
-
};
|
|
86
|
-
export declare type ComputePositionReturn = Coords & {
|
|
87
|
-
placement: Placement;
|
|
88
|
-
strategy: Strategy;
|
|
89
|
-
middlewareData: MiddlewareData;
|
|
90
|
-
};
|
|
91
|
-
export declare type ComputePosition = (reference: unknown, floating: unknown, config: ComputePositionConfig) => Promise<ComputePositionReturn>;
|
|
92
|
-
export declare type MiddlewareReturn = Partial<Coords & {
|
|
93
|
-
data: {
|
|
94
|
-
[key: string]: any;
|
|
95
|
-
};
|
|
96
|
-
reset: true | {
|
|
97
|
-
placement?: Placement;
|
|
98
|
-
rects?: true | ElementRects;
|
|
99
|
-
};
|
|
100
|
-
}>;
|
|
101
|
-
export declare type Middleware = {
|
|
102
|
-
name: string;
|
|
103
|
-
options?: any;
|
|
104
|
-
fn: (middlewareArguments: MiddlewareArguments) => Promisable<MiddlewareReturn>;
|
|
105
|
-
};
|
|
106
|
-
export declare type Dimensions = {
|
|
107
|
-
[key in Length]: number;
|
|
108
|
-
};
|
|
109
|
-
export declare type Rect = Coords & Dimensions;
|
|
110
|
-
export declare type ElementRects = {
|
|
111
|
-
reference: Rect;
|
|
112
|
-
floating: Rect;
|
|
113
|
-
};
|
|
114
|
-
export declare type VirtualElement = {
|
|
115
|
-
getBoundingClientRect(): ClientRectObject;
|
|
116
|
-
contextElement?: any;
|
|
117
|
-
};
|
|
118
|
-
export declare type ReferenceElement = any;
|
|
119
|
-
export declare type FloatingElement = any;
|
|
120
|
-
export declare type Elements = {
|
|
121
|
-
reference: ReferenceElement;
|
|
122
|
-
floating: FloatingElement;
|
|
123
|
-
};
|
|
124
|
-
export declare type MiddlewareArguments = Coords & {
|
|
125
|
-
initialPlacement: Placement;
|
|
126
|
-
placement: Placement;
|
|
127
|
-
strategy: Strategy;
|
|
128
|
-
middlewareData: MiddlewareData;
|
|
129
|
-
elements: Elements;
|
|
130
|
-
rects: ElementRects;
|
|
131
|
-
platform: Platform;
|
|
132
|
-
};
|
|
133
|
-
export declare type ClientRectObject = Rect & SideObject;
|
|
134
|
-
export declare type Padding = number | SideObject;
|
|
135
|
-
export declare type Boundary = any;
|
|
136
|
-
export declare type RootBoundary = 'viewport' | 'document';
|
|
137
|
-
export declare type ElementContext = 'reference' | 'floating';
|
|
138
|
-
export { computePosition } from './computePosition';
|
|
139
|
-
export { rectToClientRect } from './utils/rectToClientRect';
|
|
140
|
-
export { detectOverflow } from './detectOverflow';
|
|
141
|
-
export { arrow } from './middleware/arrow';
|
|
142
|
-
export { autoPlacement } from './middleware/autoPlacement';
|
|
143
|
-
export { flip } from './middleware/flip';
|
|
144
|
-
export { hide } from './middleware/hide';
|
|
145
|
-
export { offset } from './middleware/offset';
|
|
146
|
-
export { shift, limitShift } from './middleware/shift';
|
|
147
|
-
export { size } from './middleware/size';
|
|
148
|
-
export { inline } from './middleware/inline';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getOppositePlacement<T extends string>(placement: T): T;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function within(min: number, value: number, max: number): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function contains(parent: Element, child: Element): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getScrollParent(node: Node): HTMLElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getScrollParents(node: Node, list?: Array<Element | Window>): Array<Element | Window | VisualViewport>;
|