@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.
Files changed (231) hide show
  1. package/dist/client/b-floating-vue.d.ts +3 -3
  2. package/dist/client/b-floating-vue.js +2176 -2149
  3. package/dist/client/b-iconify.d.ts +1 -1
  4. package/dist/client/b-iconify.js +751 -825
  5. package/dist/client/b-pinia.d.ts +1 -1
  6. package/dist/client/b-pinia.js +130 -68
  7. package/dist/client/b-scroll.d.ts +2 -2
  8. package/dist/client/b-scroll.js +5 -52
  9. package/dist/client/b-vue-router.d.ts +1 -1
  10. package/dist/client/b-vue-router.js +385 -237
  11. package/dist/client/b-vue-use.d.ts +1 -1
  12. package/dist/client/b-vue-use.js +3898 -2871
  13. package/dist/client/b-vue.d.ts +1 -1
  14. package/dist/client/b-vue.js +1 -1
  15. package/dist/client/index.js +162 -20
  16. package/dist/client/node_modules/@babel/helper-string-parser/package.json +31 -0
  17. package/dist/client/node_modules/@babel/helper-validator-identifier/package.json +31 -0
  18. package/dist/client/node_modules/@babel/parser/package.json +10 -6
  19. package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +47 -31
  20. package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +2776 -0
  21. package/dist/client/node_modules/@babel/types/lib/index.d.ts +3275 -0
  22. package/dist/client/node_modules/@babel/types/package.json +39 -0
  23. package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +525 -0
  24. package/dist/client/node_modules/@floating-ui/core/package.json +32 -39
  25. package/dist/client/node_modules/@floating-ui/dom/package.json +23 -24
  26. package/dist/client/node_modules/@floating-ui/dom/src/autoUpdate.d.ts +31 -0
  27. package/dist/client/node_modules/@floating-ui/dom/src/index.d.ts +11 -7
  28. package/dist/client/node_modules/@floating-ui/dom/src/platform.d.ts +1 -1
  29. package/dist/client/node_modules/@floating-ui/dom/src/types.d.ts +121 -20
  30. package/dist/client/node_modules/@floating-ui/dom/src/utils/getBoundingClientRect.d.ts +1 -1
  31. package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingRect.d.ts +12 -0
  32. package/dist/client/node_modules/@floating-ui/dom/src/utils/getCssDimensions.d.ts +4 -0
  33. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDimensions.d.ts +1 -1
  34. package/dist/client/node_modules/@floating-ui/dom/src/utils/getNearestOverflowAncestor.d.ts +1 -0
  35. package/dist/client/node_modules/@floating-ui/dom/src/utils/getOverflowAncestors.d.ts +3 -0
  36. package/dist/client/node_modules/@floating-ui/dom/src/utils/getScale.d.ts +7 -0
  37. package/dist/client/node_modules/@floating-ui/dom/src/utils/getViewportRect.d.ts +2 -2
  38. package/dist/client/node_modules/@floating-ui/dom/src/utils/getWindowScrollBarX.d.ts +1 -1
  39. package/dist/client/node_modules/@floating-ui/dom/src/utils/is.d.ts +3 -1
  40. package/dist/client/node_modules/@floating-ui/dom/src/utils/unwrapElement.d.ts +2 -0
  41. package/dist/client/node_modules/@floating-ui/dom/src/utils/userAgent.d.ts +1 -0
  42. package/dist/client/node_modules/@floating-ui/dom/src/utils/window.d.ts +1 -2
  43. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +103 -0
  44. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +47 -0
  45. package/dist/client/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +47 -0
  46. package/dist/client/node_modules/@floating-ui/utils/dom/package.json +6 -0
  47. package/dist/client/node_modules/@floating-ui/utils/package.json +70 -0
  48. package/dist/client/node_modules/@iconify/types/package.json +23 -0
  49. package/dist/client/node_modules/@iconify/types/provider.d.ts +44 -0
  50. package/dist/client/node_modules/@iconify/types/types.d.ts +272 -0
  51. package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +72 -330
  52. package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +28 -268
  53. package/dist/client/node_modules/@iconify/vue/package.json +64 -60
  54. package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts +49 -0
  55. package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +2 -0
  56. package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/strings.d.ts +15 -0
  57. package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/vlq.d.ts +6 -0
  58. package/dist/client/node_modules/@jridgewell/sourcemap-codec/package.json +3 -2
  59. package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +33 -14
  60. package/dist/client/node_modules/@types/web-bluetooth/package.json +12 -12
  61. package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +218 -125
  62. package/dist/client/node_modules/@vue/compiler-core/package.json +20 -5
  63. package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +6 -3
  64. package/dist/client/node_modules/@vue/compiler-dom/package.json +17 -3
  65. package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +35 -25
  66. package/dist/client/node_modules/@vue/compiler-sfc/package.json +27 -18
  67. package/dist/client/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +2 -2
  68. package/dist/client/node_modules/@vue/compiler-ssr/package.json +3 -3
  69. package/dist/client/node_modules/@vue/devtools-api/package.json +1 -1
  70. package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +268 -166
  71. package/dist/client/node_modules/@vue/reactivity/package.json +16 -2
  72. package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +728 -529
  73. package/dist/client/node_modules/@vue/runtime-core/package.json +17 -3
  74. package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +195 -86
  75. package/dist/client/node_modules/@vue/runtime-dom/package.json +22 -4
  76. package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +4 -8
  77. package/dist/client/node_modules/@vue/server-renderer/package.json +18 -4
  78. package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +45 -30
  79. package/dist/client/node_modules/@vue/shared/package.json +15 -1
  80. package/dist/client/node_modules/@vueuse/core/index.d.ts +2040 -633
  81. package/dist/client/node_modules/@vueuse/core/package.json +10 -12
  82. package/dist/client/node_modules/@vueuse/metadata/index.d.ts +7 -5
  83. package/dist/client/node_modules/@vueuse/metadata/package.json +4 -4
  84. package/dist/client/node_modules/@vueuse/shared/index.d.ts +410 -273
  85. package/dist/client/node_modules/@vueuse/shared/package.json +5 -6
  86. package/dist/client/node_modules/compute-scroll-into-view/dist/index.d.ts +75 -0
  87. package/dist/client/node_modules/compute-scroll-into-view/package.json +35 -45
  88. package/dist/client/node_modules/entities/lib/decode.d.ts +211 -0
  89. package/dist/client/node_modules/entities/lib/decode_codepoint.d.ts +19 -0
  90. package/dist/client/node_modules/entities/lib/encode.d.ts +22 -0
  91. package/dist/client/node_modules/entities/lib/escape.d.ts +43 -0
  92. package/dist/client/node_modules/entities/lib/esm/decode.d.ts +211 -0
  93. package/dist/client/node_modules/entities/lib/esm/decode_codepoint.d.ts +19 -0
  94. package/dist/client/node_modules/entities/lib/esm/encode.d.ts +22 -0
  95. package/dist/client/node_modules/entities/lib/esm/escape.d.ts +43 -0
  96. package/dist/client/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +3 -0
  97. package/dist/client/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +3 -0
  98. package/dist/client/node_modules/entities/lib/esm/generated/encode-html.d.ts +8 -0
  99. package/dist/client/node_modules/entities/lib/esm/index.d.ts +96 -0
  100. package/dist/client/node_modules/entities/lib/esm/package.json +1 -0
  101. package/dist/client/node_modules/entities/lib/generated/decode-data-html.d.ts +3 -0
  102. package/dist/client/node_modules/entities/lib/generated/decode-data-xml.d.ts +3 -0
  103. package/dist/client/node_modules/entities/lib/generated/encode-html.d.ts +8 -0
  104. package/dist/client/node_modules/entities/lib/index.d.ts +96 -0
  105. package/dist/client/node_modules/entities/package.json +90 -0
  106. package/dist/client/node_modules/floating-vue/dist/components/Dropdown.d.ts +398 -0
  107. package/dist/client/node_modules/floating-vue/dist/components/Menu.d.ts +398 -0
  108. package/dist/client/node_modules/floating-vue/dist/components/Popper.d.ts +225 -105
  109. package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +471 -364
  110. package/dist/client/node_modules/floating-vue/dist/components/PopperContent.vue.d.ts +14 -25
  111. package/dist/client/node_modules/floating-vue/dist/components/PopperWrapper.vue.d.ts +392 -6
  112. package/dist/client/node_modules/floating-vue/dist/components/Tooltip.d.ts +398 -0
  113. package/dist/client/node_modules/floating-vue/dist/components/TooltipDirective.vue.d.ts +49 -10
  114. package/dist/client/node_modules/floating-vue/dist/config.d.ts +1 -1
  115. package/dist/client/node_modules/floating-vue/dist/index.d.ts +2071 -247
  116. package/dist/client/node_modules/floating-vue/dist/util/events.d.ts +2 -0
  117. package/dist/client/node_modules/floating-vue/dist/util/popper.d.ts +1 -1
  118. package/dist/client/node_modules/floating-vue/package.json +42 -33
  119. package/dist/client/node_modules/magic-string/dist/magic-string.cjs.d.ts +250 -229
  120. package/dist/client/node_modules/magic-string/package.json +24 -26
  121. package/dist/client/node_modules/nanoid/package.json +1 -1
  122. package/dist/client/node_modules/picocolors/package.json +2 -2
  123. package/dist/client/node_modules/picocolors/types.d.ts +51 -0
  124. package/dist/client/node_modules/pinia/dist/pinia.d.ts +116 -37
  125. package/dist/client/node_modules/pinia/package.json +7 -11
  126. package/dist/client/node_modules/postcss/lib/at-rule.d.ts +25 -22
  127. package/dist/client/node_modules/postcss/lib/comment.d.ts +10 -9
  128. package/dist/client/node_modules/postcss/lib/container.d.ts +47 -54
  129. package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +1 -1
  130. package/dist/client/node_modules/postcss/lib/declaration.d.ts +20 -17
  131. package/dist/client/node_modules/postcss/lib/document.d.ts +4 -4
  132. package/dist/client/node_modules/postcss/lib/input.d.ts +14 -0
  133. package/dist/client/node_modules/postcss/lib/list.d.ts +5 -2
  134. package/dist/client/node_modules/postcss/lib/node.d.ts +19 -14
  135. package/dist/client/node_modules/postcss/lib/postcss.d.ts +25 -8
  136. package/dist/client/node_modules/postcss/lib/processor.d.ts +1 -1
  137. package/dist/client/node_modules/postcss/lib/result.d.ts +0 -1
  138. package/dist/client/node_modules/postcss/lib/root.d.ts +4 -4
  139. package/dist/client/node_modules/postcss/lib/rule.d.ts +27 -18
  140. package/dist/client/node_modules/postcss/package.json +4 -4
  141. package/dist/client/node_modules/scroll-into-view-if-needed/dist/index.d.ts +79 -0
  142. package/dist/client/node_modules/scroll-into-view-if-needed/package.json +28 -67
  143. package/dist/client/node_modules/source-map-js/lib/source-map-consumer.d.ts +1 -0
  144. package/dist/client/node_modules/source-map-js/lib/source-map-generator.d.ts +1 -0
  145. package/dist/client/node_modules/source-map-js/lib/source-node.d.ts +1 -0
  146. package/dist/client/node_modules/source-map-js/package.json +1 -1
  147. package/dist/client/node_modules/source-map-js/source-map.d.ts +88 -99
  148. package/dist/client/node_modules/vue/dist/vue.d.ts +0 -4
  149. package/dist/client/node_modules/vue/jsx-runtime/index.d.ts +2 -1
  150. package/dist/client/node_modules/vue/jsx.d.ts +2 -1
  151. package/dist/client/node_modules/vue/package.json +13 -14
  152. package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/package.json +1 -1
  153. package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +410 -81
  154. package/dist/client/node_modules/vue-router/package.json +66 -37
  155. package/dist/client/node_modules/vue-router/vue-router-auto-routes.d.ts +4 -0
  156. package/dist/client/node_modules/vue-router/vue-router-auto.d.ts +4 -0
  157. package/dist/client/vue.runtime.esm-bundler.js +6458 -4714
  158. package/floating-vue.d.ts +1 -0
  159. package/iconify.d.ts +1 -0
  160. package/package.json +20 -20
  161. package/pinia.d.ts +1 -0
  162. package/rollup.config.mjs +11 -9
  163. package/scroll.d.ts +1 -0
  164. package/src/client/b-floating-vue.ts +2 -0
  165. package/src/client/b-scroll.ts +2 -0
  166. package/tsconfig.json +17 -17
  167. package/vue-router.d.ts +1 -0
  168. package/vue-use.d.ts +1 -0
  169. package/vue.d.ts +1 -0
  170. package/dist/client/index2.js +0 -168
  171. package/dist/client/node_modules/@floating-ui/core/index.d.ts +0 -1
  172. package/dist/client/node_modules/@floating-ui/core/src/_babel.d.ts +0 -1
  173. package/dist/client/node_modules/@floating-ui/core/src/computeCoordsFromPlacement.d.ts +0 -4
  174. package/dist/client/node_modules/@floating-ui/core/src/computePosition.d.ts +0 -2
  175. package/dist/client/node_modules/@floating-ui/core/src/detectOverflow.d.ts +0 -9
  176. package/dist/client/node_modules/@floating-ui/core/src/enums.d.ts +0 -4
  177. package/dist/client/node_modules/@floating-ui/core/src/index.d.ts +0 -11
  178. package/dist/client/node_modules/@floating-ui/core/src/middleware/arrow.d.ts +0 -6
  179. package/dist/client/node_modules/@floating-ui/core/src/middleware/autoPlacement.d.ts +0 -9
  180. package/dist/client/node_modules/@floating-ui/core/src/middleware/flip.d.ts +0 -10
  181. package/dist/client/node_modules/@floating-ui/core/src/middleware/hide.d.ts +0 -2
  182. package/dist/client/node_modules/@floating-ui/core/src/middleware/inline.d.ts +0 -5
  183. package/dist/client/node_modules/@floating-ui/core/src/middleware/offset.d.ts +0 -21
  184. package/dist/client/node_modules/@floating-ui/core/src/middleware/shift.d.ts +0 -32
  185. package/dist/client/node_modules/@floating-ui/core/src/middleware/size.d.ts +0 -6
  186. package/dist/client/node_modules/@floating-ui/core/src/types.d.ts +0 -148
  187. package/dist/client/node_modules/@floating-ui/core/src/utils/expandPaddingObject.d.ts +0 -2
  188. package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignment.d.ts +0 -2
  189. package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignmentSides.d.ts +0 -5
  190. package/dist/client/node_modules/@floating-ui/core/src/utils/getBasePlacement.d.ts +0 -2
  191. package/dist/client/node_modules/@floating-ui/core/src/utils/getCrossAxis.d.ts +0 -2
  192. package/dist/client/node_modules/@floating-ui/core/src/utils/getExpandedPlacements.d.ts +0 -2
  193. package/dist/client/node_modules/@floating-ui/core/src/utils/getLengthFromAxis.d.ts +0 -2
  194. package/dist/client/node_modules/@floating-ui/core/src/utils/getMainAxisFromPlacement.d.ts +0 -2
  195. package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositeAlignmentPlacement.d.ts +0 -2
  196. package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositePlacement.d.ts +0 -1
  197. package/dist/client/node_modules/@floating-ui/core/src/utils/getPaddingObject.d.ts +0 -2
  198. package/dist/client/node_modules/@floating-ui/core/src/utils/math.d.ts +0 -2
  199. package/dist/client/node_modules/@floating-ui/core/src/utils/rectToClientRect.d.ts +0 -2
  200. package/dist/client/node_modules/@floating-ui/core/src/utils/within.d.ts +0 -1
  201. package/dist/client/node_modules/@floating-ui/dom/src/utils/contains.d.ts +0 -1
  202. package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingClientRect.d.ts +0 -6
  203. package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParent.d.ts +0 -1
  204. package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParents.d.ts +0 -1
  205. package/dist/client/node_modules/@vue/reactivity-transform/dist/reactivity-transform.d.ts +0 -43
  206. package/dist/client/node_modules/@vue/reactivity-transform/package.json +0 -41
  207. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/package.json +0 -47
  208. package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/index.d.ts +0 -22
  209. package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
  210. package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
  211. package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
  212. package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/package.json +0 -47
  213. package/dist/client/node_modules/compute-scroll-into-view/typings/index.d.ts +0 -19
  214. package/dist/client/node_modules/floating-vue/dist/components/Dropdown.vue.d.ts +0 -25
  215. package/dist/client/node_modules/floating-vue/dist/components/Menu.vue.d.ts +0 -25
  216. package/dist/client/node_modules/floating-vue/dist/components/Tooltip.vue.d.ts +0 -25
  217. package/dist/client/node_modules/floating-vue/src/global-shim.d.ts +0 -1
  218. package/dist/client/node_modules/floating-vue/src/vue-shim.d.ts +0 -5
  219. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +0 -22
  220. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
  221. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
  222. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
  223. package/dist/client/node_modules/scroll-into-view-if-needed/typings/index.d.ts +0 -13
  224. package/dist/client/node_modules/scroll-into-view-if-needed/typings/types.d.ts +0 -19
  225. package/dist/client/node_modules/vue/macros-global.d.ts +0 -19
  226. package/dist/client/node_modules/vue/macros.d.ts +0 -112
  227. package/dist/client/node_modules/vue/ref-macros.d.ts +0 -2
  228. /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/index.d.ts +0 -0
  229. /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/v2/index.d.ts +0 -0
  230. /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/v2.7/index.d.ts +0 -0
  231. /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/v3/index.d.ts +0 -0
