@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,144 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "scroll-into-view-if-needed",
|
|
3
|
+
"description": "Ponyfill for upcoming Element.scrollIntoView() APIs like scrollMode: if-needed, behavior: smooth and block: center",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"author": "Cody Olsen",
|
|
6
|
+
"homepage": "https://scroll-into-view-if-needed.netlify.com",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/stipsan/scroll-into-view-if-needed.git"
|
|
10
|
+
},
|
|
11
|
+
"version": "2.2.29",
|
|
12
|
+
"main": "index.js",
|
|
13
|
+
"module": "es/index.js",
|
|
14
|
+
"files": [
|
|
15
|
+
"es",
|
|
16
|
+
"typings",
|
|
17
|
+
"umd"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"prebuild": "yarn clean",
|
|
21
|
+
"build": "yarn build:d.ts && yarn build:cjs && yarn build:es && yarn build:umd && yarn build:umd.min",
|
|
22
|
+
"build:cjs": "BABEL_ENV=cjs babel src -d . --extensions '.ts'",
|
|
23
|
+
"build:d.ts": "tsc --emitDeclarationOnly",
|
|
24
|
+
"build:es": "BABEL_ENV=es babel src -d es --extensions '.ts'",
|
|
25
|
+
"build:umd": "BABEL_ENV=umd NODE_ENV=development rollup -c -f umd -o umd/scroll-into-view-if-needed.js",
|
|
26
|
+
"build:umd.min": "BABEL_ENV=umd NODE_ENV=production rollup -c -f umd -o umd/scroll-into-view-if-needed.min.js",
|
|
27
|
+
"clean": "rimraf 'umd' 'es' 'typings'",
|
|
28
|
+
"precommit": "lint-staged",
|
|
29
|
+
"dev": "concurrently 'tsc --noEmit --watch' 'tsc --noEmit -p tests/typescript --watch' 'yarn build:cjs --watch' 'yarn build:es --watch' 'yarn build:umd --watch' 'yarn build:umd.min --watch'",
|
|
30
|
+
"lint": "eslint ./integration-examples",
|
|
31
|
+
"prepublishOnly": "unset npm_config_cafile && yarn build",
|
|
32
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p tests/typescript"
|
|
33
|
+
},
|
|
34
|
+
"sideEffects": false,
|
|
35
|
+
"typings": "typings/index.d.ts",
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"compute-scroll-into-view": "^1.0.17"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@babel/cli": "7.16.7",
|
|
41
|
+
"@babel/core": "7.16.7",
|
|
42
|
+
"@babel/plugin-external-helpers": "7.16.7",
|
|
43
|
+
"@babel/preset-env": "7.16.7",
|
|
44
|
+
"@babel/preset-typescript": "7.16.7",
|
|
45
|
+
"babel-eslint": "10.1.0",
|
|
46
|
+
"babel-plugin-add-module-exports": "1.0.4",
|
|
47
|
+
"babel-plugin-dev-expression": "0.2.3",
|
|
48
|
+
"concurrently": "6.5.1",
|
|
49
|
+
"eslint": "8.7.0",
|
|
50
|
+
"eslint-config-prettier": "8.3.0",
|
|
51
|
+
"eslint-plugin-import": "2.25.4",
|
|
52
|
+
"eslint-plugin-react": "7.28.0",
|
|
53
|
+
"flowgen": "1.16.2",
|
|
54
|
+
"husky": "7.0.4",
|
|
55
|
+
"lint-staged": "12.3.1",
|
|
56
|
+
"prettier": "2.5.1",
|
|
57
|
+
"prettier-package-json": "2.6.0",
|
|
58
|
+
"rimraf": "3.0.2",
|
|
59
|
+
"rollup": "2.63.0",
|
|
60
|
+
"rollup-plugin-babel": "4.4.0",
|
|
61
|
+
"rollup-plugin-commonjs": "10.1.0",
|
|
62
|
+
"rollup-plugin-node-resolve": "5.2.0",
|
|
63
|
+
"rollup-plugin-replace": "2.2.0",
|
|
64
|
+
"rollup-plugin-terser": "7.0.2",
|
|
65
|
+
"semantic-release": "17.4.7",
|
|
66
|
+
"tslint": "5.20.1",
|
|
67
|
+
"tslint-config-prettier": "1.18.0",
|
|
68
|
+
"typescript": "4.5.4"
|
|
69
|
+
},
|
|
70
|
+
"keywords": [
|
|
71
|
+
"behavior-smooth",
|
|
72
|
+
"if-needed",
|
|
73
|
+
"polyfill",
|
|
74
|
+
"ponyfill",
|
|
75
|
+
"scroll",
|
|
76
|
+
"scroll-into-view",
|
|
77
|
+
"scrollIntoView",
|
|
78
|
+
"scrollIntoViewIfNeeded",
|
|
79
|
+
"scrollMode",
|
|
80
|
+
"smooth",
|
|
81
|
+
"smoothscroll",
|
|
82
|
+
"typescript"
|
|
83
|
+
],
|
|
84
|
+
"browserify": {
|
|
85
|
+
"transform": [
|
|
86
|
+
"loose-envify"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
"bundlesize": [
|
|
90
|
+
{
|
|
91
|
+
"path": "./umd/scroll-into-view-if-needed.min.js",
|
|
92
|
+
"maxSize": "3.3 kB",
|
|
93
|
+
"compression": "none"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"lint-staged": {
|
|
97
|
+
"*.js": [
|
|
98
|
+
"prettier --write",
|
|
99
|
+
"git add"
|
|
100
|
+
],
|
|
101
|
+
"*.{ts,tsx}": [
|
|
102
|
+
"prettier --write",
|
|
103
|
+
"git add"
|
|
104
|
+
],
|
|
105
|
+
"*.json": [
|
|
106
|
+
"prettier --write",
|
|
107
|
+
"git add"
|
|
108
|
+
],
|
|
109
|
+
"*.css": [
|
|
110
|
+
"prettier --write",
|
|
111
|
+
"git add"
|
|
112
|
+
],
|
|
113
|
+
"*.md": [
|
|
114
|
+
"prettier --write",
|
|
115
|
+
"git add"
|
|
116
|
+
],
|
|
117
|
+
"**/package.json": [
|
|
118
|
+
"prettier-package-json --write",
|
|
119
|
+
"git add"
|
|
120
|
+
],
|
|
121
|
+
"**/.babelrc": [
|
|
122
|
+
"prettier --write",
|
|
123
|
+
"git add"
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
"prettier": {
|
|
127
|
+
"semi": false,
|
|
128
|
+
"singleQuote": true,
|
|
129
|
+
"trailingComma": "es5",
|
|
130
|
+
"overrides": [
|
|
131
|
+
{
|
|
132
|
+
"files": ".babelrc",
|
|
133
|
+
"options": {
|
|
134
|
+
"parser": "json"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
"release": {
|
|
140
|
+
"prepare": [
|
|
141
|
+
"@semantic-release/npm"
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CustomScrollBehaviorCallback, Options as BaseOptions, ScrollBehavior } from './types';
|
|
2
|
+
export interface StandardBehaviorOptions extends BaseOptions {
|
|
3
|
+
behavior?: ScrollBehavior;
|
|
4
|
+
}
|
|
5
|
+
export interface CustomBehaviorOptions<T> extends BaseOptions {
|
|
6
|
+
behavior: CustomScrollBehaviorCallback<T>;
|
|
7
|
+
}
|
|
8
|
+
export interface Options<T = any> extends BaseOptions {
|
|
9
|
+
behavior?: ScrollBehavior | CustomScrollBehaviorCallback<T>;
|
|
10
|
+
}
|
|
11
|
+
declare function scrollIntoView<T>(target: Element, options: CustomBehaviorOptions<T>): T;
|
|
12
|
+
declare function scrollIntoView(target: Element, options?: Options | boolean): void;
|
|
13
|
+
export default scrollIntoView;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare type ScrollBehavior = 'auto' | 'smooth';
|
|
2
|
+
export declare type ScrollLogicalPosition = 'start' | 'center' | 'end' | 'nearest';
|
|
3
|
+
export declare type ScrollMode = 'always' | 'if-needed';
|
|
4
|
+
export declare type SkipOverflowHiddenElements = boolean;
|
|
5
|
+
export interface Options {
|
|
6
|
+
block?: ScrollLogicalPosition;
|
|
7
|
+
inline?: ScrollLogicalPosition;
|
|
8
|
+
scrollMode?: ScrollMode;
|
|
9
|
+
boundary?: CustomScrollBoundary;
|
|
10
|
+
skipOverflowHiddenElements?: SkipOverflowHiddenElements;
|
|
11
|
+
}
|
|
12
|
+
export declare type CustomScrollBoundaryCallback = (parent: Element) => boolean;
|
|
13
|
+
export declare type CustomScrollBoundary = Element | CustomScrollBoundaryCallback | null;
|
|
14
|
+
export interface CustomScrollAction {
|
|
15
|
+
el: Element;
|
|
16
|
+
top: number;
|
|
17
|
+
left: number;
|
|
18
|
+
}
|
|
19
|
+
export declare type CustomScrollBehaviorCallback<T> = (actions: CustomScrollAction[]) => T;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "source-map",
|
|
3
|
+
"description": "Generates and consumes source maps",
|
|
4
|
+
"version": "0.6.1",
|
|
5
|
+
"homepage": "https://github.com/mozilla/source-map",
|
|
6
|
+
"author": "Nick Fitzgerald <nfitzgerald@mozilla.com>",
|
|
7
|
+
"contributors": [
|
|
8
|
+
"Tobias Koppers <tobias.koppers@googlemail.com>",
|
|
9
|
+
"Duncan Beevers <duncan@dweebd.com>",
|
|
10
|
+
"Stephen Crane <scrane@mozilla.com>",
|
|
11
|
+
"Ryan Seddon <seddon.ryan@gmail.com>",
|
|
12
|
+
"Miles Elam <miles.elam@deem.com>",
|
|
13
|
+
"Mihai Bazon <mihai.bazon@gmail.com>",
|
|
14
|
+
"Michael Ficarra <github.public.email@michael.ficarra.me>",
|
|
15
|
+
"Todd Wolfson <todd@twolfson.com>",
|
|
16
|
+
"Alexander Solovyov <alexander@solovyov.net>",
|
|
17
|
+
"Felix Gnass <fgnass@gmail.com>",
|
|
18
|
+
"Conrad Irwin <conrad.irwin@gmail.com>",
|
|
19
|
+
"usrbincc <usrbincc@yahoo.com>",
|
|
20
|
+
"David Glasser <glasser@davidglasser.net>",
|
|
21
|
+
"Chase Douglas <chase@newrelic.com>",
|
|
22
|
+
"Evan Wallace <evan.exe@gmail.com>",
|
|
23
|
+
"Heather Arthur <fayearthur@gmail.com>",
|
|
24
|
+
"Hugh Kennedy <hughskennedy@gmail.com>",
|
|
25
|
+
"David Glasser <glasser@davidglasser.net>",
|
|
26
|
+
"Simon Lydell <simon.lydell@gmail.com>",
|
|
27
|
+
"Jmeas Smith <jellyes2@gmail.com>",
|
|
28
|
+
"Michael Z Goddard <mzgoddard@gmail.com>",
|
|
29
|
+
"azu <azu@users.noreply.github.com>",
|
|
30
|
+
"John Gozde <john@gozde.ca>",
|
|
31
|
+
"Adam Kirkton <akirkton@truefitinnovation.com>",
|
|
32
|
+
"Chris Montgomery <christopher.montgomery@dowjones.com>",
|
|
33
|
+
"J. Ryan Stinnett <jryans@gmail.com>",
|
|
34
|
+
"Jack Herrington <jherrington@walmartlabs.com>",
|
|
35
|
+
"Chris Truter <jeffpalentine@gmail.com>",
|
|
36
|
+
"Daniel Espeset <daniel@danielespeset.com>",
|
|
37
|
+
"Jamie Wong <jamie.lf.wong@gmail.com>",
|
|
38
|
+
"Eddy Bruël <ejpbruel@mozilla.com>",
|
|
39
|
+
"Hawken Rives <hawkrives@gmail.com>",
|
|
40
|
+
"Gilad Peleg <giladp007@gmail.com>",
|
|
41
|
+
"djchie <djchie.dev@gmail.com>",
|
|
42
|
+
"Gary Ye <garysye@gmail.com>",
|
|
43
|
+
"Nicolas Lalevée <nicolas.lalevee@hibnet.org>"
|
|
44
|
+
],
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "http://github.com/mozilla/source-map.git"
|
|
48
|
+
},
|
|
49
|
+
"main": "./source-map.js",
|
|
50
|
+
"files": [
|
|
51
|
+
"source-map.js",
|
|
52
|
+
"source-map.d.ts",
|
|
53
|
+
"lib/",
|
|
54
|
+
"dist/source-map.debug.js",
|
|
55
|
+
"dist/source-map.js",
|
|
56
|
+
"dist/source-map.min.js",
|
|
57
|
+
"dist/source-map.min.js.map"
|
|
58
|
+
],
|
|
59
|
+
"engines": {
|
|
60
|
+
"node": ">=0.10.0"
|
|
61
|
+
},
|
|
62
|
+
"license": "BSD-3-Clause",
|
|
63
|
+
"scripts": {
|
|
64
|
+
"test": "npm run build && node test/run-tests.js",
|
|
65
|
+
"build": "webpack --color",
|
|
66
|
+
"toc": "doctoc --title '## Table of Contents' README.md && doctoc --title '## Table of Contents' CONTRIBUTING.md"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"doctoc": "^0.15.0",
|
|
70
|
+
"webpack": "^1.12.0"
|
|
71
|
+
},
|
|
72
|
+
"typings": "source-map"
|
|
73
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export interface StartOfSourceMap {
|
|
2
|
+
file?: string;
|
|
3
|
+
sourceRoot?: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface RawSourceMap extends StartOfSourceMap {
|
|
7
|
+
version: string;
|
|
8
|
+
sources: string[];
|
|
9
|
+
names: string[];
|
|
10
|
+
sourcesContent?: string[];
|
|
11
|
+
mappings: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface Position {
|
|
15
|
+
line: number;
|
|
16
|
+
column: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface LineRange extends Position {
|
|
20
|
+
lastColumn: number;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface FindPosition extends Position {
|
|
24
|
+
// SourceMapConsumer.GREATEST_LOWER_BOUND or SourceMapConsumer.LEAST_UPPER_BOUND
|
|
25
|
+
bias?: number;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface SourceFindPosition extends FindPosition {
|
|
29
|
+
source: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface MappedPosition extends Position {
|
|
33
|
+
source: string;
|
|
34
|
+
name?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface MappingItem {
|
|
38
|
+
source: string;
|
|
39
|
+
generatedLine: number;
|
|
40
|
+
generatedColumn: number;
|
|
41
|
+
originalLine: number;
|
|
42
|
+
originalColumn: number;
|
|
43
|
+
name: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export class SourceMapConsumer {
|
|
47
|
+
static GENERATED_ORDER: number;
|
|
48
|
+
static ORIGINAL_ORDER: number;
|
|
49
|
+
|
|
50
|
+
static GREATEST_LOWER_BOUND: number;
|
|
51
|
+
static LEAST_UPPER_BOUND: number;
|
|
52
|
+
|
|
53
|
+
constructor(rawSourceMap: RawSourceMap);
|
|
54
|
+
computeColumnSpans(): void;
|
|
55
|
+
originalPositionFor(generatedPosition: FindPosition): MappedPosition;
|
|
56
|
+
generatedPositionFor(originalPosition: SourceFindPosition): LineRange;
|
|
57
|
+
allGeneratedPositionsFor(originalPosition: MappedPosition): Position[];
|
|
58
|
+
hasContentsOfAllSources(): boolean;
|
|
59
|
+
sourceContentFor(source: string, returnNullOnMissing?: boolean): string;
|
|
60
|
+
eachMapping(callback: (mapping: MappingItem) => void, context?: any, order?: number): void;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface Mapping {
|
|
64
|
+
generated: Position;
|
|
65
|
+
original: Position;
|
|
66
|
+
source: string;
|
|
67
|
+
name?: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export class SourceMapGenerator {
|
|
71
|
+
constructor(startOfSourceMap?: StartOfSourceMap);
|
|
72
|
+
static fromSourceMap(sourceMapConsumer: SourceMapConsumer): SourceMapGenerator;
|
|
73
|
+
addMapping(mapping: Mapping): void;
|
|
74
|
+
setSourceContent(sourceFile: string, sourceContent: string): void;
|
|
75
|
+
applySourceMap(sourceMapConsumer: SourceMapConsumer, sourceFile?: string, sourceMapPath?: string): void;
|
|
76
|
+
toString(): string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface CodeWithSourceMap {
|
|
80
|
+
code: string;
|
|
81
|
+
map: SourceMapGenerator;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export class SourceNode {
|
|
85
|
+
constructor();
|
|
86
|
+
constructor(line: number, column: number, source: string);
|
|
87
|
+
constructor(line: number, column: number, source: string, chunk?: string, name?: string);
|
|
88
|
+
static fromStringWithSourceMap(code: string, sourceMapConsumer: SourceMapConsumer, relativePath?: string): SourceNode;
|
|
89
|
+
add(chunk: string): void;
|
|
90
|
+
prepend(chunk: string): void;
|
|
91
|
+
setSourceContent(sourceFile: string, sourceContent: string): void;
|
|
92
|
+
walk(fn: (chunk: string, mapping: MappedPosition) => void): void;
|
|
93
|
+
walkSourceContents(fn: (file: string, content: string) => void): void;
|
|
94
|
+
join(sep: string): SourceNode;
|
|
95
|
+
replaceRight(pattern: string, replacement: string): SourceNode;
|
|
96
|
+
toString(): string;
|
|
97
|
+
toStringWithSourceMap(startOfSourceMap?: StartOfSourceMap): CodeWithSourceMap;
|
|
98
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "source-map-js",
|
|
3
|
+
"description": "Generates and consumes source maps",
|
|
4
|
+
"version": "1.0.2",
|
|
5
|
+
"homepage": "https://github.com/7rulnik/source-map-js",
|
|
6
|
+
"author": "Valentin 7rulnik Semirulnik <v7rulnik@gmail.com>",
|
|
7
|
+
"contributors": [
|
|
8
|
+
"Nick Fitzgerald <nfitzgerald@mozilla.com>",
|
|
9
|
+
"Tobias Koppers <tobias.koppers@googlemail.com>",
|
|
10
|
+
"Duncan Beevers <duncan@dweebd.com>",
|
|
11
|
+
"Stephen Crane <scrane@mozilla.com>",
|
|
12
|
+
"Ryan Seddon <seddon.ryan@gmail.com>",
|
|
13
|
+
"Miles Elam <miles.elam@deem.com>",
|
|
14
|
+
"Mihai Bazon <mihai.bazon@gmail.com>",
|
|
15
|
+
"Michael Ficarra <github.public.email@michael.ficarra.me>",
|
|
16
|
+
"Todd Wolfson <todd@twolfson.com>",
|
|
17
|
+
"Alexander Solovyov <alexander@solovyov.net>",
|
|
18
|
+
"Felix Gnass <fgnass@gmail.com>",
|
|
19
|
+
"Conrad Irwin <conrad.irwin@gmail.com>",
|
|
20
|
+
"usrbincc <usrbincc@yahoo.com>",
|
|
21
|
+
"David Glasser <glasser@davidglasser.net>",
|
|
22
|
+
"Chase Douglas <chase@newrelic.com>",
|
|
23
|
+
"Evan Wallace <evan.exe@gmail.com>",
|
|
24
|
+
"Heather Arthur <fayearthur@gmail.com>",
|
|
25
|
+
"Hugh Kennedy <hughskennedy@gmail.com>",
|
|
26
|
+
"David Glasser <glasser@davidglasser.net>",
|
|
27
|
+
"Simon Lydell <simon.lydell@gmail.com>",
|
|
28
|
+
"Jmeas Smith <jellyes2@gmail.com>",
|
|
29
|
+
"Michael Z Goddard <mzgoddard@gmail.com>",
|
|
30
|
+
"azu <azu@users.noreply.github.com>",
|
|
31
|
+
"John Gozde <john@gozde.ca>",
|
|
32
|
+
"Adam Kirkton <akirkton@truefitinnovation.com>",
|
|
33
|
+
"Chris Montgomery <christopher.montgomery@dowjones.com>",
|
|
34
|
+
"J. Ryan Stinnett <jryans@gmail.com>",
|
|
35
|
+
"Jack Herrington <jherrington@walmartlabs.com>",
|
|
36
|
+
"Chris Truter <jeffpalentine@gmail.com>",
|
|
37
|
+
"Daniel Espeset <daniel@danielespeset.com>",
|
|
38
|
+
"Jamie Wong <jamie.lf.wong@gmail.com>",
|
|
39
|
+
"Eddy Bruël <ejpbruel@mozilla.com>",
|
|
40
|
+
"Hawken Rives <hawkrives@gmail.com>",
|
|
41
|
+
"Gilad Peleg <giladp007@gmail.com>",
|
|
42
|
+
"djchie <djchie.dev@gmail.com>",
|
|
43
|
+
"Gary Ye <garysye@gmail.com>",
|
|
44
|
+
"Nicolas Lalevée <nicolas.lalevee@hibnet.org>"
|
|
45
|
+
],
|
|
46
|
+
"repository": "7rulnik/source-map-js",
|
|
47
|
+
"main": "./source-map.js",
|
|
48
|
+
"files": [
|
|
49
|
+
"source-map.js",
|
|
50
|
+
"source-map.d.ts",
|
|
51
|
+
"lib/"
|
|
52
|
+
],
|
|
53
|
+
"engines": {
|
|
54
|
+
"node": ">=0.10.0"
|
|
55
|
+
},
|
|
56
|
+
"license": "BSD-3-Clause",
|
|
57
|
+
"scripts": {
|
|
58
|
+
"test": "npm run build && node test/run-tests.js",
|
|
59
|
+
"build": "webpack --color",
|
|
60
|
+
"toc": "doctoc --title '## Table of Contents' README.md && doctoc --title '## Table of Contents' CONTRIBUTING.md"
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"clean-publish": "^3.1.0",
|
|
64
|
+
"doctoc": "^0.15.0",
|
|
65
|
+
"webpack": "^1.12.0"
|
|
66
|
+
},
|
|
67
|
+
"clean-publish": {
|
|
68
|
+
"cleanDocs": true
|
|
69
|
+
},
|
|
70
|
+
"typings": "source-map.d.ts"
|
|
71
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
declare module 'source-map-js' {
|
|
2
|
+
export interface StartOfSourceMap {
|
|
3
|
+
file?: string;
|
|
4
|
+
sourceRoot?: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface RawSourceMap extends StartOfSourceMap {
|
|
8
|
+
version: string;
|
|
9
|
+
sources: string[];
|
|
10
|
+
names: string[];
|
|
11
|
+
sourcesContent?: string[];
|
|
12
|
+
mappings: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface Position {
|
|
16
|
+
line: number;
|
|
17
|
+
column: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface LineRange extends Position {
|
|
21
|
+
lastColumn: number;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface FindPosition extends Position {
|
|
25
|
+
// SourceMapConsumer.GREATEST_LOWER_BOUND or SourceMapConsumer.LEAST_UPPER_BOUND
|
|
26
|
+
bias?: number;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface SourceFindPosition extends FindPosition {
|
|
30
|
+
source: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface MappedPosition extends Position {
|
|
34
|
+
source: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface MappingItem {
|
|
39
|
+
source: string;
|
|
40
|
+
generatedLine: number;
|
|
41
|
+
generatedColumn: number;
|
|
42
|
+
originalLine: number;
|
|
43
|
+
originalColumn: number;
|
|
44
|
+
name: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export class SourceMapConsumer {
|
|
48
|
+
static GENERATED_ORDER: number;
|
|
49
|
+
static ORIGINAL_ORDER: number;
|
|
50
|
+
|
|
51
|
+
static GREATEST_LOWER_BOUND: number;
|
|
52
|
+
static LEAST_UPPER_BOUND: number;
|
|
53
|
+
|
|
54
|
+
constructor(rawSourceMap: RawSourceMap);
|
|
55
|
+
computeColumnSpans(): void;
|
|
56
|
+
originalPositionFor(generatedPosition: FindPosition): MappedPosition;
|
|
57
|
+
generatedPositionFor(originalPosition: SourceFindPosition): LineRange;
|
|
58
|
+
allGeneratedPositionsFor(originalPosition: MappedPosition): Position[];
|
|
59
|
+
hasContentsOfAllSources(): boolean;
|
|
60
|
+
sourceContentFor(source: string, returnNullOnMissing?: boolean): string;
|
|
61
|
+
eachMapping(callback: (mapping: MappingItem) => void, context?: any, order?: number): void;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface Mapping {
|
|
65
|
+
generated: Position;
|
|
66
|
+
original: Position;
|
|
67
|
+
source: string;
|
|
68
|
+
name?: string;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export class SourceMapGenerator {
|
|
72
|
+
constructor(startOfSourceMap?: StartOfSourceMap);
|
|
73
|
+
static fromSourceMap(sourceMapConsumer: SourceMapConsumer): SourceMapGenerator;
|
|
74
|
+
addMapping(mapping: Mapping): void;
|
|
75
|
+
setSourceContent(sourceFile: string, sourceContent: string): void;
|
|
76
|
+
applySourceMap(sourceMapConsumer: SourceMapConsumer, sourceFile?: string, sourceMapPath?: string): void;
|
|
77
|
+
toString(): string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface CodeWithSourceMap {
|
|
81
|
+
code: string;
|
|
82
|
+
map: SourceMapGenerator;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export class SourceNode {
|
|
86
|
+
constructor();
|
|
87
|
+
constructor(line: number, column: number, source: string);
|
|
88
|
+
constructor(line: number, column: number, source: string, chunk?: string, name?: string);
|
|
89
|
+
static fromStringWithSourceMap(code: string, sourceMapConsumer: SourceMapConsumer, relativePath?: string): SourceNode;
|
|
90
|
+
add(chunk: string): void;
|
|
91
|
+
prepend(chunk: string): void;
|
|
92
|
+
setSourceContent(sourceFile: string, sourceContent: string): void;
|
|
93
|
+
walk(fn: (chunk: string, mapping: MappedPosition) => void): void;
|
|
94
|
+
walkSourceContents(fn: (file: string, content: string) => void): void;
|
|
95
|
+
join(sep: string): SourceNode;
|
|
96
|
+
replaceRight(pattern: string, replacement: string): SourceNode;
|
|
97
|
+
toString(): string;
|
|
98
|
+
toStringWithSourceMap(startOfSourceMap?: StartOfSourceMap): CodeWithSourceMap;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
declare module 'source-map-js/lib/source-map-generator' {
|
|
103
|
+
import { SourceMapGenerator } from 'source-map-js'
|
|
104
|
+
export { SourceMapGenerator }
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
declare module 'source-map-js/lib/source-map-consumer' {
|
|
108
|
+
import { SourceMapConsumer } from 'source-map-js'
|
|
109
|
+
export { SourceMapConsumer }
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
declare module 'source-map-js/lib/source-node' {
|
|
113
|
+
import { SourceNode } from 'source-map-js'
|
|
114
|
+
export { SourceNode }
|
|
115
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare type SourceMapSegment = [number] | [number, number, number, number] | [number, number, number, number, number];
|
|
2
|
+
export declare type SourceMapLine = SourceMapSegment[];
|
|
3
|
+
export declare type SourceMapMappings = SourceMapLine[];
|
|
4
|
+
export declare function decode(mappings: string): SourceMapMappings;
|
|
5
|
+
export declare function encode(decoded: SourceMapMappings): string;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sourcemap-codec",
|
|
3
|
+
"version": "1.4.8",
|
|
4
|
+
"description": "Encode/decode sourcemap mappings",
|
|
5
|
+
"main": "dist/sourcemap-codec.umd.js",
|
|
6
|
+
"module": "dist/sourcemap-codec.es.js",
|
|
7
|
+
"types": "dist/types/sourcemap-codec.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"test": "mocha",
|
|
10
|
+
"build": "rm -rf dist && rollup -c && tsc",
|
|
11
|
+
"pretest": "npm run build",
|
|
12
|
+
"prepublish": "npm test",
|
|
13
|
+
"lint": "eslint src",
|
|
14
|
+
"pretest-coverage": "npm run build",
|
|
15
|
+
"test-coverage": "rm -rf coverage/* && istanbul cover --report json node_modules/.bin/_mocha -- -u exports -R spec test/test.js",
|
|
16
|
+
"posttest-coverage": "remap-istanbul -i coverage/coverage-final.json -o coverage/coverage-remapped.json -b dist && remap-istanbul -i coverage/coverage-final.json -o coverage/coverage-remapped.lcov -t lcovonly -b dist && remap-istanbul -i coverage/coverage-final.json -o coverage/coverage-remapped -t html -b dist",
|
|
17
|
+
"ci": "npm run test-coverage && codecov < coverage/coverage-remapped.lcov"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/Rich-Harris/sourcemap-codec"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"sourcemap",
|
|
25
|
+
"vlq"
|
|
26
|
+
],
|
|
27
|
+
"author": "Rich Harris",
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/Rich-Harris/sourcemap-codec/issues"
|
|
31
|
+
},
|
|
32
|
+
"homepage": "https://github.com/Rich-Harris/sourcemap-codec",
|
|
33
|
+
"dependencies": {},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"codecov.io": "^0.1.6",
|
|
36
|
+
"console-group": "^0.3.3",
|
|
37
|
+
"eslint": "^6.0.1",
|
|
38
|
+
"eslint-plugin-import": "^2.18.0",
|
|
39
|
+
"istanbul": "^0.4.5",
|
|
40
|
+
"mocha": "^6.1.4",
|
|
41
|
+
"remap-istanbul": "^0.13.0",
|
|
42
|
+
"rollup": "^1.16.4",
|
|
43
|
+
"rollup-plugin-node-resolve": "^5.2.0",
|
|
44
|
+
"rollup-plugin-typescript": "^1.0.1",
|
|
45
|
+
"typescript": "^3.5.2"
|
|
46
|
+
},
|
|
47
|
+
"files": [
|
|
48
|
+
"dist/*.js",
|
|
49
|
+
"dist/*.js.map",
|
|
50
|
+
"dist/**/*.d.ts",
|
|
51
|
+
"README.md"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vue/compiler-sfc'
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CompilerOptions } from '@vue/compiler-dom';
|
|
2
|
+
import { RenderFunction } from '@vue/runtime-dom';
|
|
3
|
+
|
|
4
|
+
export declare function compile(template: string | HTMLElement, options?: CompilerOptions): RenderFunction;
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export * from "@vue/runtime-dom";
|
|
8
|
+
|
|
9
|
+
export { }
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
$ as _$,
|
|
3
|
+
$$ as _$$,
|
|
4
|
+
$ref as _$ref,
|
|
5
|
+
$shallowRef as _$shallowRef,
|
|
6
|
+
$computed as _$computed,
|
|
7
|
+
$customRef as _$customRef,
|
|
8
|
+
$toRef as _$toRef
|
|
9
|
+
} from './macros'
|
|
10
|
+
|
|
11
|
+
declare global {
|
|
12
|
+
const $: typeof _$
|
|
13
|
+
const $$: typeof _$$
|
|
14
|
+
const $ref: typeof _$ref
|
|
15
|
+
const $shallowRef: typeof _$shallowRef
|
|
16
|
+
const $computed: typeof _$computed
|
|
17
|
+
const $customRef: typeof _$customRef
|
|
18
|
+
const $toRef: typeof _$toRef
|
|
19
|
+
}
|