@poveste/vendors 0.14.0 → 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 (224) 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/nostics/dist/diagnostic-wduO7saY.d.mts +295 -0
  127. package/dist/client/node_modules/nostics/dist/formatters/ansi.d.mts +15 -0
  128. package/dist/client/node_modules/nostics/dist/formatters/json.d.mts +7 -0
  129. package/dist/client/node_modules/nostics/dist/index.d.mts +51 -0
  130. package/dist/client/node_modules/nostics/dist/reporters/dev.d.mts +13 -0
  131. package/dist/client/node_modules/nostics/dist/reporters/fetch.d.mts +11 -0
  132. package/dist/client/node_modules/nostics/dist/reporters/node.d.mts +43 -0
  133. package/dist/client/node_modules/nostics/package.json +125 -0
  134. package/dist/client/node_modules/pathe/dist/index.d.mts +47 -0
  135. package/dist/client/node_modules/pathe/dist/index.d.ts +47 -0
  136. package/dist/client/node_modules/pathe/dist/utils.d.mts +32 -0
  137. package/dist/client/node_modules/pathe/dist/utils.d.ts +32 -0
  138. package/dist/client/node_modules/pathe/package.json +61 -0
  139. package/dist/client/node_modules/pathe/utils.d.ts +1 -0
  140. package/dist/client/node_modules/perfect-debounce/dist/index.d.mts +49 -0
  141. package/dist/client/node_modules/perfect-debounce/package.json +41 -0
  142. package/dist/client/node_modules/picomatch/package.json +83 -0
  143. package/dist/client/node_modules/pinia/dist/pinia.d.ts +937 -1056
  144. package/dist/client/node_modules/pinia/package.json +53 -67
  145. package/dist/client/node_modules/pkg-types/dist/index.d.mts +695 -0
  146. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/_chunks/_format.d.mts +22 -0
  147. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/_chunks/libs/js-yaml.d.mts +33 -0
  148. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/index.d.mts +7 -0
  149. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/ini.d.mts +59 -0
  150. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/json.d.mts +25 -0
  151. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/json5.d.mts +55 -0
  152. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/jsonc.d.mts +29 -0
  153. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/toml.d.mts +20 -0
  154. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/yaml.d.mts +101 -0
  155. package/dist/client/node_modules/pkg-types/node_modules/confbox/package.json +68 -0
  156. package/dist/client/node_modules/pkg-types/package.json +47 -0
  157. package/dist/client/node_modules/quansync/dist/index.d.mts +22 -0
  158. package/dist/client/node_modules/quansync/dist/index.d.ts +22 -0
  159. package/dist/client/node_modules/quansync/dist/macro.d.mts +18 -0
  160. package/dist/client/node_modules/quansync/dist/macro.d.ts +18 -0
  161. package/dist/client/node_modules/quansync/dist/types.d.mts +27 -0
  162. package/dist/client/node_modules/quansync/dist/types.d.ts +27 -0
  163. package/dist/client/node_modules/quansync/package.json +95 -0
  164. package/dist/client/node_modules/readdirp/index.d.ts +117 -0
  165. package/dist/client/node_modules/readdirp/package.json +62 -0
  166. package/dist/client/node_modules/scule/dist/index.d.mts +57 -0
  167. package/dist/client/node_modules/scule/dist/index.d.ts +57 -0
  168. package/dist/client/node_modules/scule/package.json +43 -0
  169. package/dist/client/node_modules/tinyglobby/dist/index.d.mts +148 -0
  170. package/dist/client/node_modules/tinyglobby/package.json +70 -0
  171. package/dist/client/node_modules/ufo/dist/index.d.mts +714 -0
  172. package/dist/client/node_modules/ufo/dist/index.d.ts +714 -0
  173. package/dist/client/node_modules/ufo/package.json +48 -0
  174. package/dist/client/node_modules/unplugin/dist/index.d.mts +241 -0
  175. package/dist/client/node_modules/unplugin/dist/rspack/loaders/load.d.mts +4 -0
  176. package/dist/client/node_modules/unplugin/dist/rspack/loaders/transform.d.mts +4 -0
  177. package/dist/client/node_modules/unplugin/dist/webpack/loaders/load.d.mts +4 -0
  178. package/dist/client/node_modules/unplugin/dist/webpack/loaders/transform.d.mts +4 -0
  179. package/dist/client/node_modules/unplugin/package.json +146 -0
  180. package/dist/client/node_modules/unplugin-utils/dist/index.d.ts +31 -0
  181. package/dist/client/node_modules/unplugin-utils/package.json +61 -0
  182. package/dist/client/node_modules/vue-router/dist/experimental/index.d.ts +7 -0
  183. package/dist/client/node_modules/vue-router/dist/experimental/pinia-colada.d.ts +151 -0
  184. package/dist/client/node_modules/vue-router/dist/{router-CWoNjPRp.d.mts → index-D7ja2BKs.d.ts} +2480 -1160
  185. package/dist/client/node_modules/vue-router/dist/options-CwYZKRl4.d.mts +2923 -0
  186. package/dist/client/node_modules/vue-router/dist/unplugin/esbuild.d.mts +10 -0
  187. package/dist/client/node_modules/vue-router/dist/unplugin/index.d.mts +62 -0
  188. package/dist/client/node_modules/vue-router/dist/unplugin/options.d.mts +7 -0
  189. package/dist/client/node_modules/vue-router/dist/unplugin/rolldown.d.mts +10 -0
  190. package/dist/client/node_modules/vue-router/dist/unplugin/rollup.d.mts +10 -0
  191. package/dist/client/node_modules/vue-router/dist/unplugin/types.d.mts +7 -0
  192. package/dist/client/node_modules/vue-router/dist/unplugin/vite.d.mts +10 -0
  193. package/dist/client/node_modules/vue-router/dist/unplugin/webpack.d.mts +10 -0
  194. package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +7 -0
  195. package/dist/client/node_modules/vue-router/package.json +153 -95
  196. package/dist/client/node_modules/vue-router/vue-router-auto-resolver.d.mts +22 -17
  197. package/dist/client/node_modules/vue-router/vue-router-auto-routes.d.mts +53 -0
  198. package/dist/client/node_modules/vue-router/vue-router-auto.d.ts +2 -1
  199. package/dist/client/node_modules/webpack-virtual-modules/lib/index.d.ts +15 -0
  200. package/dist/client/node_modules/webpack-virtual-modules/lib/virtual-stats.d.ts +11 -0
  201. package/dist/client/node_modules/webpack-virtual-modules/package.json +82 -0
  202. package/dist/client/vue.runtime.esm-bundler.js +1 -176
  203. package/package.json +8 -7
  204. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/api.d.ts +0 -108
  205. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/app.d.ts +0 -1
  206. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/component.d.ts +0 -78
  207. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/context.d.ts +0 -5
  208. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/hooks.d.ts +0 -180
  209. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/index.d.ts +0 -6
  210. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/util.d.ts +0 -4
  211. package/dist/client/node_modules/@vue/devtools-api/lib/esm/const.d.ts +0 -2
  212. package/dist/client/node_modules/@vue/devtools-api/lib/esm/env.d.ts +0 -15
  213. package/dist/client/node_modules/@vue/devtools-api/lib/esm/index.d.ts +0 -18
  214. package/dist/client/node_modules/@vue/devtools-api/lib/esm/plugin.d.ts +0 -47
  215. package/dist/client/node_modules/@vue/devtools-api/lib/esm/proxy.d.ts +0 -20
  216. package/dist/client/node_modules/@vue/devtools-api/lib/esm/time.d.ts +0 -2
  217. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +0 -22
  218. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
  219. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
  220. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
  221. package/dist/client/node_modules/pinia/node_modules/vue-demi/package.json +0 -47
  222. package/dist/client/node_modules/vue-router/dist/experimental/index.d.mts +0 -38
  223. package/dist/client/node_modules/vue-router/dist/vue-router.d.mts +0 -361
  224. package/dist/client/node_modules/vue-router/vue-router-auto-routes.d.ts +0 -4