@@ -0,0 +1,79 @@
1
+ import type { Options as Options_2 } from 'compute-scroll-into-view'
2
+ import type { ScrollAction } from 'compute-scroll-into-view'
3
+
4
+ /** @public */
5
+ export declare interface CustomBehaviorOptions<T = unknown> extends Options_2 {
6
+ behavior: CustomScrollBehaviorCallback<T>
7
+ }
8
+
9
+ /** @public */
10
+ export declare type CustomScrollBehaviorCallback<T = unknown> = (
11
+ actions: ScrollAction[]
12
+ ) => T
13
+
14
+ /** @public */
15
+ export declare type Options<T = unknown> =
16
+ | StandardBehaviorOptions
17
+ | CustomBehaviorOptions<T>
18
+
19
+ /**
20
+ * Scrolls the given element into view, with options for when, and how.
21
+ * Supports the same `options` as [`Element.prototype.scrollIntoView`](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) with additions such as `scrollMode`, `behavior: Function` and `skipOverflowHiddenElements`.
22
+ * @public
23
+ */
24
+ declare function scrollIntoView(
25
+ target: Element,
26
+ options?: StandardBehaviorOptions | boolean
27
+ ): void
28
+
29
+ /**
30
+ * Scrolls the given element into view, with options for when, and how.
31
+ * Supports the same `options` as [`Element.prototype.scrollIntoView`](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) with additions such as `scrollMode`, `behavior: Function` and `skipOverflowHiddenElements`.
32
+ *
33
+ * You can set the expected return type for `behavior: Function`:
34
+ * ```ts
35
+ * await scrollIntoView<Promise<boolean[]>>(node, {
36
+ * behavior: async actions => {
37
+ * return Promise.all(actions.map(
38
+ * // animate() resolves to `true` if anything was animated, `false` if the element already were in the end state
39
+ * ({ el, left, top }) => animate(el, {scroll: {left, top}})
40
+ * ))
41
+ * }
42
+ * })
43
+ * ```
44
+ * @public
45
+ */
46
+ declare function scrollIntoView<T>(
47
+ target: Element,
48
+ options: CustomBehaviorOptions<T>
49
+ ): T
50
+ export default scrollIntoView
51
+
52
+ /**
53
+ * Only scrolls if the `node` is partially out of view:
54
+ * ```ts
55
+ * scrollIntoView(node, { scrollMode: 'if-needed' })
56
+ * ```
57
+ * Skips scrolling `overflow: hidden` elements:
58
+ * ```ts
59
+ * scrollIntoView(node, { skipOverflowHiddenElements: true })
60
+ * ```
61
+ * When scrolling is needed do the least and smoothest scrolling possible:
62
+ * ```ts
63
+ * scrollIntoView(node, {
64
+ * behavior: 'smooth',
65
+ * scrollMode: 'if-needed',
66
+ * block: 'nearest',
67
+ * inline: 'nearest',
68
+ * })
69
+ * ```
70
+ * @public
71
+ */
72
+ export declare interface StandardBehaviorOptions extends Options_2 {
73
+ /**
74
+ * @defaultValue 'auto
75
+ */
76
+ behavior?: ScrollBehavior
77
+ }
78
+
79
+ export {}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scroll-into-view-if-needed",
3
- "version": "2.2.31",
3
+ "version": "3.1.0",
4
4
  "description": "Ponyfill for upcoming Element.scrollIntoView() APIs like scrollMode: if-needed, behavior: smooth and block: center",
