@poveste/vendors 0.13.1 → 0.15.0

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 (225) hide show
  1. package/dist/client/b-floating-vue.js +1 -1
  2. package/dist/client/b-iconify.js +1429 -1416
  3. package/dist/client/b-pinia.js +1359 -1936
  4. package/dist/client/b-vue-router.js +787 -502
  5. package/dist/client/b-vue-use.js +497 -367
  6. package/dist/client/b-vue.js +1 -1
  7. package/dist/client/devtools-api.js +6568 -0
  8. package/dist/client/index.js +178 -162
  9. package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +17 -72
  10. package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +7 -12
  11. package/dist/client/node_modules/@iconify/vue/offline/package.json +2 -2
  12. package/dist/client/node_modules/@iconify/vue/package.json +13 -16
  13. package/dist/client/node_modules/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +88 -0
  14. package/dist/client/node_modules/@jridgewell/gen-mapping/dist/types/set-array.d.ts +32 -0
  15. package/dist/client/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +12 -0
  16. package/dist/client/node_modules/@jridgewell/gen-mapping/dist/types/types.d.ts +43 -0
  17. package/dist/client/node_modules/@jridgewell/gen-mapping/package.json +67 -0
  18. package/dist/client/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts +89 -0
  19. package/dist/client/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts +33 -0
  20. package/dist/client/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts +13 -0
  21. package/dist/client/node_modules/@jridgewell/gen-mapping/types/types.d.mts +44 -0
  22. package/dist/client/node_modules/@jridgewell/remapping/package.json +71 -0
  23. package/dist/client/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.mts +15 -0
  24. package/dist/client/node_modules/@jridgewell/remapping/types/remapping.d.mts +21 -0
  25. package/dist/client/node_modules/@jridgewell/remapping/types/source-map-tree.d.mts +46 -0
  26. package/dist/client/node_modules/@jridgewell/remapping/types/source-map.d.mts +19 -0
  27. package/dist/client/node_modules/@jridgewell/remapping/types/types.d.mts +16 -0
  28. package/dist/client/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +4 -0
  29. package/dist/client/node_modules/@jridgewell/resolve-uri/package.json +69 -0
  30. package/dist/client/node_modules/@jridgewell/trace-mapping/package.json +67 -0
  31. package/dist/client/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts +33 -0
  32. package/dist/client/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts +4 -0
  33. package/dist/client/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts +9 -0
  34. package/dist/client/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts +4 -0
  35. package/dist/client/node_modules/@jridgewell/trace-mapping/types/sort.d.mts +4 -0
  36. package/dist/client/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts +17 -0
  37. package/dist/client/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts +5 -0
  38. package/dist/client/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts +80 -0
  39. package/dist/client/node_modules/@jridgewell/trace-mapping/types/types.d.mts +107 -0
  40. package/dist/client/node_modules/@vue/devtools-api/dist/index-node.d.ts +11 -0
  41. package/dist/client/node_modules/@vue/devtools-api/dist/index.d.ts +2 -0
  42. package/dist/client/node_modules/@vue/devtools-api/package.json +25 -24
  43. package/dist/client/node_modules/@vue/devtools-kit/dist/index.d.ts +1170 -0
  44. package/dist/client/node_modules/@vue/devtools-kit/global.d.ts +20 -0
  45. package/dist/client/node_modules/@vue/devtools-kit/package.json +44 -0
  46. package/dist/client/node_modules/@vue/devtools-kit/types.d.ts +2 -0
  47. package/dist/client/node_modules/@vue/devtools-shared/dist/index.d.ts +40 -0
  48. package/dist/client/node_modules/@vue/devtools-shared/package.json +33 -0
  49. package/dist/client/node_modules/@vue-macros/common/dist/index.d.ts +124 -0
  50. package/dist/client/node_modules/@vue-macros/common/package.json +63 -0
  51. package/dist/client/node_modules/@vueuse/core/dist/index.d.ts +223 -111
  52. package/dist/client/node_modules/@vueuse/core/package.json +10 -3
  53. package/dist/client/node_modules/@vueuse/metadata/package.json +4 -1
  54. package/dist/client/node_modules/@vueuse/shared/dist/index.d.ts +2 -2
  55. package/dist/client/node_modules/@vueuse/shared/package.json +4 -1
  56. package/dist/client/node_modules/acorn/dist/acorn.d.mts +897 -0
  57. package/dist/client/node_modules/acorn/dist/acorn.d.ts +897 -0
  58. package/dist/client/node_modules/acorn/package.json +50 -0
  59. package/dist/client/node_modules/ast-kit/dist/index.d.ts +380 -0
  60. package/dist/client/node_modules/ast-kit/package.json +63 -0
  61. package/dist/client/node_modules/ast-walker-scope/dist/index.d.mts +51 -0
  62. package/dist/client/node_modules/ast-walker-scope/package.json +60 -0
  63. package/dist/client/node_modules/birpc/dist/index.d.mts +215 -0
  64. package/dist/client/node_modules/birpc/dist/index.d.ts +215 -0
  65. package/dist/client/node_modules/birpc/package.json +57 -0
  66. package/dist/client/node_modules/chokidar/handler.d.ts +90 -0
  67. package/dist/client/node_modules/chokidar/index.d.ts +217 -0
  68. package/dist/client/node_modules/chokidar/package.json +63 -0
  69. package/dist/client/node_modules/confbox/dist/_chunks/_format.d.mts +25 -0
  70. package/dist/client/node_modules/confbox/dist/index.d.mts +34 -0
  71. package/dist/client/node_modules/confbox/dist/ini.d.mts +62 -0
  72. package/dist/client/node_modules/confbox/dist/json5.d.mts +59 -0
  73. package/dist/client/node_modules/confbox/dist/jsonc.d.mts +41 -0
  74. package/dist/client/node_modules/confbox/dist/toml.d.mts +23 -0
  75. package/dist/client/node_modules/confbox/dist/yaml.d.mts +96 -0
  76. package/dist/client/node_modules/confbox/package.json +67 -0
  77. package/dist/client/node_modules/exsolve/dist/index.d.mts +66 -0
  78. package/dist/client/node_modules/exsolve/package.json +42 -0
  79. package/dist/client/node_modules/fdir/dist/index.d.mts +155 -0
  80. package/dist/client/node_modules/fdir/package.json +103 -0
  81. package/dist/client/node_modules/hookable/dist/index.d.ts +103 -0
  82. package/dist/client/node_modules/hookable/package.json +49 -0
  83. package/dist/client/node_modules/local-pkg/dist/index.d.mts +42 -0
  84. package/dist/client/node_modules/local-pkg/dist/index.d.ts +42 -0
  85. package/dist/client/node_modules/local-pkg/package.json +65 -0
  86. package/dist/client/node_modules/magic-string-ast/dist/index.d.ts +67 -0
  87. package/dist/client/node_modules/magic-string-ast/package.json +64 -0
  88. package/dist/client/node_modules/mlly/dist/index.d.mts +564 -0
  89. package/dist/client/node_modules/mlly/dist/index.d.ts +564 -0
  90. package/dist/client/node_modules/mlly/node_modules/confbox/dist/index.d.mts +32 -0
  91. package/dist/client/node_modules/mlly/node_modules/confbox/dist/index.d.ts +32 -0
  92. package/dist/client/node_modules/mlly/node_modules/confbox/dist/json5.d.mts +58 -0
  93. package/dist/client/node_modules/mlly/node_modules/confbox/dist/json5.d.ts +58 -0
  94. package/dist/client/node_modules/mlly/node_modules/confbox/dist/jsonc.d.mts +41 -0
  95. package/dist/client/node_modules/mlly/node_modules/confbox/dist/jsonc.d.ts +41 -0
  96. package/dist/client/node_modules/mlly/node_modules/confbox/dist/shared/confbox.9745c98f.d.mts +24 -0
  97. package/dist/client/node_modules/mlly/node_modules/confbox/dist/shared/confbox.9745c98f.d.ts +24 -0
  98. package/dist/client/node_modules/mlly/node_modules/confbox/dist/toml.d.mts +22 -0
  99. package/dist/client/node_modules/mlly/node_modules/confbox/dist/toml.d.ts +22 -0
  100. package/dist/client/node_modules/mlly/node_modules/confbox/dist/yaml.d.mts +95 -0
  101. package/dist/client/node_modules/mlly/node_modules/confbox/dist/yaml.d.ts +95 -0
  102. package/dist/client/node_modules/mlly/node_modules/confbox/json5.d.ts +2 -0
  103. package/dist/client/node_modules/mlly/node_modules/confbox/jsonc.d.ts +2 -0
  104. package/dist/client/node_modules/mlly/node_modules/confbox/package.json +86 -0
  105. package/dist/client/node_modules/mlly/node_modules/confbox/toml.d.ts +2 -0
  106. package/dist/client/node_modules/mlly/node_modules/confbox/yaml.d.ts +2 -0
  107. package/dist/client/node_modules/mlly/node_modules/pkg-types/dist/index.d.mts +411 -0
  108. package/dist/client/node_modules/mlly/node_modules/pkg-types/dist/index.d.ts +411 -0
  109. package/dist/client/node_modules/mlly/node_modules/pkg-types/package.json +47 -0
  110. package/dist/client/node_modules/mlly/package.json +55 -0
  111. package/dist/client/node_modules/muggle-string/out/base.d.ts +6 -0
  112. package/dist/client/node_modules/muggle-string/out/basic.d.ts +6 -0
  113. package/dist/client/node_modules/muggle-string/out/binarySearch.d.ts +1 -0
  114. package/dist/client/node_modules/muggle-string/out/common.d.ts +9 -0
  115. package/dist/client/node_modules/muggle-string/out/getLength.d.ts +2 -0
  116. package/dist/client/node_modules/muggle-string/out/index.d.ts +10 -0
  117. package/dist/client/node_modules/muggle-string/out/map.d.ts +3 -0
  118. package/dist/client/node_modules/muggle-string/out/overwriteSource.d.ts +3 -0
  119. package/dist/client/node_modules/muggle-string/out/replace.d.ts +3 -0
  120. package/dist/client/node_modules/muggle-string/out/segment.d.ts +6 -0
  121. package/dist/client/node_modules/muggle-string/out/sourceBased.d.ts +3 -0
  122. package/dist/client/node_modules/muggle-string/out/toString.d.ts +2 -0
  123. package/dist/client/node_modules/muggle-string/out/track.d.ts +6 -0
  124. package/dist/client/node_modules/muggle-string/out/types.d.ts +16 -0
  125. package/dist/client/node_modules/muggle-string/package.json +22 -0
  126. package/dist/client/node_modules/nanoid/package.json +1 -1
  127. package/dist/client/node_modules/nostics/dist/diagnostic-wduO7saY.d.mts +295 -0
  128. package/dist/client/node_modules/nostics/dist/formatters/ansi.d.mts +15 -0
  129. package/dist/client/node_modules/nostics/dist/formatters/json.d.mts +7 -0
  130. package/dist/client/node_modules/nostics/dist/index.d.mts +51 -0
  131. package/dist/client/node_modules/nostics/dist/reporters/dev.d.mts +13 -0
  132. package/dist/client/node_modules/nostics/dist/reporters/fetch.d.mts +11 -0
  133. package/dist/client/node_modules/nostics/dist/reporters/node.d.mts +43 -0
  134. package/dist/client/node_modules/nostics/package.json +125 -0
  135. package/dist/client/node_modules/pathe/dist/index.d.mts +47 -0
  136. package/dist/client/node_modules/pathe/dist/index.d.ts +47 -0
  137. package/dist/client/node_modules/pathe/dist/utils.d.mts +32 -0
  138. package/dist/client/node_modules/pathe/dist/utils.d.ts +32 -0
  139. package/dist/client/node_modules/pathe/package.json +61 -0
  140. package/dist/client/node_modules/pathe/utils.d.ts +1 -0
  141. package/dist/client/node_modules/perfect-debounce/dist/index.d.mts +49 -0
  142. package/dist/client/node_modules/perfect-debounce/package.json +41 -0
  143. package/dist/client/node_modules/picomatch/package.json +83 -0
  144. package/dist/client/node_modules/pinia/dist/pinia.d.ts +937 -1056
  145. package/dist/client/node_modules/pinia/package.json +53 -67
  146. package/dist/client/node_modules/pkg-types/dist/index.d.mts +695 -0
  147. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/_chunks/_format.d.mts +22 -0
  148. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/_chunks/libs/js-yaml.d.mts +33 -0
  149. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/index.d.mts +7 -0
  150. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/ini.d.mts +59 -0
  151. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/json.d.mts +25 -0
  152. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/json5.d.mts +55 -0
  153. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/jsonc.d.mts +29 -0
  154. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/toml.d.mts +20 -0
  155. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/yaml.d.mts +101 -0
  156. package/dist/client/node_modules/pkg-types/node_modules/confbox/package.json +68 -0
  157. package/dist/client/node_modules/pkg-types/package.json +47 -0
  158. package/dist/client/node_modules/quansync/dist/index.d.mts +22 -0
  159. package/dist/client/node_modules/quansync/dist/index.d.ts +22 -0
  160. package/dist/client/node_modules/quansync/dist/macro.d.mts +18 -0
  161. package/dist/client/node_modules/quansync/dist/macro.d.ts +18 -0
  162. package/dist/client/node_modules/quansync/dist/types.d.mts +27 -0
  163. package/dist/client/node_modules/quansync/dist/types.d.ts +27 -0
  164. package/dist/client/node_modules/quansync/package.json +95 -0
  165. package/dist/client/node_modules/readdirp/index.d.ts +117 -0
  166. package/dist/client/node_modules/readdirp/package.json +62 -0
  167. package/dist/client/node_modules/scule/dist/index.d.mts +57 -0
  168. package/dist/client/node_modules/scule/dist/index.d.ts +57 -0
  169. package/dist/client/node_modules/scule/package.json +43 -0
  170. package/dist/client/node_modules/tinyglobby/dist/index.d.mts +148 -0
  171. package/dist/client/node_modules/tinyglobby/package.json +70 -0
  172. package/dist/client/node_modules/ufo/dist/index.d.mts +714 -0
  173. package/dist/client/node_modules/ufo/dist/index.d.ts +714 -0
  174. package/dist/client/node_modules/ufo/package.json +48 -0
  175. package/dist/client/node_modules/unplugin/dist/index.d.mts +241 -0
  176. package/dist/client/node_modules/unplugin/dist/rspack/loaders/load.d.mts +4 -0
  177. package/dist/client/node_modules/unplugin/dist/rspack/loaders/transform.d.mts +4 -0
  178. package/dist/client/node_modules/unplugin/dist/webpack/loaders/load.d.mts +4 -0
  179. package/dist/client/node_modules/unplugin/dist/webpack/loaders/transform.d.mts +4 -0
  180. package/dist/client/node_modules/unplugin/package.json +146 -0
  181. package/dist/client/node_modules/unplugin-utils/dist/index.d.ts +31 -0
  182. package/dist/client/node_modules/unplugin-utils/package.json +61 -0
  183. package/dist/client/node_modules/vue-router/dist/experimental/index.d.ts +7 -0
  184. package/dist/client/node_modules/vue-router/dist/experimental/pinia-colada.d.ts +151 -0
  185. package/dist/client/node_modules/vue-router/dist/{router-CWoNjPRp.d.mts → index-D7ja2BKs.d.ts} +2480 -1160
  186. package/dist/client/node_modules/vue-router/dist/options-CwYZKRl4.d.mts +2923 -0
  187. package/dist/client/node_modules/vue-router/dist/unplugin/esbuild.d.mts +10 -0
  188. package/dist/client/node_modules/vue-router/dist/unplugin/index.d.mts +62 -0
  189. package/dist/client/node_modules/vue-router/dist/unplugin/options.d.mts +7 -0
  190. package/dist/client/node_modules/vue-router/dist/unplugin/rolldown.d.mts +10 -0
  191. package/dist/client/node_modules/vue-router/dist/unplugin/rollup.d.mts +10 -0
  192. package/dist/client/node_modules/vue-router/dist/unplugin/types.d.mts +7 -0
  193. package/dist/client/node_modules/vue-router/dist/unplugin/vite.d.mts +10 -0
  194. package/dist/client/node_modules/vue-router/dist/unplugin/webpack.d.mts +10 -0
  195. package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +7 -0
  196. package/dist/client/node_modules/vue-router/package.json +153 -95
  197. package/dist/client/node_modules/vue-router/vue-router-auto-resolver.d.mts +22 -17
  198. package/dist/client/node_modules/vue-router/vue-router-auto-routes.d.mts +53 -0
  199. package/dist/client/node_modules/vue-router/vue-router-auto.d.ts +2 -1
  200. package/dist/client/node_modules/webpack-virtual-modules/lib/index.d.ts +15 -0
  201. package/dist/client/node_modules/webpack-virtual-modules/lib/virtual-stats.d.ts +11 -0
  202. package/dist/client/node_modules/webpack-virtual-modules/package.json +82 -0
  203. package/dist/client/vue.runtime.esm-bundler.js +1 -176
  204. package/package.json +8 -7
  205. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/api.d.ts +0 -108
  206. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/app.d.ts +0 -1
  207. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/component.d.ts +0 -78
  208. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/context.d.ts +0 -5
  209. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/hooks.d.ts +0 -180
  210. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/index.d.ts +0 -6
  211. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/util.d.ts +0 -4
  212. package/dist/client/node_modules/@vue/devtools-api/lib/esm/const.d.ts +0 -2
  213. package/dist/client/node_modules/@vue/devtools-api/lib/esm/env.d.ts +0 -15
  214. package/dist/client/node_modules/@vue/devtools-api/lib/esm/index.d.ts +0 -18
  215. package/dist/client/node_modules/@vue/devtools-api/lib/esm/plugin.d.ts +0 -47
  216. package/dist/client/node_modules/@vue/devtools-api/lib/esm/proxy.d.ts +0 -20
  217. package/dist/client/node_modules/@vue/devtools-api/lib/esm/time.d.ts +0 -2
  218. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +0 -22
  219. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
  220. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
  221. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
  222. package/dist/client/node_modules/pinia/node_modules/vue-demi/package.json +0 -47
  223. package/dist/client/node_modules/vue-router/dist/experimental/index.d.mts +0 -38
  224. package/dist/client/node_modules/vue-router/dist/vue-router.d.mts +0 -361
  225. package/dist/client/node_modules/vue-router/vue-router-auto-routes.d.ts +0 -4