@@ -1,169 +1,185 @@
1
- function getDevtoolsGlobalHook() {
2
- return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
1
+ //#region src/formatters/plain.ts
2
+ /**
3
+ * Renders a diagnostic into a multi-line, unicode-decorated string suitable
4
+ * for terminal output. The first line is `[<name>] <message>`; optional
5
+ * details (`fix`, `sources`, `docs`) follow with `├▶`/`╰▶` connectors.
6
+ */
7
+ function formatDiagnostic(diagnostic) {
8
+ const header = `[${diagnostic.name}] ${diagnostic.message}`;
9
+ const details = [];
10
+ if (diagnostic.fix) details.push(`fix: ${diagnostic.fix}`);
11
+ if (diagnostic.sources?.length) details.push(`sources: ${diagnostic.sources.join(", ")}`);
12
+ if (diagnostic.docs) details.push(`see: ${diagnostic.docs}`);
13
+ if (details.length === 0) return header;
14
+ return [header, ...details.map((detail, i) => {
15
+ return `${i < details.length - 1 ? "├▶" : "╰▶"} ${detail}`;
16
+ })].join("\n");
3
17
  }
4
- function getTarget() {
5
- // @ts-expect-error navigator and windows are not available in all environments
6
- return (typeof navigator !== 'undefined' && typeof window !== 'undefined')
7
- ? window
8
- : typeof globalThis !== 'undefined'
9
- ? globalThis
10
- : {};
18
+ //#endregion
19
+ //#region src/utils.ts
20
+ /**
21
+ * Transforms a value or a function that returns a value to a value.
22
+ *
23
+ * @param valFn either a value or a function that returns a value
24
+ * @param args arguments to pass to the function if `valFn` is a function
25
+ *
26
+ * @internal
27
+ */
28
+ function toValueWithArgs(valFn, ...args) {
29
+ return typeof valFn === "function" ? valFn(...args) : valFn;
11
30
  }
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 globalThis !== 'undefined' && ((_a = globalThis.perf_hooks) === null || _a === void 0 ? void 0 : _a.performance)) {
29
- supported = true;
30
- perf = globalThis.perf_hooks.performance;
31
- }
32
- else {
33
- supported = false;
34
- }
35
- return supported;
31
+ //#endregion
32
+ //#region src/diagnostic.ts
33
+ /**
34
+ * Creates a console reporter that renders each diagnostic with `formatter` and
35
+ * prints the result via `console[method]`. Both default sensibly (`'warn'` and
36
+ * {@link formatDiagnostic}); `method` can also be overridden per call through
37
+ * the reporter options.
38
+ */
39
+ /* @__NO_SIDE_EFFECTS__ */
40
+ function createConsoleReporter({ method: defaultMethod = "warn", formatter = formatDiagnostic } = {}) {
41
+ return (diagnostic, { method = defaultMethod } = {}) => {
42
+ console[method](formatter(diagnostic));
43
+ };
36
44
  }
37
- function now() {
38
- return isPerformanceSupported() ? perf.now() : Date.now();
45
+ const captureStackTrace = Error.captureStackTrace;
46
+ var Diagnostic = class Diagnostic extends Error {
47
+ name;
48
+ /**
49
+ * The diagnostic code, e.g. `MATH_E001`.
50
+ * Also appears as the `name` property.
51
+ */
52
+ code;
53
+ /**
54
+ * URL to extended documentation for this diagnostic code.
55
+ * Auto-generated from {@link DefineDiagnosticsOptions.docsBase}.
56
+ */
57
+ docs;
58
+ /**
59
+ * Optional actionable instructions on how to resolve the problem.
60
+ */
61
+ fix;
62
+ /**
63
+ * Locations in user code that contributed to this diagnostic, in
64
+ * `file:line:column` format. Relevant when the stack trace doesn't reflect
65
+ * the user's source (e.g. compilers, bundlers), otherwise redundant with the
66
+ * stack and should be omitted.
67
+ */
68
+ sources;
69
+ /**
70
+ * Alias for {@link Error.message}: the reason this diagnostic was raised.
71
+ */
72
+ get why() {
73
+ return this.message;
74
+ }
75
+ /**
76
+ * @param init structured initializer; `why` is required
77
+ * @param captureFrom V8 stack-cutoff frame. Defaults to {@link Diagnostic}
78
+ * so the top of the trace is the `new Diagnostic(...)` call site.
79
+ * `defineDiagnostics` passes its action method to strip its own frames too.
80
+ * Ignored on engines without `Error.captureStackTrace`.
81
+ */
82
+ constructor(init, captureFrom = Diagnostic) {
83
+ super(init.why, { cause: init.cause });
84
+ this.code = this.name = init.code;
85
+ this.fix = init.fix;
86
+ this.docs = init.docs;
87
+ this.sources = init.sources;
88
+ captureStackTrace?.(this, captureFrom);
89
+ }
90
+ /**
91
+ * Converts the diagnostic into a serializable structured object.
92
+ */
93
+ toJSON() {
94
+ return {
95
+ name: this.name,
96
+ why: this.why,
97
+ fix: this.fix,
98
+ docs: this.docs,
99
+ sources: this.sources,
100
+ cause: this.cause,
101
+ stack: this.stack
102
+ };
103
+ }
104
+ };
105
+ /**
106
+ * Resolves the docs URL for a code from a `docsBase` (string template or
107
+ * resolver function). Shared by {@link defineDiagnostics} and
108
+ * {@link defineProdDiagnostics}. Per-code `docs` overrides are handled by the
109
+ * caller; this only covers the `docsBase`-derived case.
110
+ *
111
+ * @internal
112
+ */
113
+ function deriveDocs(docsBase, code) {
114
+ return typeof docsBase === "string" ? `${docsBase}/${code.toLowerCase()}` : docsBase?.(code);
39
115
  }
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
- }
116
+ /**
117
+ * Creates a typed diagnostics object from a set of code definitions. Each
118
+ * code becomes a callable {@link DiagnosticHandle}: invoke to report, or
119
+ * `throw` the result to raise. No `new` required, no proxy.
120
+ */
121
+ /* @__NO_SIDE_EFFECTS__ */
122
+ function defineDiagnostics(options) {
123
+ const reporters = options.reporters ?? [];
124
+ const result = {};
125
+ const { docsBase } = options;
126
+ for (const code of Object.keys(options.codes)) {
127
+ const def = options.codes[code];
128
+ const docs = def.docs === false ? void 0 : def.docs || deriveDocs(docsBase, code);
129
+ const handle = (params = {}, reporterOptions = {}) => {
130
+ const diagnostic = new Diagnostic({
131
+ code,
132
+ why: toValueWithArgs(def.why, params),
133
+ fix: toValueWithArgs(def.fix, params),
134
+ docs,
135
+ cause: params.cause,
136
+ sources: params.sources
137
+ }, handle);
138
+ for (const reporter of reporters) reporter(diagnostic, reporterOptions);
139
+ return diagnostic;
140
+ };
141
+ result[code] = handle;
142
+ }
143
+ return result;
145
144
  }
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
- }
145
+ //#endregion
146
+ //#region src/prod-diagnostics.ts
147
+ /**
148
+ * Production counterpart to {@link defineDiagnostics}. Returns a `Proxy` that
149
+ * builds a minimal {@link Diagnostic} for any accessed code: the code becomes
150
+ * the instance `name`, `docs` is derived from `docsBase`, and `why` points to
151
+ * the docs URL when one exists (empty otherwise, so the thrown header is just
152
+ * the code). It carries no catalog text, so it stays tiny in a bundle.
153
+ *
154
+ * The strip plugin (`@nostics/unplugin`) can rewrite a `defineDiagnostics()`
155
+ * call into a `process.env.NODE_ENV === 'production'` ternary that selects this
156
+ * factory in production, dropping every `why`/`fix` string from the bundle.
157
+ *
158
+ * @example
159
+ * ```ts
160
+ * const diagnostics = defineProdDiagnostics({ docsBase: 'https://docs.example.com' })
161
+ * throw diagnostics.NUXT_B2011() // NUXT_B2011: https://docs.example.com/nuxt_b2011
162
+ * ```
163
+ */
164
+ /* @__NO_SIDE_EFFECTS__ */
165
+ function defineProdDiagnostics(options = {}) {
166
+ const { docsBase, reporters = [] } = options;
167
+ return new Proxy({}, { get(_target, code) {
168
+ if (typeof code !== "string") return void 0;
169
+ const handle = (params = {}, reporterOptions = {}) => {
170
+ const docs = deriveDocs(docsBase, code);
171
+ const diagnostic = new Diagnostic({
172
+ code,
173
+ why: docs ?? "",
174
+ docs,
175
+ cause: params.cause,
176
+ sources: params.sources
177
+ }, handle);
178
+ for (const reporter of reporters) reporter(diagnostic, reporterOptions);
179
+ return diagnostic;
180
+ };
181
+ return handle;
182
+ } });
167
183
  }
