@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
package/floating-vue.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import Default from './dist/client/b-floating-vue'
2
+
2
3
  export default Default
3
4
  export * from './dist/client/b-floating-vue'
package/iconify.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import Default from './dist/client/b-iconify'
2
+
2
3
  export default Default
3
4
  export * from './dist/client/b-iconify'
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@histoire/vendors",
3
- "version": "0.17.16",
3
+ "type": "module",
4
+ "version": "1.0.0-alpha.1",
4
5
  "description": "Bundled vendors for histoire",
5
- "license": "MIT",
6
6
  "author": {
7
7
  "name": "Guillaume Chau"
8
8
  },
9
+ "license": "MIT",
9
10
  "repository": {
10
11
  "url": "https://github.com/Akryum/histoire.git",
11
12
  "type": "git",
@@ -14,7 +15,7 @@
14
15
  "publishConfig": {
15
16
  "access": "public"
16
17
  },
17
- "type": "module",
18
+ "sideEffects": false,
18
19
  "exports": {
19
20
  "./floating-vue": "./dist/client/b-floating-vue.js",
20
21
  "./iconify": "./dist/client/b-iconify.js",
@@ -25,24 +26,23 @@
25
26
  "./vue": "./dist/client/b-vue.js",
26
27
  "./*": "./*"
27
28
  },
28
- "sideEffects": false,
29
29
  "devDependencies": {
30
- "@iconify/vue": "^3.2.1",
31
- "@rollup/plugin-commonjs": "^23.0.7",
32
- "@rollup/plugin-node-resolve": "^15.2.3",
33
- "@types/node": "^18.11.9",
34
- "@vueuse/core": "^9.13.0",
35
- "execa": "^6.1.0",
36
- "floating-vue": "2.0.0-beta.19",
37
- "fs-extra": "^10.1.0",
38
- "globby": "^13.2.2",
39
- "pinia": "^2.1.7",
40
- "rollup": "^4.8.0",
41
- "rollup-plugin-typescript2": "^0.34.1",
42
- "scroll-into-view-if-needed": "^2.2.31",
43
- "typescript": "^4.9.5",
44
- "vue": "^3.3.8",
45
- "vue-router": "^4.2.5"
30
+ "@iconify/vue": "^4.1.2",
31
+ "@rollup/plugin-commonjs": "^28.0.1",
32
+ "@rollup/plugin-node-resolve": "^15.3.0",
33
+ "@types/node": "^22.10.1",
34
+ "@vueuse/core": "^12.0.0",
35
+ "execa": "^9.5.1",
36
+ "floating-vue": "5.2.2",
37
+ "fs-extra": "^11.2.0",
38
+ "globby": "^14.0.2",
39
+ "pinia": "^2.3.0",
40
+ "rollup": "^4.28.0",
41
+ "rollup-plugin-typescript2": "^0.36.0",
42
+ "scroll-into-view-if-needed": "^3.1.0",
43
+ "typescript": "5.6.3",
44
+ "vue": "^3.5.13",
45
+ "vue-router": "^4.5.0"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "rimraf dist && rollup -c rollup.config.mjs"
package/pinia.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import Default from './dist/client/b-pinia'
2
+
2
3
  export default Default
3
4
  export * from './dist/client/b-pinia'
package/rollup.config.mjs CHANGED
@@ -1,13 +1,13 @@
1
- import { createRequire } from 'module'
2
- import { fileURLToPath } from 'url'
3
- import path from 'path'
4
- import { defineConfig } from 'rollup'
5
- import ts from 'rollup-plugin-typescript2'
6
- import resolve from '@rollup/plugin-node-resolve'
1
+ import { createRequire } from 'node:module'
2
+ import path from 'node:path'
3
+ import { fileURLToPath } from 'node:url'
7
4
  import commonjs from '@rollup/plugin-commonjs'
5
+ import resolve from '@rollup/plugin-node-resolve'
6
+ import { execaSync } from 'execa'
8
7
  import fs from 'fs-extra'
9
8
  import { globbySync } from 'globby'
10
- import { execaSync } from 'execa'
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(`${p1}/package.json`))
59
+ const data = fs.readJsonSync(require.resolve(`./node_modules/${p1}/package.json`))
60
60
  const versionSelector = data.version
61
61
  tempPkg.dependencies[p1] = versionSelector
62
62
  return `from './node_modules/${p1}'`
@@ -67,6 +67,7 @@ export default defineConfig({
67
67
  {
68
68
  const filepath = file.replace(/\.d\.ts$/, '')
69
69
  const content = `import Default from '${filepath}'
70
+
70
71
  export default Default
71
72
  export * from '${filepath}'\n`.replace(/\n/g, process.platform === 'win32' ? '\r\n' : '\n')
72
73
  fs.writeFileSync(path.basename(file).replace(/^b-/, ''), content, 'utf-8')
@@ -93,7 +94,8 @@ export * from '${filepath}'\n`.replace(/\n/g, process.platform === 'win32' ? '\r
93
94
  pkgExports['./*'] = './*'
94
95
  pkg.exports = pkgExports
95
96
  fs.writeJsonSync('./package.json', pkg, { spaces: 2 })
96
- } catch (e) {
97
+ }
98
+ catch (e) {
97
99
  console.error(e)
98
100
  }
99
101
  },
package/scroll.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import Default from './dist/client/b-scroll'
2
+
2
3
  export default Default
3
4
  export * from './dist/client/b-scroll'
@@ -1,3 +1,5 @@
1
+ // eslint-disable-next-line import/no-named-default
1
2
  import { default as Default } from 'floating-vue'
3
+
2
4
  export * from 'floating-vue'
3
5
  export default Default
@@ -1,2 +1,4 @@
1
+ // eslint-disable-next-line import/no-named-default
1
2
  import { default as Default } from 'scroll-into-view-if-needed'
3
+
2
4
  export default Default
package/tsconfig.json CHANGED
@@ -1,32 +1,32 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "target": "ESNext",
4
+ // Volar
5
+ "jsx": "preserve",
6
+ "lib": [
7
+ "ESNext",
8
+ "DOM"
9
+ ],
4
10
  "module": "ESNext",
5
11
  "moduleResolution": "node",
6
- "outDir": "dist",
7
- "allowSyntheticDefaultImports": true,
8
- "esModuleInterop": true,
9
- "removeComments": false,
10
12
  "resolveJsonModule": true,
11
- "skipLibCheck": true,
12
- "declaration": true,
13
13
  "types": [
14
14
  "node"
15
15
  ],
16
- "lib": [
17
- "ESNext",
18
- "DOM"
19
- ],
20
- "sourceMap": false,
21
- "preserveWatchOutput": true,
16
+ "strictBindCallApply": true,
17
+ "strictFunctionTypes": true,
18
+ "alwaysStrict": true,
22
19
  // Strict
23
20
  "noImplicitAny": false,
24
21
  "noImplicitThis": true,
25
- "alwaysStrict": true,
26
- "strictBindCallApply": true,
27
- "strictFunctionTypes": true,
28
- // Volar
29
- "jsx": "preserve",
22
+ "declaration": true,
23
+ "outDir": "dist",
24
+ "removeComments": false,
25
+ "sourceMap": false,
26
+ "allowSyntheticDefaultImports": true,
27
+ "esModuleInterop": true,
28
+ "skipLibCheck": true,
29
+ "preserveWatchOutput": true
30
30
  },
31
31
  "include": [
32
32
  "src"
package/vue-router.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import Default from './dist/client/b-vue-router'
2
+
2
3
  export default Default
3
4
  export * from './dist/client/b-vue-router'
package/vue-use.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import Default from './dist/client/b-vue-use'
2
+
2
3
  export default Default
3
4
  export * from './dist/client/b-vue-use'
package/vue.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import Default from './dist/client/b-vue'
2
+
2
3
  export default Default
3
4
  export * from './dist/client/b-vue'
@@ -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,4 +0,0 @@
1
- import type { Placement, ElementRects, Coords } from './types';
2
- export declare function computeCoordsFromPlacement({ reference, floating, placement, }: ElementRects & {
3
- placement: Placement;
4
- }): Coords;
@@ -1,2 +0,0 @@
1
- import type { ComputePosition } from './types';
2
- export declare const computePosition: ComputePosition;
@@ -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,4 +0,0 @@
1
- import { Placement } from '..';
2
- import { BasePlacement } from './types';
3
- export declare const basePlacements: BasePlacement[];
4
- export declare const allPlacements: Placement[];
@@ -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,6 +0,0 @@
1
- import type { Middleware, Padding } from '../types';
2
- export declare type Options = {
3
- element: any;
4
- padding?: Padding;
5
- };
6
- export declare const arrow: (options: Options) => Middleware;
@@ -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,2 +0,0 @@
1
- import type { Middleware } from '../types';
2
- export declare const hide: () => Middleware;
@@ -1,5 +0,0 @@
1
- import type { Coords, Middleware, Padding } from '../types';
2
- export declare type Options = Coords & {
3
- padding: Padding;
4
- };
5
- export declare const inline: (options?: Partial<Options>) => 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;