5
5
  "keywords": [
6
6
  "behavior-smooth",
@@ -24,94 +24,55 @@
24
24
  "license": "MIT",
25
25
  "author": "Cody Olsen",
26
26
  "sideEffects": false,
27
+ "type": "module",
27
28
  "exports": {
28
29
  ".": {
29
- "types": "./typings/index.d.ts",
30
+ "types": "./dist/index.d.ts",
30
31
  "source": "./src/index.ts",
31
- "import": "./es/index.js",
32
- "require": "./index.js",
33
- "default": "./es/index.js"
32
+ "require": "./dist/index.cjs",
33
+ "import": "./dist/index.js",
34
+ "default": "./dist/index.js"
34
35
  },
35
36
  "./package.json": "./package.json"
36
37
  },
37
- "main": "index.js",
38
- "module": "es/index.js",
39
- "typings": "typings/index.d.ts",
38
+ "main": "./dist/index.cjs",
39
+ "module": "./dist/index.js",
40
+ "source": "./src/index.ts",
41
+ "typings": "./dist/index.d.ts",
40
42
  "files": [
41
- "es",
42
- "typings",
43
- "umd"
43
+ "dist",
44
+ "src"
44
45
  ],
45
46
  "scripts": {
46
47
  "prebuild": "npm run clean",
47
- "build": "npm run build:d.ts && npm run build:cjs && npm run build:es && npm run build:umd && npm run build:umd.min",
48
- "build:cjs": "cross-env BABEL_ENV=cjs babel src -d . --extensions '.ts'",
49
- "build:d.ts": "tsc --emitDeclarationOnly",
50
- "build:es": "cross-env BABEL_ENV=es babel src -d es --extensions '.ts'",
51
- "build:umd": "cross-env BABEL_ENV=umd NODE_ENV=development rollup -c -f umd -o umd/scroll-into-view-if-needed.js",
52
- "build:umd.min": "cross-env BABEL_ENV=umd NODE_ENV=production rollup -c -f umd -o umd/scroll-into-view-if-needed.min.js",
53
- "clean": "rimraf 'umd' 'es' 'typings'",
54
- "dev": "concurrently 'tsc --noEmit --watch' 'tsc --noEmit -p tests/typescript --watch' 'npm run build:cjs --watch' 'npm run build:es --watch' 'npm run build:umd --watch' 'npm run build:umd.min --watch'",
55
- "lint": "eslint ./integration-examples",
56
- "precommit": "lint-staged",
48
+ "build": "pkg build --strict",
49
+ "clean": "npx rimraf 'dist'",
57
50
  "prepublishOnly": "npm run build",
58
- "typecheck": "tsc --noEmit && tsc --noEmit -p tests/typescript"
59
- },
60
- "browserify": {
61
- "transform": [
62
- "loose-envify"
63
- ]
51
+ "typecheck": "tsc && tsc --noEmit -p tests/typescript"
64
52
  },
53
+ "browserslist": [
54
+ "> 0.2% and supports es6-module and supports es6-module-dynamic-import and not dead and not IE 11",
55
+ "maintained node versions"
56
+ ],
65
57
  "prettier": {
66
58
  "semi": false,
67
- "singleQuote": true,
68
- "overrides": [
69
- {
70
- "files": ".babelrc",
71
- "options": {
72
- "parser": "json"
73
- }
74
- }
75
- ]
59
+ "singleQuote": true
76
60
  },
77
61
  "dependencies": {
78
- "compute-scroll-into-view": "^1.0.20"
62
+ "compute-scroll-into-view": "^3.0.2"
79
63
  },
80
64
  "devDependencies": {
81
- "@babel/cli": "^7.19.3",
82
- "@babel/core": "^7.20.5",
83
- "@babel/plugin-external-helpers": "^7.18.6",
84
- "@babel/preset-env": "^7.20.2",
85
- "@babel/preset-typescript": "^7.18.6",
86
- "@sanity/semantic-release-preset": "^2.0.2",
87
- "babel-eslint": "^10.1.0",
88
- "babel-plugin-add-module-exports": "^1.0.4",
89
- "babel-plugin-dev-expression": "^0.2.3",
90
- "concurrently": "^7.6.0",
65
+ "@sanity/pkg-utils": "^2.2.5",
66
+ "@sanity/semantic-release-preset": "^4.0.0",
91
67
  "cross-env": "^7.0.3",
92
- "eslint": "^8.28.0",
93
- "eslint-config-prettier": "^8.5.0",
94
- "eslint-plugin-import": "^2.26.0",
95
- "eslint-plugin-react": "^7.31.11",
96
- "flowgen": "^1.20.1",
97
- "husky": "^7.0.4",
98
- "lint-staged": "^12.5.0",
99
- "prettier": "^2.8.0",
100
- "prettier-plugin-packagejson": "^2.3.0",
101
- "rimraf": "^3.0.2",
102
- "rollup": "^2.79.1",
103
- "rollup-plugin-babel": "^4.4.0",
104
- "rollup-plugin-commonjs": "^10.1.0",
105
- "rollup-plugin-node-resolve": "^5.2.0",
106
- "rollup-plugin-replace": "^2.2.0",
107
- "rollup-plugin-terser": "^7.0.2",
108
- "tslint": "^5.20.1",
109
- "tslint-config-prettier": "^1.18.0",
110
- "typescript": "^4.9.3"
68
+ "prettier": "^2.8.4",
69
+ "prettier-plugin-packagejson": "^2.4.3",
70
+ "rimraf": "^4.1.2",
71
+ "typescript": "^5.0.0"
111
72
  },
112
73
  "bundlesize": [
113
74
  {
114
- "path": "./umd/scroll-into-view-if-needed.min.js",
75
+ "path": "./dist/index.js",
115
76
  "maxSize": "3.3 kB",
116
77
  "compression": "none"
117
78
  }
@@ -0,0 +1 @@
1
+ export { SourceMapConsumer } from '..';
@@ -0,0 +1 @@
1
+ export { SourceMapGenerator } from '..';
@@ -0,0 +1 @@
1
+ export { SourceNode } from '..';
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "source-map-js",
3
3
  "description": "Generates and consumes source maps",
4
- "version": "1.2.0",
4
+ "version": "1.2.1",
5
5
  "homepage": "https://github.com/7rulnik/source-map-js",
6
6
  "author": "Valentin 7rulnik Semirulnik <v7rulnik@gmail.com>",
7
7
  "contributors": [
@@ -1,115 +1,104 @@
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
- }
1
+ export interface StartOfSourceMap {
2
+ file?: string;
3
+ sourceRoot?: string;
4
+ }
32
5
 
33
- export interface MappedPosition extends Position {
34
- source: string;
35
- name?: string;
36
- }
6
+ export interface RawSourceMap extends StartOfSourceMap {
7
+ version: string;
8
+ sources: string[];
9
+ names: string[];
10
+ sourcesContent?: string[];
11
+ mappings: string;
12
+ }
37
13
 
38
- export interface MappingItem {
39
- source: string;
40
- generatedLine: number;
41
- generatedColumn: number;
42
- originalLine: number;
43
- originalColumn: number;
44
- name: string;
45
- }
14
+ export interface Position {
15
+ line: number;
16
+ column: number;
17
+ }
46
18
 
47
- export class SourceMapConsumer {
48
- static GENERATED_ORDER: number;
49
- static ORIGINAL_ORDER: number;
19
+ export interface LineRange extends Position {
20
+ lastColumn: number;
21
+ }
50
22
 
51
- static GREATEST_LOWER_BOUND: number;
52
- static LEAST_UPPER_BOUND: number;
23
+ export interface FindPosition extends Position {
24
+ // SourceMapConsumer.GREATEST_LOWER_BOUND or SourceMapConsumer.LEAST_UPPER_BOUND
25
+ bias?: number;
26
+ }
53
27
 
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
- }
28
+ export interface SourceFindPosition extends FindPosition {
29
+ source: string;
30
+ }
63
31
 
64
- export interface Mapping {
65
- generated: Position;
66
- original: Position;
67
- source: string;
68
- name?: string;
69
- }
32
+ export interface MappedPosition extends Position {
33
+ source: string;
34
+ name?: string;
35
+ }
70
36
 
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
- }
37
+ export interface MappingItem {
38
+ source: string | null;
39
+ generatedLine: number;
40
+ generatedColumn: number;
41
+ originalLine: number | null;
42
+ originalColumn: number | null;
43
+ name: string | null;
44
+ }
79
45
 
80
- export interface CodeWithSourceMap {
81
- code: string;
82
- map: SourceMapGenerator;
83
- }
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
+ readonly file: string | undefined | null;
55
+ readonly sourceRoot: string | undefined | null;
56
+ readonly sourcesContent: readonly string[] | null | undefined;
57
+ readonly sources: readonly string[]
58
+
59
+ computeColumnSpans(): void;
60
+ originalPositionFor(generatedPosition: FindPosition): MappedPosition;
61
+ generatedPositionFor(originalPosition: SourceFindPosition): LineRange;
62
+ allGeneratedPositionsFor(originalPosition: MappedPosition): Position[];
63
+ hasContentsOfAllSources(): boolean;
64
+ sourceContentFor(source: string, returnNullOnMissing?: boolean): string | null;
65
+ eachMapping(callback: (mapping: MappingItem) => void, context?: any, order?: number): void;
66
+ }
84
67
 
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
- }
68
+ export interface Mapping {
69
+ generated: Position;
70
+ original?: Position | null;
71
+ source?: string | null;
72
+ name?: string | null;
100
73
  }