168
184
 
169
- export { setupDevtoolsPlugin as s };
185
+ export { createConsoleReporter, defineDiagnostics };
@@ -1,6 +1,4 @@
1
- import type { ComponentOptionsMixin } from 'vue';
2
- import { ComponentProvideOptions } from 'vue';
3
- import type { DefineComponent } from 'vue';
1
+ import { DefineSetupFnComponent } from 'vue';
4
2
  import { IconifyIcon } from '@iconify/types';
5
3
  import { IconifyJSON } from '@iconify/types';
6
4
  import { IconifyTransformations } from '@iconify/types';
@@ -26,13 +24,6 @@ export declare function addIcon(name: string, data: IconifyIcon | null): boolean
26
24
  */
27
25
  export declare const _api: IconifyAPIInternalFunctions;
28
26
 
29
- /**
30
- * Storage types
31
- *
32
- * @deprecated This type is not used anymore
33
- */
34
- declare type BrowserStorageType = 'local' | 'session';
35
-
36
27
  /**
37
28
  * Get SVG attributes and content from icon + customisations
38
29
  *
@@ -55,18 +46,9 @@ export declare function calculateSize(size: number, ratio: number, precision?: n
55
46
  export declare function calculateSize(size: string | number, ratio: number, precision?: number): string | number;
56
47
 
57
48
  /**
58
- * Disable cache
59
- *
60
- * @deprecated No longer used
61
- */
62
- export declare function disableCache(storage: IconifyBrowserCacheType): void;
63
-
64
- /**
65
- * Enable cache
66
- *
67
- * @deprecated No longer used
49
+ * Clear ID cache
68
50
  */