@@ -0,0 +1,10 @@
1
+ /*!
2
+ * vue-router v5.3.1
3
+ * (c) 2026 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */
6
+ import { r as Options } from "../options-CwYZKRl4.mjs";
7
+ //#region src/unplugin/esbuild.d.ts
8
+ declare const _default: (options?: Options | undefined) => import("unplugin").EsbuildPlugin;
9
+ //#endregion
10
+ export { _default as default };
@@ -0,0 +1,62 @@
1
+ /*!
2
+ * vue-router v5.3.1
3
+ * (c) 2026 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */
6
+ import { C as createTreeNodeValue, S as TreeNodeValueStatic, _ as getPascalCaseRouteName, a as ResolvedOptions, b as TreeNodeValueGroup, c as RoutesFolderOptionResolved, g as getFileBasedRouteName, h as EditableTreeNode, i as ParamParsersOptions, l as ServerContext, o as RoutesFolder, p as resolveOptions, r as Options, s as RoutesFolderOption, t as DEFAULT_OPTIONS, v as TreeNode, x as TreeNodeValueParam, y as TreeNodeValue } from "../options-CwYZKRl4.mjs";
7
+ import { StringFilter } from "unplugin";
8
+ import { Plugin } from "vite";
9
+ //#region src/unplugin/core/context.d.ts
10
+ declare function createRoutesContext(options: ResolvedOptions): {
11
+ scanPages: (startWatchers?: boolean) => Promise<void>;
12
+ writeConfigFiles: () => void;
13
+ setServerContext: (_server: ServerContext) => void;
14
+ stopWatcher: () => void;
15
+ generateRoutes: () => string;
16
+ generateResolver: () => string;
17
+ definePageTransform(code: string, id: string): import("unplugin").Thenable<import("unplugin").TransformResult>;
18
+ };
19
+ //#endregion
20
+ //#region src/experimental/data-loaders/auto-exports.d.ts
21
+ /**
22
+ * {@link AutoExportLoaders} options.
23
+ */
24
+ interface AutoExportLoadersOptions {
25
+ /**
26
+ * Filter page components to apply the auto-export. Passed to `transform.filter.id`.
27
+ */
28
+ transformFilter: StringFilter;
29
+ /**
30
+ * Globs to match the paths of the loaders.
31
+ */
32
+ loadersPathsGlobs: string | string[];
33
+ /**
34
+ * Root of the project. All paths are resolved relatively to this one.
35
+ * @default `process.cwd()`
36
+ */
37
+ root?: string;
38
+ }
39
+ /**
40
+ * Vite Plugin to automatically export loaders from page components.
41
+ *
42
+ * @param options Options
43
+ * @experimental - This API is experimental and can be changed in the future. It's used internally by `experimental.autoExportsDataLoaders`
44
+ */
45
+ declare function AutoExportLoaders({ transformFilter, loadersPathsGlobs, root }: AutoExportLoadersOptions): Plugin;
46
+ //#endregion
47
+ //#region src/unplugin/index.d.ts
48
+ declare const _default: import("unplugin").UnpluginInstance<Options | undefined, boolean>;
49
+ /**
50
+ * Adds useful auto imports to the AutoImport config:
51
+ * @example
52
+ * ```js
53
+ * import { VueRouterAutoImports } from 'vue-router/unplugin'
54
+ *
55
+ * AutoImport({
56
+ * imports: [VueRouterAutoImports],
57
+ * }),
58
+ * ```
59
+ */
60
+ declare const VueRouterAutoImports: Record<string, Array<string | [importName: string, alias: string]>>;
61
+ //#endregion
62
+ export { AutoExportLoaders, type AutoExportLoadersOptions, DEFAULT_OPTIONS, EditableTreeNode, type Options, type ParamParsersOptions, type ResolvedOptions, type RoutesFolder, type RoutesFolderOption, type RoutesFolderOptionResolved, type TreeNode, type TreeNodeValue, type TreeNodeValueGroup, type TreeNodeValueParam, type TreeNodeValueStatic, VueRouterAutoImports, createRoutesContext, createTreeNodeValue, _default as default, getFileBasedRouteName, getPascalCaseRouteName, resolveOptions };
@@ -0,0 +1,7 @@
1
+ /*!
2
+ * vue-router v5.3.1
3
+ * (c) 2026 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */
6
+ import { a as ResolvedOptions, c as RoutesFolderOptionResolved, d as _RoutesFolder, f as mergeAllExtensions, i as ParamParsersOptions, l as ServerContext, m as resolveOverridableOption, n as DEFAULT_PARAM_PARSERS_OPTIONS, o as RoutesFolder, p as resolveOptions, r as Options, s as RoutesFolderOption, t as DEFAULT_OPTIONS, u as _OverridableOption } from "../options-CwYZKRl4.mjs";
7
+ export { DEFAULT_OPTIONS, DEFAULT_PARAM_PARSERS_OPTIONS, Options, ParamParsersOptions, ResolvedOptions, RoutesFolder, RoutesFolderOption, RoutesFolderOptionResolved, ServerContext, _OverridableOption, _RoutesFolder, mergeAllExtensions, resolveOptions, resolveOverridableOption };
@@ -0,0 +1,10 @@
1
+ /*!
2
+ * vue-router v5.3.1
3
+ * (c) 2026 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */
6
+ import { r as Options } from "../options-CwYZKRl4.mjs";
7
+ //#region src/unplugin/rolldown.d.ts
8
+ declare const _default: (options?: Options | undefined) => import("rolldown").Plugin<any> | import("rolldown").Plugin<any>[];
9
+ //#endregion
10
+ export { _default as default };
@@ -0,0 +1,10 @@
1
+ /*!
2
+ * vue-router v5.3.1
3
+ * (c) 2026 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */
6
+ import { r as Options } from "../options-CwYZKRl4.mjs";
7
+ //#region src/unplugin/rollup.d.ts
8
+ declare const _default: (options?: Options | undefined) => import("rollup").Plugin<any> | import("rollup").Plugin<any>[];
9
+ //#endregion
10
+ export { _default as default };
@@ -0,0 +1,7 @@
1
+ /*!
2
+ * vue-router v5.3.1
3
+ * (c) 2026 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */
6
+ import { S as TreeNodeValueStatic, b as TreeNodeValueGroup, h as EditableTreeNode, r as Options, v as TreeNode, x as TreeNodeValueParam, y as TreeNodeValue } from "../options-CwYZKRl4.mjs";
7
+ export type { EditableTreeNode, Options, TreeNode, TreeNodeValue, TreeNodeValueGroup, TreeNodeValueParam, TreeNodeValueStatic };
@@ -0,0 +1,10 @@
1
+ /*!
2
+ * vue-router v5.3.1
3
+ * (c) 2026 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */
6
+ import { r as Options } from "../options-CwYZKRl4.mjs";
7
+ //#region src/unplugin/vite.d.ts
8
+ declare const _default: (options?: Options | undefined) => import("vite").Plugin<any> | import("vite").Plugin<any>[];
9
+ //#endregion
10
+ export { _default as default };
@@ -0,0 +1,10 @@
1
+ /*!
2
+ * vue-router v5.3.1
3
+ * (c) 2026 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */
6
+ import { r as Options } from "../options-CwYZKRl4.mjs";
7
+ //#region src/unplugin/webpack.d.ts
8
+ declare const _default: (options?: Options | undefined) => WebpackPluginInstance;
9
+ //#endregion
10
+ export { _default as default };
@@ -0,0 +1,7 @@
1
+ /*!
2
+ * vue-router v5.3.1
3
+ * (c) 2026 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */
6
+ import { $ as RouteLocationAsPath, $t as RouteQueryAndHash, A as useLink, Ar as LocationQueryValue, At as ParamValue, B as RouterClassic, Bt as LocationAsRelativeRaw, C as RouterView, Cr as createRouterMatcher, Ct as RouteLocationResolvedTypedList, D as UseLinkOptions, Dr as RouteRecordNormalized, Dt as RouteRecordNameGeneric, E as RouterLinkProps, Er as RouteRecord, Et as RouteRecordName, F as routeLocationKey, Ft as RouteParamsRaw, G as createWebHashHistory, Gt as RouteLocationNamedRaw, H as createRouter, Ht as MatcherLocationAsPath, I as routerKey, It as RouteMap, J as NavigationGuardNextCallback, Jt as RouteMeta, K as NavigationGuard, Kt as RouteLocationOptions, L as routerViewLocationKey, Lt as RouteMapGeneric, M as onBeforeRouteLeave, Mr as parseQuery, Mt as ParamValueZeroOrMore, N as onBeforeRouteUpdate, Nr as stringifyQuery, Nt as ParamValueZeroOrOne, O as UseLinkReturn, Or as LocationQuery, Ot as RouteRecordRedirectOption, P as matchedRouteKey, Pr as TypesConfig, Pt as RouteParams, Q as RouteLocation, Qt as RouteParamsRawGeneric, R as viewDepthKey, Rt as RouteRecordInfo, S as useRouter, Sr as RouterMatcher, St as RouteLocationResolvedTyped, T as RouterLink, Tr as _PathParserOptions, Tt as RouteLocationTypedList, U as createMemoryHistory, Ut as RouteComponent, V as RouterOptions, Vt as MatcherLocation, W as createWebHistory, Wt as RouteLocationMatched, X as NavigationGuardWithThis, Xt as RouteParamValueRaw, Y as NavigationGuardReturn, Yt as RouteParamValue, Z as NavigationHookAfter, Zt as RouteParamsGeneric, _r as NavigationFailureType, _t as RouteLocationNormalizedTyped, an as RouteRecordSingleViewWithChildren, at as RouteLocationAsRelativeTyped, br as HistoryState, bt as RouteLocationResolved, ct as RouteLocationAsStringTyped, dr as _Awaitable, dt as RouteLocationNormalized, en as RouteRecordMultipleViews, er as START_LOCATION_NORMALIZED, et as RouteLocationAsPathGeneric, ft as RouteLocationNormalizedGeneric, gr as NavigationFailure, gt as RouteLocationNormalizedLoadedTypedList, hr as ErrorTypes, ht as RouteLocationNormalizedLoadedTyped, in as RouteRecordSingleView, it as RouteLocationAsRelativeGeneric, j as loadRouteLocation, jr as LocationQueryValueRaw, jt as ParamValueOneOrMore, k as _RouterLinkI, kr as LocationQueryRaw, kt as _RouteRecordProps, lt as RouteLocationAsStringTypedList, mt as RouteLocationNormalizedLoadedGeneric, nn as RouteRecordRaw, nt as RouteLocationAsPathTypedList, on as _RouteLocationBase, ot as RouteLocationAsRelativeTypedList, pr as RouterScrollBehavior, pt as RouteLocationNormalizedLoaded, q as NavigationGuardNext, qt as RouteLocationPathRaw, rn as RouteRecordRedirect, rt as RouteLocationAsRelative, sn as _RouteRecordBase, st as RouteLocationAsString, tn as RouteRecordMultipleViewsWithChildren, tt as RouteLocationAsPathTyped, ut as RouteLocationGeneric, vr as NavigationRedirectError, vt as RouteLocationNormalizedTypedList, w as RouterViewProps, wr as PathParserOptions, wt as RouteLocationTyped, x as useRoute, xr as RouterHistory, xt as RouteLocationResolvedGeneric, yr as isNavigationFailure, yt as RouteLocationRaw, z as Router, zt as RouteRecordInfoGeneric } from "./index-D7ja2BKs.js";
7
+ export { type ErrorTypes, type HistoryState, type LocationAsRelativeRaw, type LocationQuery, type LocationQueryRaw, type LocationQueryValue, type LocationQueryValueRaw, type MatcherLocation, type MatcherLocationAsPath, type NavigationFailure, NavigationFailureType, type NavigationGuard, type NavigationGuardNext, type NavigationGuardNextCallback, type NavigationGuardReturn, type NavigationGuardWithThis, type NavigationHookAfter, type NavigationRedirectError, type ParamValue, type ParamValueOneOrMore, type ParamValueZeroOrMore, type ParamValueZeroOrOne, type PathParserOptions, type RouteComponent, type RouteLocation, type RouteLocationAsPath, type RouteLocationAsPathGeneric, type RouteLocationAsPathTyped, type RouteLocationAsPathTypedList, type RouteLocationAsRelative, type RouteLocationAsRelativeGeneric, type RouteLocationAsRelativeTyped, type RouteLocationAsRelativeTypedList, type RouteLocationAsString, type RouteLocationAsStringTyped, type RouteLocationAsStringTypedList, type RouteLocationGeneric, type RouteLocationMatched, type RouteLocationNamedRaw, type RouteLocationNormalized, type RouteLocationNormalizedGeneric, type RouteLocationNormalizedLoaded, type RouteLocationNormalizedLoadedGeneric, type RouteLocationNormalizedLoadedTyped, type RouteLocationNormalizedLoadedTypedList, type RouteLocationNormalizedTyped, type RouteLocationNormalizedTypedList, type RouteLocationOptions, type RouteLocationPathRaw, type RouteLocationRaw, type RouteLocationResolved, type RouteLocationResolvedGeneric, type RouteLocationResolvedTyped, type RouteLocationResolvedTypedList, type RouteLocationTyped, type RouteLocationTypedList, type RouteMap, type RouteMapGeneric, type RouteMeta, type RouteParamValue, type RouteParamValueRaw, type RouteParams, type RouteParamsGeneric, type RouteParamsRaw, type RouteParamsRawGeneric, type RouteQueryAndHash, type RouteRecord, type RouteRecordInfo, type RouteRecordInfoGeneric, type RouteRecordMultipleViews, type RouteRecordMultipleViewsWithChildren, type RouteRecordName, type RouteRecordNameGeneric, type RouteRecordNormalized, type RouteRecordRaw, type RouteRecordRedirect, type RouteRecordRedirectOption, type RouteRecordSingleView, type RouteRecordSingleViewWithChildren, type Router, type RouterHistory, RouterLink, type RouterLinkProps, type RouterMatcher, type RouterOptions, type RouterScrollBehavior, RouterView, type RouterViewProps, START_LOCATION_NORMALIZED as START_LOCATION, type TypesConfig, type UseLinkOptions, type UseLinkReturn, type _Awaitable, type _PathParserOptions, type _RouteLocationBase, type _RouteRecordBase, type _RouteRecordProps, type RouterClassic as _RouterClassic, type _RouterLinkI, createMemoryHistory, createRouter, createRouterMatcher, createWebHashHistory, createWebHistory, isNavigationFailure, loadRouteLocation, matchedRouteKey, onBeforeRouteLeave, onBeforeRouteUpdate, parseQuery, routeLocationKey, routerKey, routerViewLocationKey, stringifyQuery, useLink, useRoute, useRouter, viewDepthKey };
@@ -1,14 +1,58 @@
1
1
  {
2
2
  "name": "vue-router",
3
- "version": "4.6.4",
4
- "main": "index.js",
3
+ "version": "5.3.1",
4
+ "homepage": "https://router.vuejs.org",
5
+ "bugs": {
6
+ "url": "https://github.com/vuejs/router/issues"
7
+ },
8
+ "license": "MIT",
9
+ "author": {
10
+ "name": "Eduardo San Martin Morote",
11
+ "email": "posva13@gmail.com"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/vuejs/router.git"
16
+ },
17
+ "funding": "https://github.com/sponsors/posva",
18
+ "files": [
19
+ "dist",
20
+ "index.cjs",
21
+ "README.md",
22
+ "route.schema.json",
23
+ "vue-router-auto-resolver.d.mts",
24
+ "vue-router-auto-routes.d.mts",
25
+ "vue-router-auto.d.ts",
26
+ "vue-router.node.mjs",
27
+ "vetur/attributes.json",
28
+ "vetur/tags.json"
29
+ ],
30
+ "type": "module",
31
+ "sideEffects": false,
32
+ "main": "index.cjs",
33
+ "module": "dist/vue-router.js",
34
+ "types": "dist/vue-router.d.ts",
35
+ "typesVersions": {
36
+ "*": {
37
+ "vite": [
38
+ "./dist/unplugin/vite.d.mts"
39
+ ],
40
+ "unplugin": [
41
+ "./dist/unplugin/index.d.mts"
42
+ ],
43
+ "unplugin/*": [
44
+ "./dist/unplugin/*.d.mts"
45
+ ],
46
+ "volar/*": [
47
+ "./dist/volar/*.d.cts"
48
+ ]
49
+ }
50
+ },
5
51
  "unpkg": "dist/vue-router.global.js",
6
52
  "jsdelivr": "dist/vue-router.global.js",
7
- "module": "dist/vue-router.mjs",
8
- "types": "dist/vue-router.d.mts",
9
53
  "exports": {
10
54
  ".": {
11
- "types": "./dist/vue-router.d.mts",
55
+ "types": "./dist/vue-router.d.ts",
12
56
  "node": {
13
57
  "import": {
14
58
  "production": "./vue-router.node.mjs",
@@ -18,35 +62,27 @@
18
62
  "require": {
19
63
  "production": "./dist/vue-router.prod.cjs",
20
64
  "development": "./dist/vue-router.cjs",
21
- "default": "./index.js"
65
+ "default": "./index.cjs"
22
66
  }
23
67
  },
24
- "import": "./dist/vue-router.mjs",
25
- "require": "./index.js"
68
+ "import": "./dist/vue-router.js",
69
+ "require": "./index.cjs"
26
70
  },
27
- "./dist/*": "./dist/*",
28
71
  "./vetur/*": "./vetur/*",
29
72
  "./package.json": "./package.json",
30
- "./experimental": "./dist/experimental/index.mjs",
73
+ "./experimental": {
74
+ "types": "./dist/experimental/index.d.ts",
75
+ "import": "./dist/experimental/index.js"
76
+ },
77
+ "./experimental/pinia-colada": {
78
+ "types": "./dist/experimental/pinia-colada.d.ts",
79
+ "import": "./dist/experimental/pinia-colada.js"
80
+ },
31
81
  "./auto-resolver": {
32
82
  "types": "./vue-router-auto-resolver.d.mts"
33
83
  },
34
84
  "./auto-routes": {
35
- "types": "./vue-router-auto-routes.d.ts",
36
- "node": {
37
- "import": {
38
- "production": "./vue-router.node.mjs",
39
- "development": "./vue-router.node.mjs",
40
- "default": "./vue-router.node.mjs"
41
- },
42
- "require": {
43
- "production": "./dist/vue-router.prod.cjs",
44
- "development": "./dist/vue-router.cjs",
45
- "default": "./index.js"
46
- }
47
- },
48
- "import": "./dist/vue-router.mjs",
49
- "require": "./index.js"
85
+ "types": "./vue-router-auto-routes.d.mts"
50
86
  },
51
87
  "./auto": {
52
88
  "types": "./vue-router-auto.d.ts",
@@ -59,79 +95,106 @@
59
95
  "require": {
60
96
  "production": "./dist/vue-router.prod.cjs",
61
97
  "development": "./dist/vue-router.cjs",
62
- "default": "./index.js"
98
+ "default": "./index.cjs"
63
99
  }
64
100
  },
65
- "import": "./dist/vue-router.mjs",
66
- "require": "./index.js"
67
- }
68
- },
69
- "sideEffects": false,
70
- "author": {
71
- "name": "Eduardo San Martin Morote",
72
- "email": "posva13@gmail.com"
101
+ "import": "./dist/vue-router.js",
102
+ "require": "./index.cjs"
103
+ },
104
+ "./vite": {
105
+ "types": "./dist/unplugin/vite.d.mts",
106
+ "import": "./dist/unplugin/vite.mjs",
107
+ "require": "./dist/unplugin/vite.cjs"
108
+ },
109
+ "./unplugin": {
110
+ "types": "./dist/unplugin/index.d.mts",
111
+ "import": "./dist/unplugin/index.mjs",
112
+ "require": "./dist/unplugin/index.cjs"
113
+ },
114
+ "./unplugin/*": "./dist/unplugin/*",
115
+ "./volar/sfc-route-blocks": {
116
+ "types": "./dist/volar/sfc-route-blocks.d.cts",
117
+ "default": "./dist/volar/sfc-route-blocks.cjs"
118
+ },
119
+ "./volar/sfc-typed-router": {
120
+ "types": "./dist/volar/sfc-typed-router.d.cts",
121
+ "default": "./dist/volar/sfc-typed-router.cjs"
122
+ },
123
+ "./dist/*": "./dist/*"
73
124
  },