101
74
 
102
- declare module 'source-map-js/lib/source-map-generator' {
103
- import { SourceMapGenerator } from 'source-map-js'
104
- export { SourceMapGenerator }
75
+ export class SourceMapGenerator {
76
+ constructor(startOfSourceMap?: StartOfSourceMap);
77
+ static fromSourceMap(sourceMapConsumer: SourceMapConsumer, startOfSourceMap?: StartOfSourceMap): SourceMapGenerator;
78
+ addMapping(mapping: Mapping): void;
79
+ setSourceContent(sourceFile: string, sourceContent: string | null | undefined): void;
80
+ applySourceMap(sourceMapConsumer: SourceMapConsumer, sourceFile?: string, sourceMapPath?: string): void;
81
+ toString(): string;
82
+ toJSON(): RawSourceMap;
105
83
  }
106
84
 
107
- declare module 'source-map-js/lib/source-map-consumer' {
108
- import { SourceMapConsumer } from 'source-map-js'
109
- export { SourceMapConsumer }
85
+ export interface CodeWithSourceMap {
86
+ code: string;
87
+ map: SourceMapGenerator;
110
88
  }
111
89
 
112
- declare module 'source-map-js/lib/source-node' {
113
- import { SourceNode } from 'source-map-js'
114
- export { SourceNode }
90
+ export class SourceNode {
91
+ constructor();
92
+ constructor(line: number, column: number, source: string);
93
+ constructor(line: number, column: number, source: string, chunk?: string, name?: string);
94
+ static fromStringWithSourceMap(code: string, sourceMapConsumer: SourceMapConsumer, relativePath?: string): SourceNode;
95
+ add(chunk: string): void;
96
+ prepend(chunk: string): void;
97
+ setSourceContent(sourceFile: string, sourceContent: string): void;
98
+ walk(fn: (chunk: string, mapping: MappedPosition) => void): void;
99
+ walkSourceContents(fn: (file: string, content: string) => void): void;
100
+ join(sep: string): SourceNode;
101
+ replaceRight(pattern: string, replacement: string): SourceNode;
102
+ toString(): string;
103
+ toStringWithSourceMap(startOfSourceMap?: StartOfSourceMap): CodeWithSourceMap;
115
104
  }
@@ -5,7 +5,3 @@ export * from '@vue/runtime-dom';
5
5
  export declare function compileToFunction(template: string | HTMLElement, options?: CompilerOptions): RenderFunction;
6
6
 
7
7
  export { compileToFunction as compile };
8
- // this is appended to the end of ../dist/vue.d.ts during build.
9
- // imports the global JSX namespace registration for compat.
10
- // TODO: remove in 3.4
11
- import '../jsx'
@@ -1,4 +1,5 @@
1
- import type { VNode, ReservedProps, NativeElements } from '@vue/runtime-dom'
1
+ /* eslint-disable @typescript-eslint/prefer-ts-expect-error */
2
+ import type { NativeElements, ReservedProps, VNode } from '@vue/runtime-dom'
2
3
 
3
4
  /**
4
5
  * JSX namespace for usage with @jsxImportsSource directive
@@ -1,6 +1,7 @@
1
+ /* eslint-disable @typescript-eslint/prefer-ts-expect-error */
1
2
  // global JSX namespace registration
2
3
  // somehow we have to copy=pase the jsx-runtime types here to make TypeScript happy
3
- import type { VNode, ReservedProps, NativeElements } from '@vue/runtime-dom'
4
+ import type { NativeElements, ReservedProps, VNode } from '@vue/runtime-dom'
4
5
 
5
6
  declare global {
6
7
  namespace JSX {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue",
3
- "version": "3.3.8",
3
+ "version": "3.5.13",
4
4
  "description": "The progressive JavaScript framework for building modern web UI.",
5
5
  "main": "index.js",
6
6
  "module": "dist/vue.runtime.esm-bundler.js",
@@ -14,10 +14,7 @@
14
14
  "compiler-sfc",
15
15
  "server-renderer",
16
16
  "jsx-runtime",
17
- "jsx.d.ts",
18
- "macros.d.ts",
19
- "macros-global.d.ts",
20
- "ref-macros.d.ts"
17
+ "jsx.d.ts"
21
18
  ],
22
19
  "exports": {
23
20
  ".": {
@@ -28,6 +25,11 @@
28
25
  },
29
26
  "require": {
30
27
  "types": "./dist/vue.d.ts",
28
+ "node": {
29
+ "production": "./dist/vue.cjs.prod.js",
30
+ "development": "./dist/vue.cjs.js",
31
+ "default": "./index.js"
32
+ },
31
33
  "default": "./index.js"
32
34
  }
33
35
  },
@@ -65,10 +67,7 @@
65
67
  },
66
68
  "./jsx": "./jsx.d.ts",
67
69
  "./dist/*": "./dist/*",
68
- "./package.json": "./package.json",
69
- "./macros": "./macros.d.ts",
70
- "./macros-global": "./macros-global.d.ts",
71
- "./ref-macros": "./ref-macros.d.ts"
70
+ "./package.json": "./package.json"
72
71
  },
73
72
  "buildOptions": {
74
73
  "name": "Vue",
@@ -96,11 +95,11 @@
96
95
  },
97
96
  "homepage": "https://github.com/vuejs/core/tree/main/packages/vue#readme",
98
97
  "dependencies": {
99
- "@vue/shared": "3.3.8",
100
- "@vue/compiler-dom": "3.3.8",
101
- "@vue/runtime-dom": "3.3.8",
102
- "@vue/compiler-sfc": "3.3.8",
103
- "@vue/server-renderer": "3.3.8"
98
+ "@vue/shared": "3.5.13",
99
+ "@vue/compiler-dom": "3.5.13",
100
+ "@vue/runtime-dom": "3.5.13",
101
+ "@vue/server-renderer": "3.5.13",
102
+ "@vue/compiler-sfc": "3.5.13"
104
103
  },
105
104
  "peerDependencies": {
106
105
  "typescript": "*"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-demi",
3
- "version": "0.14.7",
3
+ "version": "0.14.10",
4
4
  "engines": {
5
5
  "node": ">=12"
6
6
  },