69
- export declare function enableCache(storage: IconifyBrowserCacheType): void;
51
+ export declare function clearIDCache(): void;
70
52
 
71
53
  /**
72
54
  * Signature for getAPIConfig
@@ -78,7 +60,10 @@ export declare type GetAPIConfig = (provider: string) => IconifyAPIConfig | unde
78
60
  */
79
61
  export declare function getIcon(name: string): Required<IconifyIcon> | null | undefined;
80
62
 
81
- export declare const Icon: DefineComponent<IconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
63
+ /**
64
+ * Component
65
+ */
66
+ export declare const Icon: DefineSetupFnComponent<IconProps, {}, {}, IconProps & {}, PublicProps>;
82
67
 
83
68
  /**
84
69
  * API config
@@ -178,28 +163,12 @@ export declare type IconifyAPIQueryParams = IconifyAPIIconsQueryParams | Iconify
178
163
 
179
164
  export declare type IconifyAPISendQuery = (host: string, params: IconifyAPIQueryParams, callback: QueryModuleResponse) => void;
180
165
 
181
- /**
182
- * Interface for exported functions
183
- *
184
- * @deprecated This type is not used anymore
185
- */
186
- export declare interface IconifyBrowserCacheFunctions {
187
- enableCache: (storage: IconifyBrowserCacheType) => void;
188
- disableCache: (storage: IconifyBrowserCacheType) => void;
189
- }
190
-
191
- /**
192
- * Cache types
193
- *
194
- * @deprecated This type is not used anymore
195
- */
196
- export declare type IconifyBrowserCacheType = BrowserStorageType | 'all';
197
-
198
166
  /**
199
167
  * Interface for exported builder functions
200
168
  */