74
- "funding": "https://github.com/sponsors/posva",
75
- "license": "MIT",
76
- "repository": {
77
- "type": "git",
78
- "url": "git+https://github.com/vuejs/router.git"
125
+ "dependencies": {
126
+ "@vue-macros/common": "^3.1.3",
127
+ "@vue/devtools-api": "^8.1.5",
128
+ "ast-walker-scope": "^0.9.0",
129
+ "chokidar": "^5.0.0",
130
+ "confbox": "^0.2.4",
131
+ "local-pkg": "^1.2.1",
132
+ "magic-string": "^0.30.21",
133
+ "mlly": "^1.8.2",
134
+ "muggle-string": "^0.4.1",
135
+ "nostics": "^1.1.4",
136
+ "pathe": "^2.0.3",
137
+ "picomatch": "^4.0.5",
138
+ "scule": "^1.3.0",
139
+ "tinyglobby": "^0.2.17",
140
+ "unplugin": "^3.3.0",
141
+ "unplugin-utils": "^0.3.2"
79
142
  },
80
- "bugs": {
81
- "url": "https://github.com/vuejs/router/issues"
143
+ "devDependencies": {
144
+ "@babel/types": "^8.0.0",
145
+ "@pinia/colada": "^1.3.1",
146
+ "@playwright/test": "^1.62.1",
147
+ "@rollup/plugin-commonjs": "^29.0.3",
148
+ "@rollup/plugin-node-resolve": "^16.0.3",
149
+ "@rollup/plugin-replace": "^6.0.3",
150
+ "@rollup/plugin-terser": "^1.0.0",
151
+ "@standard-schema/spec": "^1.1.0",
152
+ "@types/picomatch": "^4.0.3",
153
+ "@typescript/native-preview": "7.0.0-dev.20260707.2",
154
+ "@vitejs/plugin-vue": "^6.0.8",
155
+ "@vue/compiler-sfc": "^3.5.34",
156
+ "@vue/language-core": "^3.3.7",
157
+ "@vue/server-renderer": "^3.5.34",
158
+ "@vue/test-utils": "^2.4.11",
159
+ "connect-history-api-fallback": "^2.0.0",
160
+ "faked-promise": "^2.2.2",
161
+ "happy-dom": "^20.10.6",
162
+ "pinia": "^3.0.4",
163
+ "rimraf": "^6.1.3",
164
+ "rollup": "^4.62.2",
165
+ "rollup-plugin-typescript2": "^0.36.0",
166
+ "tsdown": "^0.22.7",
167
+ "tsup": "^8.5.1",
168
+ "valibot": "^1.4.2",
169
+ "vite": "^8.2.0",
170
+ "vue": "^3.5.34",
171
+ "zod": "^4.4.3"
82
172
  },
83
- "homepage": "https://router.vuejs.org",
84
- "files": [
85
- "vue-router-auto-resolver.d.mts",
86
- "index.js",
87
- "vue-router.node.mjs",
88
- "vue-router-auto.d.ts",
89
- "vue-router-auto-routes.d.ts",
90
- "dist/**/*.{js,cjs,mjs}",
91
- "dist/**/*.d.{ts,mts}",
92
- "vetur/tags.json",
93
- "vetur/attributes.json",
94
- "README.md"
95
- ],
96
173
  "peerDependencies": {
97
- "vue": "^3.5.0"
174
+ "@pinia/colada": ">=0.21.2",
175
+ "@vue/compiler-sfc": "^3.5.34 || ^4.0.0",
176
+ "pinia": "^3.0.4 || ^4.0.2",
177
+ "vite": "^7.3.0 || ^8.0.0",
178
+ "vue": "^3.5.34 || ^4.0.0"
179
+ },
180
+ "peerDependenciesMeta": {
181
+ "@vue/compiler-sfc": {
182
+ "optional": true
183
+ },
184
+ "pinia": {
185
+ "optional": true
186
+ },
187
+ "@pinia/colada": {
188
+ "optional": true
189
+ },
190
+ "vite": {
191
+ "optional": true
192
+ }
98
193
  },
99
194
  "vetur": {
100
195
  "tags": "vetur/tags.json",
101
196
  "attributes": "vetur/attributes.json"
102
197
  },
103
- "dependencies": {
104
- "@vue/devtools-api": "^6.6.4"
105
- },
106
- "devDependencies": {
107
- "@rollup/plugin-commonjs": "^28.0.7",
108
- "@rollup/plugin-node-resolve": "^16.0.3",
109
- "@rollup/plugin-replace": "^6.0.2",
110
- "@rollup/plugin-terser": "^0.4.4",
111
- "@types/jsdom": "^21.1.7",
112
- "@types/nightwatch": "^2.3.32",
113
- "@typescript/native-preview": "7.0.0-dev.20251013.1",
114
- "@vitejs/plugin-vue": "^6.0.1",
115
- "@vue/compiler-sfc": "~3.5.22",
116
- "@vue/server-renderer": "~3.5.22",
117
- "@vue/test-utils": "^2.4.6",
118
- "browserstack-local": "^1.5.8",
119
- "chromedriver": "^138.0.5",
120
- "connect-history-api-fallback": "^1.6.0",
121
- "dotenv": "^17.2.3",
122
- "faked-promise": "^2.2.2",
123
- "geckodriver": "^6.0.2",
124
- "happy-dom": "^20.0.0",
125
- "nightwatch": "^3.12.2",
126
- "nightwatch-helpers": "^1.2.0",
127
- "rimraf": "^6.0.1",
128
- "rollup": "^4.52.4",
129
- "rollup-plugin-typescript2": "^0.36.0",
130
- "tsdown": "^0.17.2",
131
- "tsup": "^8.5.0",
132
- "vite": "^7.1.10",
133
- "vue": "~3.6.0-alpha.2"
134
- },
135
198
  "scripts": {
136
199
  "dev": "vitest --ui",
137
200
  "build": "tsdown",
@@ -140,14 +203,9 @@
140
203
  "build:e2e": "vue-tsc --noEmit && vite build --config e2e/vite.config.mjs",
141
204
  "build:size": "pnpm run build && rollup -c size-checks/rollup.config.mjs",
142
205
  "dev:e2e": "vite --config e2e/vite.config.mjs",
143
- "test:types": "tsc --build tsconfig.json",
206
+ "test:types": "tsgo --build tsconfig.json ./test-dts/tsconfig.experimental.json",
144
207
  "test:unit": "vitest --coverage run",
145
- "test": "pnpm run build && pnpm run test:types && pnpm run test:unit && pnpm run test:e2e",
146
- "test:e2e": "pnpm run test:e2e:headless",
147
- "test:e2e:headless": "node e2e/runner.mjs --env chrome-headless",
148
- "test:e2e:native": "node e2e/runner.mjs --env chrome",
149
- "test:e2e:ci": "node e2e/runner.mjs --env chrome-headless --retries 2",
150
- "test:e2e:bs": "node e2e/runner.mjs --local -e android5 --tag browserstack",
151
- "test:e2e:bs-test": "node e2e/runner.mjs --local --env browserstack.local_chrome --tag browserstack"
208
+ "test": "pnpm run build && pnpm run '/^(test:unit|test:types)$/' && pnpm run test:e2e",
209
+ "test:e2e": "playwright test"
152
210
  }
153
211
  }
@@ -1,22 +1,27 @@
1
1
  /**
2
- * TODO: remove the declaration if possible when merging unplugin-vue-router into this monorepo
2
+ * TODO: remove the declaration if possible when merging unplugin-vue-router
3
+ * into this monorepo in v6
3
4
  */
4
5
 
5
- declare module 'vue-router/auto-resolver' {
6
- import type {
7
- EXPERIMENTAL_Router,
8
- EXPERIMENTAL_RouterOptions,
9
- } from 'vue-router/experimental'
6
+ import type {
7
+ EXPERIMENTAL_Router,
8
+ EXPERIMENTAL_RouterOptions,
9
+ } from 'vue-router/experimental'
10
10
 
11
- /**
12
- * Handles HMR.
13
- * Generated by unplugin-vue-router
14
- */
15
- export function handleHotUpdate(router: EXPERIMENTAL_Router): void
11
+ /**
12
+ * Handles HMR.
13
+ * Generated by unplugin-vue-router
14
+ */
15
+ export function handleHotUpdate(router: EXPERIMENTAL_Router): void
16
+
17
+ /**
18
+ * Custom resolver automatically generated at build time
19
+ * Generated by unplugin-vue-router
20
+ */
21
+ export declare const resolver: EXPERIMENTAL_RouterOptions['resolver']
16
22
 
17
- /**
18
- * Custom resolver automatically generated at build time
19
- * Generated by unplugin-vue-router
20
- */
21
- export const resolver: EXPERIMENTAL_RouterOptions['resolver']
22
- }
23
+ // TODO:move to the generated route map so it can import the correct version (custom resolvers or not)
24
+ // Make the macros globally available
25
+ // declare global {
26
+ // const definePage: (typeof import("vue-router/experimental"))["definePage"];
27
+ // }
@@ -0,0 +1,53 @@
1
+ import type { Router, RouteRecordRaw } from 'vue-router'
2
+
3
+ /**
4
+ * Array of routes generated by vue-router file based routing
5
+ */
6
+ export declare const routes: RouteRecordRaw[]
7
+
8
+ /**
9
+ * Setups hot module replacement for routes.
10
+ *
11
+ * @param router - The router instance
12
+ * @param hotUpdateCallback - Callback to be called after replacing the routes and before the navigation
13
+ *
14
+ * @example
15
+ *
16
+ * ```ts
17
+ * import { createRouter, createWebHistory } from 'vue-router'
18
+ * import { routes, handleHotUpdate } from 'vue-router/auto-routes'
19
+ * const router = createRouter({
20
+ * history: createWebHistory(),
21
+ * routes,
22
+ * })
23
+ * if (import.meta.hot) {
24
+ * handleHotUpdate(router)
25
+ * }
26
+ * ```
27
+ */
28
+ export declare function handleHotUpdate(
29
+ router: Router,
30
+ hotUpdateCallback?: (newRoutes: RouteRecordRaw[]) => void
31
+ ): void
32
+
33
+ // The actual `RouteNamedMap` body is generated by the unplugin into the user's
34
+ // `routes.d.ts` and wired into `vue-router`'s `TypesConfig` from there, so the
35
+ // typed routes work even if this module is never imported (e.g. when only
36
+ // `vue-router/auto-resolver` is used). See vuejs/router#2696.
37
+ // TODO(v6): rename to `RouteMap` and host the interface directly on `vue-router`.
38
+ export interface RouteNamedMap {}
39
+
40
+ /**
41
+ * Map of route file paths (relative to the project root) to information about
42
+ * the routes they declare. Augmented from the user's generated `routes.d.ts`
43
+ * by the unplugin. Used by the `definePage` macro typing and the
44
+ * `sfc-typed-router` Volar plugin to type `useRoute()` per file.
45
+ *
46
+ * @internal
47
+ */
48
+ export interface _RouteFileInfoMap {}
49
+
50
+ // Make the macros globally available
51
+ declare global {
52
+ const definePage: (typeof import('vue-router/experimental'))['definePage']
53
+ }
@@ -1 +1,2 @@
1
- // augmented by unplugin-vue-router
1
+ // DEPRECATED: will be removed in future versions
2
+ // This file is augmented by the file-based routing plugin (vue-router/vite or vue-router/unplugin)
@@ -0,0 +1,15 @@
1
+ import type { Compiler } from 'webpack';
2
+ declare const ALL = "all";
3
+ declare const STATIC = "static";
4
+ declare const DYNAMIC = "dynamic";
5
+ declare type AvailableModules = typeof ALL | typeof STATIC | typeof DYNAMIC;
6
+ declare class VirtualModulesPlugin {
7
+ private _staticModules;
8
+ private _compiler;
9
+ private _watcher;
10
+ constructor(modules?: Record<string, string>);
11
+ getModuleList(filter?: AvailableModules): {};
12
+ writeModule(filePath: string, contents: string): void;
13
+ apply(compiler: Compiler): void;
14
+ }
15
+ export = VirtualModulesPlugin;
@@ -0,0 +1,11 @@
1
+ export declare class VirtualStats {
2
+ constructor(config: any);
3
+ private _checkModeProperty;
4
+ isDirectory(): boolean;
5
+ isFile(): boolean;
6
+ isBlockDevice(): boolean;
7
+ isCharacterDevice(): boolean;
8
+ isSymbolicLink(): boolean;
9
+ isFIFO(): boolean;
10
+ isSocket(): boolean;
11
+ }