201
169
  export declare interface IconifyBuilderFunctions {
202
- replaceIDs?: (body: string, prefix?: string | (() => string)) => string;
170
+ replaceIDs?: (body: string) => string;
171
+ clearIDCache?: () => void;
203
172
  calculateSize: (size: string | number, ratio: number, precision?: number) => string | number;
204
173
  buildIcon: (icon: IconifyIcon, customisations?: IconifyIconCustomisations_2) => IconifyIconBuildResult;
205
174
  }
@@ -220,6 +189,7 @@ export declare type IconifyCustomIconsLoader = (icons: string[], prefix: string,
220
189
  declare interface IconifyElementProps {
221
190
  id?: string;
222
191
  style?: unknown;
192
+ title?: string;
223
193
  }
224
194
 
225
195
  export { IconifyIcon }
@@ -243,18 +213,18 @@ export declare interface IconifyIconBuildResult {
243
213
  export declare type IconifyIconCustomisations = IconifyIconCustomisations_2 & {
244
214
  rotate?: string | number;
245
215
  inline?: boolean;
216
+ ariaHidden?: boolean;
246
217
  };
247
218
 
248
219
  /**
249
220
  * Icon customisations
250
221
  */
251
- declare interface IconifyIconCustomisations_2 extends IconifyTransformations, IconifyIconSizeCustomisations {
252
- }
222
+ declare interface IconifyIconCustomisations_2 extends IconifyTransformations, IconifyIconSizeCustomisations {}
253
223
 
254
224
  /**
255
225
  * Customise callback
256
226
  */
257
- declare type IconifyIconCustomiseCallback = (content: string, name: string, prefix: string, provider: string) => string;
227
+ export declare type IconifyIconCustomiseCallback = (content: string, name: string, prefix: string, provider: string) => string;
258
228
 
259
229
  /**
260
230
  * Function to abort loading (usually just removes callback because loading is already in progress)
@@ -277,11 +247,6 @@ export declare interface IconifyIconName {
277
247
  readonly name: string;
278
248
  }
279
249
 
280
- /**
281
- * Callback for when icon has been loaded (only triggered for icons loaded from API)
282
- */
283
- export declare type IconifyIconOnLoad = (name: string) => void;
284
-
285
250
  /**
286
251
  * Icon properties
287
252
  */
@@ -290,6 +255,8 @@ export declare interface IconifyIconProps extends IconifyIconCustomisations {
290
255
  mode?: IconifyRenderMode;
291
256
  color?: string;
292
257
  flip?: string;
258
+ horizontalFlip?: boolean;
259
+ verticalFlip?: boolean;
293
260
  }
294
261
 
295
262
  /**
@@ -330,12 +297,6 @@ export declare interface IconifyStorageFunctions {
330
297
  * Check if icon data is available
331
298
  */
332
299
  iconLoaded: (name: string) => boolean;
333
- /**
334
- * Older, badly named, version of iconLoaded()
335
- *
336
- * @deprecated
337
- */
338
- iconExists: (name: string) => boolean;
339
300
  /**
340
301
  * Get icon data with all properties
341
302
  *
@@ -362,9 +323,7 @@ export declare interface IconifyStorageFunctions {
362
323
  /**
363
324
  * Check if icon data is available
364
325
  */
365
- declare function iconLoaded(name: string): boolean;
366
- export { iconLoaded as iconExists }
367
- export { iconLoaded }
326
+ export declare function iconLoaded(name: string): boolean;
368
327
 
369
328
  /**
370
329
  * Mix of icon properties and HTMLElement properties
@@ -377,7 +336,6 @@ export declare interface IconProps extends IconifyElementProps, IconifyIconProps
377
336
  * Note this might hydration mismatches if the icon data is not handled correctly, use with caution.
378
337
  */
379
338
  ssr?: boolean;
380
- onLoad?: IconifyIconOnLoad;
381
339
  customise?: IconifyIconCustomiseCallback;
382
340
  }
383
341
 
@@ -439,23 +397,10 @@ declare interface RedundancyConfig {
439
397
  */
440
398
  declare type RedundancyResource = string;
441
399
 
442
- /**
443
- * IDs usage:
444
- *
445
- * id="{id}"
446
- * xlink:href="#{id}"
447
- * url(#{id})
448
- *
449
- * From SVG animations:
450
- *
451
- * begin="0;{id}.end"
452
- * begin="{id}.end"
453
- * begin="{id}.click"
454
- */
455
400
  /**
456
401
  * Replace IDs in SVG output with unique IDs
457
402
  */
458
- export declare function replaceIDs(body: string, prefix?: string | ((id: string) => string)): string;
403
+ export declare function replaceIDs(body: string): string;
459
404
 
460
405
  /**
461
406
  * Set custom loader for one icon
@@ -1,6 +1,4 @@
1
- import type { ComponentOptionsMixin } from 'vue';
2
- import { ComponentProvideOptions } from 'vue';
3
- import type { DefineComponent } from 'vue';
1
+ import { DefineSetupFnComponent } from 'vue';
4
2
  import type { IconifyIcon } from '@iconify/types';
5
3
  import type { IconifyJSON } from '@iconify/types';
6
4
  import { IconifyTransformations } from '@iconify/types';
@@ -25,7 +23,7 @@ export declare function addIcon(name: string, data: IconifyIcon): void;
25
23
  /**
26
24
  * Component
27
25
  */
28
- export declare const Icon: DefineComponent<IconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
26
+ export declare const Icon: DefineSetupFnComponent<IconProps, {}, {}, IconProps & {}, PublicProps>;
29
27
 
30
28
  /**
31
29
  * Properties for element that are mentioned in render.ts
@@ -33,6 +31,7 @@ export declare const Icon: DefineComponent<IconProps, {}, {}, {}, {}, ComponentO
33
31
  declare interface IconifyElementProps {
34
32
  id?: string;
35
33
  style?: unknown;
34
+ title?: string;
36
35
  }
37
36
 
38
37
  export { IconifyIcon }
@@ -43,24 +42,19 @@ export { IconifyIcon }
43
42
  export declare type IconifyIconCustomisations = IconifyIconCustomisations_2 & {
44
43
  rotate?: string | number;
45
44
  inline?: boolean;
45
+ ariaHidden?: boolean;
46
46
  };
47
47
 
48
48
  /**
49
49
  * Icon customisations
50
50
  */
51
- declare interface IconifyIconCustomisations_2 extends IconifyTransformations, IconifyIconSizeCustomisations {
52
- }
51
+ declare interface IconifyIconCustomisations_2 extends IconifyTransformations, IconifyIconSizeCustomisations {}
53
52
 
54
53
  /**
55
54
  * Customise callback
56
55
  */
57
56
  declare type IconifyIconCustomiseCallback = (content: string, name: string, prefix: string, provider: string) => string;
58
57
 
59
- /**
60
- * Callback for when icon has been loaded (only triggered for icons loaded from API)
61
- */
62
- declare type IconifyIconOnLoad = (name: string) => void;
63
-
64
58
  /**
65
59
  * Icon properties
66
60
  */
@@ -69,6 +63,8 @@ export declare interface IconifyIconProps extends IconifyIconCustomisations {
69
63
  mode?: IconifyRenderMode;
70
64
  color?: string;
71
65
  flip?: string;
66
+ horizontalFlip?: boolean;
67
+ verticalFlip?: boolean;
72
68
  }
73
69
 
74
70
  /**
@@ -107,7 +103,6 @@ export declare interface IconProps extends IconifyElementProps, IconifyIconProps
107
103
  * Note this might hydration mismatches if the icon data is not handled correctly, use with caution.
108
104
  */
109
105
  ssr?: boolean;
110
- onLoad?: IconifyIconOnLoad;
111
106
  customise?: IconifyIconCustomiseCallback;
112
107
  }
113
108
 
@@ -4,11 +4,11 @@
4
4
  "main": "../dist/offline.js",
5
5
  "types": "../dist/offline.d.ts",
6
6
  "exports": {
7
- "./*": "./*",
8
7
  ".": {
9
8
  "import": "../dist/offline.mjs",
10
9
  "types": "../dist/offline.d.ts",
11
10
  "default": "../dist/offline.js"
12
- }
11
+ },
12
+ "./*": "./*"
13
13
  }
14
14
  }
@@ -2,7 +2,7 @@
2
2
  "name": "@iconify/vue",
3
3
  "description": "Iconify icon component for Vue 3.",
4
4
  "author": "Vjacheslav Trushkin",
5
- "version": "4.3.0",
5
+ "version": "5.0.1",
6
6
  "license": "MIT",
7
7
  "bugs": "https://github.com/iconify/iconify/issues",
8
8
  "homepage": "https://iconify.design/",
@@ -16,7 +16,6 @@
16
16
  "module": "dist/iconify.mjs",
17
17
  "types": "dist/iconify.d.ts",
18
18
  "exports": {
19
- "./*": "./*",
20
19
  ".": {
21
20
  "import": "./dist/iconify.mjs",
22
21
  "types": "./dist/iconify.d.ts",
@@ -37,22 +36,20 @@
37
36
  "@iconify/types": "^2.0.0"
38
37
  },
39
38
  "devDependencies": {
40
- "@babel/preset-env": "^7.26.0",
41
- "@microsoft/api-extractor": "^7.48.1",
42
- "@rollup/plugin-node-resolve": "^15.3.1",
43
- "@types/jest": "^29.5.14",
44
- "@vitejs/plugin-vue": "^5.2.1",
45
- "@vue/test-utils": "^2.4.6",
46
- "jsdom": "^25.0.1",
47
- "rollup": "^4.29.1",
48
- "typescript": "^5.7.2",
49
- "vitest": "^2.1.8",
50
- "vue": "^3.5.13",
51
- "@iconify/core": "^3.1.0",
52
- "@iconify/utils": "^2.2.1"
39
+ "@babel/preset-env": "^7.29.2",
40
+ "@microsoft/api-extractor": "^7.58.7",
41
+ "@rollup/plugin-node-resolve": "^16.0.3",
42
+ "@types/jest": "^30.0.0",
43
+ "@vitejs/plugin-vue": "^6.0.6",
44
+ "@vue/test-utils": "^2.4.8",
45
+ "jsdom": "^29.0.2",
46
+ "rollup": "^4.60.2",
47
+ "vue": "^3.5.33",
48
+ "@iconify/utils": "^3.1.1",
49
+ "@iconify/core": "^4.1.0"
53
50
  },
54
51
  "peerDependencies": {
55
- "vue": ">=3"
52
+ "vue": ">=3.0.0"
56
53
  },
57
54
  "scripts": {
58
55
  "build": "node build",