vite-plugin-vue-devtools 7.1.3 → 7.2.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 (56) hide show
  1. package/client/assets/index-CDBAuZCi.js +1104 -0
  2. package/client/assets/index-Cka_f-Nd.css +1 -0
  3. package/client/assets/shellscript-BZfs-ost.js +1 -0
  4. package/client/assets/shellscript-C_gmBC5P-BZfs-ost.js +1 -0
  5. package/client/assets/unocss-runtime-C2aH1Jer.js +2 -0
  6. package/client/assets/{vitesse-dark-CQ1WWl9n.js → vitesse-dark-Bxkoe-BC.js} +1 -1
  7. package/client/assets/{vitesse-dark-DX6gc1PC-CQ1WWl9n.js → vitesse-dark-CkUHDarG-Bxkoe-BC.js} +1 -1
  8. package/client/assets/{vitesse-light-BQX_J3vG-DaCkt_J7.js → vitesse-light-Br6ll-O0.js} +1 -1
  9. package/client/assets/{vitesse-light-DaCkt_J7.js → vitesse-light-K81-viQS-Br6ll-O0.js} +1 -1
  10. package/client/assets/{vue-CP4EDFt0.js → vue-CMvPPucx.js} +11 -11
  11. package/client/assets/vue-apis-9Qvy4Ky5.js +1 -0
  12. package/client/assets/{vue-html-9lCBN0KK.js → vue-html-DxgvOoVJ.js} +1 -1
  13. package/client/assets/{vue-html-D0BKftsE-DYUd3QbO.js → vue-html-PWeNQaIl-ChlIBMe8.js} +1 -1
  14. package/client/assets/{vue-CSiwUDF5-BenY5O_m.js → vue-yccoFuXf-q8nGVquG.js} +11 -11
  15. package/client/index.html +2 -2
  16. package/dist/vite.cjs +9 -6
  17. package/dist/vite.d.cts +14 -8
  18. package/dist/vite.d.mts +14 -8
  19. package/dist/vite.d.ts +14 -8
  20. package/dist/vite.mjs +9 -6
  21. package/package.json +6 -6
  22. package/src/overlay/devtools-overlay.js +4 -4
  23. package/client/assets/index-Bk3Utm9b.css +0 -1
  24. package/client/assets/index-YDvBrsd9.js +0 -1104
  25. package/client/assets/shellscript-D4k753MY.js +0 -1
  26. package/client/assets/shellscript-DQ1J75ow-D4k753MY.js +0 -1
  27. package/client/assets/unocss-runtime-pCzu9suo.js +0 -2
  28. package/client/assets/vue-apis-buOuct3A.js +0 -1
  29. package/client/css-CAzixsid-CEpuX1HY.js +0 -511
  30. package/client/css-CAzixsid.js +0 -511
  31. package/client/devtools-panel.css +0 -1
  32. package/client/devtools-panel.js +0 -91687
  33. package/client/diff-Bo5iyMQ2-Bo5iyMQ2.js +0 -7
  34. package/client/diff-Bo5iyMQ2.js +0 -7
  35. package/client/html-BZB5lEhh-B74zAnWx.js +0 -84
  36. package/client/html-BZB5lEhh.js +0 -84
  37. package/client/javascript-DqVBMyXe-DqVBMyXe.js +0 -705
  38. package/client/javascript-DqVBMyXe.js +0 -705
  39. package/client/json-B12k4-6m-B12k4-6m.js +0 -31
  40. package/client/json-B12k4-6m.js +0 -31
  41. package/client/shellscript-DQ1J75ow-DQ1J75ow.js +0 -7
  42. package/client/shellscript-DQ1J75ow.js +0 -7
  43. package/client/typescript-AEg-ehu7-AEg-ehu7.js +0 -672
  44. package/client/typescript-AEg-ehu7.js +0 -672
  45. package/client/unocss-runtime-DnMV7EO2.js +0 -2031
  46. package/client/vitesse-dark-DX6gc1PC-DX6gc1PC.js +0 -683
  47. package/client/vitesse-dark-DX6gc1PC.js +0 -683
  48. package/client/vitesse-light-BQX_J3vG-BQX_J3vG.js +0 -681
  49. package/client/vitesse-light-BQX_J3vG.js +0 -681
  50. package/client/vue-CSiwUDF5-BrneCaTr.js +0 -2124
  51. package/client/vue-CSiwUDF5.js +0 -2124
  52. package/client/vue-apis-CBD-3_AQ.js +0 -1127
  53. package/client/vue-html-D0BKftsE-Br4pXe22.js +0 -11
  54. package/client/vue-html-D0BKftsE.js +0 -11
  55. package/client/yaml-PGla5xPP-HJurM_FJ.js +0 -206
  56. package/client/yaml-PGla5xPP.js +0 -206
package/client/index.html CHANGED
@@ -6,8 +6,8 @@
6
6
  <link rel="icon" href="./logo.svg" type="image/svg+xml" />
7
7
  <title>Vue DevTools Client</title>
8
8
  <script src="./color-scheme.js"></script>
9
- <script type="module" crossorigin src="./assets/index-YDvBrsd9.js"></script>
10
- <link rel="stylesheet" crossorigin href="./assets/index-Bk3Utm9b.css">
9
+ <script type="module" crossorigin src="./assets/index-CDBAuZCi.js"></script>
10
+ <link rel="stylesheet" crossorigin href="./assets/index-Cka_f-Nd.css">
11
11
  </head>
12
12
  <body>
13
13
  <div id="app"></div>
package/dist/vite.cjs CHANGED
@@ -7728,15 +7728,15 @@ function imageMeta(input) {
7728
7728
  }
7729
7729
 
7730
7730
  function guessType(path) {
7731
- if (/\.(png|jpe?g|jxl|gif|svg|webp|avif|ico|bmp|tiff?)$/i.test(path))
7731
+ if (/\.(?:png|jpe?g|jxl|gif|svg|webp|avif|ico|bmp|tiff?)$/i.test(path))
7732
7732
  return "image";
7733
- if (/\.(mp4|webm|ogv|mov|avi|flv|wmv|mpg|mpeg|mkv|3gp|3g2|ts|mts|m2ts|vob|ogm|ogx|rm|rmvb|asf|amv|divx|m4v|svi|viv|f4v|f4p|f4a|f4b)$/i.test(path))
7733
+ if (/\.(?:mp4|webm|ogv|mov|avi|flv|wmv|mpg|mpeg|mkv|3gp|3g2|ts|mts|m2ts|vob|ogm|ogx|rm|rmvb|asf|amv|divx|m4v|svi|viv|f4v|f4p|f4a|f4b)$/i.test(path))
7734
7734
  return "video";
7735
- if (/\.(mp3|wav|ogg|flac|aac|wma|alac|ape|ac3|dts|tta|opus|amr|aiff|au|mid|midi|ra|rm|wv|weba|dss|spx|vox|tak|dsf|dff|dsd|cda)$/i.test(path))
7735
+ if (/\.(?:mp3|wav|ogg|flac|aac|wma|alac|ape|ac3|dts|tta|opus|amr|aiff|au|mid|midi|ra|rm|wv|weba|dss|spx|vox|tak|dsf|dff|dsd|cda)$/i.test(path))
7736
7736
  return "audio";
7737
- if (/\.(woff2?|eot|ttf|otf|ttc|pfa|pfb|pfm|afm)/i.test(path))
7737
+ if (/\.(?:woff2?|eot|ttf|otf|ttc|pfa|pfb|pfm|afm)/i.test(path))
7738
7738
  return "font";
7739
- if (/\.(json[5c]?|te?xt|[mc]?[jt]sx?|md[cx]?|markdown|ya?ml|toml)/i.test(path))
7739
+ if (/\.(?:json[5c]?|te?xt|[mc]?[jt]sx?|md[cx]?|markdown|ya?ml|toml)/i.test(path))
7740
7740
  return "text";
7741
7741
  if (/\.wasm/i.test(path))
7742
7742
  return "wasm";
@@ -7855,7 +7855,8 @@ function normalizeComboKeyPrint(toggleComboKey) {
7855
7855
  }
7856
7856
  const defaultOptions = {
7857
7857
  appendTo: "",
7858
- componentInspector: true
7858
+ componentInspector: true,
7859
+ launchEditor: "code"
7859
7860
  };
7860
7861
  function mergeOptions(options) {
7861
7862
  return Object.assign({}, defaultOptions, options);
@@ -7946,6 +7947,7 @@ ${code}`;
7946
7947
  pluginOptions.componentInspector && {
7947
7948
  tag: "script",
7948
7949
  injectTo: "head-prepend",
7950
+ launchEditor: pluginOptions.launchEditor,
7949
7951
  attrs: {
7950
7952
  type: "module",
7951
7953
  src: `${config.base || "/"}@id/virtual:vue-inspector-path:load.js`
@@ -7962,6 +7964,7 @@ ${code}`;
7962
7964
  pluginOptions.componentInspector && VueInspector__default({
7963
7965
  toggleComboKey: "",
7964
7966
  toggleButtonVisibility: "never",
7967
+ launchEditor: pluginOptions.launchEditor,
7965
7968
  ...typeof pluginOptions.componentInspector === "boolean" ? {} : pluginOptions.componentInspector,
7966
7969
  appendTo: pluginOptions.appendTo || "manually"
7967
7970
  }),
package/dist/vite.d.cts CHANGED
@@ -25,24 +25,30 @@ interface VitePluginVueDevToolsOptions {
25
25
  */
26
26
  appendTo?: string | RegExp;
27
27
  /**
28
- * Customize openInEditor host (e.g. http://localhost:3000)
28
+ * Enable vue component inspector
29
+ *
30
+ * @default true
31
+ */
32
+ componentInspector?: boolean | VitePluginInspectorOptions;
33
+ /**
34
+ * Target editor when open in editor (v7.2.0+)
35
+ *
36
+ * @default code (Visual Studio Code)
37
+ */
38
+ launchEditor?: 'appcode' | 'atom' | 'atom-beta' | 'brackets' | 'clion' | 'code' | 'code-insiders' | 'codium' | 'emacs' | 'idea' | 'notepad++' | 'pycharm' | 'phpstorm' | 'rubymine' | 'sublime' | 'vim' | 'visualstudio' | 'webstorm';
39
+ /**
40
+ * Customize openInEditor host
29
41
  * @default false
30
42
  * @deprecated This option is deprecated and removed in 7.1.0. The plugin now automatically detects the correct host.
31
43
  */
32
44
  openInEditorHost?: string | false;
33
45
  /**
34
- * DevTools client host (e.g. http://localhost:3000)
46
+ * DevTools client host
35
47
  * useful for projects that use a reverse proxy
36
48
  * @default false
37
49
  * @deprecated This option is deprecated and removed in 7.1.0. The plugin now automatically detects the correct host.
38
50
  */
39
51
  clientHost?: string | false;
40
- /**
41
- * Enable Vue Component Inspector
42
- *
43
- * @default true
44
- */
45
- componentInspector?: boolean | VitePluginInspectorOptions;
46
52
  }
47
53
  declare function VitePluginVueDevTools(options?: VitePluginVueDevToolsOptions): PluginOption;
48
54
 
package/dist/vite.d.mts CHANGED
@@ -25,24 +25,30 @@ interface VitePluginVueDevToolsOptions {
25
25
  */
26
26
  appendTo?: string | RegExp;
27
27
  /**
28
- * Customize openInEditor host (e.g. http://localhost:3000)
28
+ * Enable vue component inspector
29
+ *
30
+ * @default true
31
+ */
32
+ componentInspector?: boolean | VitePluginInspectorOptions;
33
+ /**
34
+ * Target editor when open in editor (v7.2.0+)
35
+ *
36
+ * @default code (Visual Studio Code)
37
+ */
38
+ launchEditor?: 'appcode' | 'atom' | 'atom-beta' | 'brackets' | 'clion' | 'code' | 'code-insiders' | 'codium' | 'emacs' | 'idea' | 'notepad++' | 'pycharm' | 'phpstorm' | 'rubymine' | 'sublime' | 'vim' | 'visualstudio' | 'webstorm';
39
+ /**
40
+ * Customize openInEditor host
29
41
  * @default false
30
42
  * @deprecated This option is deprecated and removed in 7.1.0. The plugin now automatically detects the correct host.
31
43
  */
32
44
  openInEditorHost?: string | false;
33
45
  /**
34
- * DevTools client host (e.g. http://localhost:3000)
46
+ * DevTools client host
35
47
  * useful for projects that use a reverse proxy
36
48
  * @default false
37
49
  * @deprecated This option is deprecated and removed in 7.1.0. The plugin now automatically detects the correct host.
38
50
  */
39
51
  clientHost?: string | false;
40
- /**
41
- * Enable Vue Component Inspector
42
- *
43
- * @default true
44
- */
45
- componentInspector?: boolean | VitePluginInspectorOptions;
46
52
  }
47
53
  declare function VitePluginVueDevTools(options?: VitePluginVueDevToolsOptions): PluginOption;
48
54
 
package/dist/vite.d.ts CHANGED
@@ -25,24 +25,30 @@ interface VitePluginVueDevToolsOptions {
25
25
  */
26
26
  appendTo?: string | RegExp;
27
27
  /**
28
- * Customize openInEditor host (e.g. http://localhost:3000)
28
+ * Enable vue component inspector
29
+ *
30
+ * @default true
31
+ */
32
+ componentInspector?: boolean | VitePluginInspectorOptions;
33
+ /**
34
+ * Target editor when open in editor (v7.2.0+)
35
+ *
36
+ * @default code (Visual Studio Code)
37
+ */
38
+ launchEditor?: 'appcode' | 'atom' | 'atom-beta' | 'brackets' | 'clion' | 'code' | 'code-insiders' | 'codium' | 'emacs' | 'idea' | 'notepad++' | 'pycharm' | 'phpstorm' | 'rubymine' | 'sublime' | 'vim' | 'visualstudio' | 'webstorm';
39
+ /**
40
+ * Customize openInEditor host
29
41
  * @default false
30
42
  * @deprecated This option is deprecated and removed in 7.1.0. The plugin now automatically detects the correct host.
31
43
  */
32
44
  openInEditorHost?: string | false;
33
45
  /**
34
- * DevTools client host (e.g. http://localhost:3000)
46
+ * DevTools client host
35
47
  * useful for projects that use a reverse proxy
36
48
  * @default false
37
49
  * @deprecated This option is deprecated and removed in 7.1.0. The plugin now automatically detects the correct host.
38
50
  */
39
51
  clientHost?: string | false;
40
- /**
41
- * Enable Vue Component Inspector
42
- *
43
- * @default true
44
- */
45
- componentInspector?: boolean | VitePluginInspectorOptions;
46
52
  }
47
53
  declare function VitePluginVueDevTools(options?: VitePluginVueDevToolsOptions): PluginOption;
48
54
 
package/dist/vite.mjs CHANGED
@@ -7712,15 +7712,15 @@ function imageMeta(input) {
7712
7712
  }
7713
7713
 
7714
7714
  function guessType(path) {
7715
- if (/\.(png|jpe?g|jxl|gif|svg|webp|avif|ico|bmp|tiff?)$/i.test(path))
7715
+ if (/\.(?:png|jpe?g|jxl|gif|svg|webp|avif|ico|bmp|tiff?)$/i.test(path))
7716
7716
  return "image";
7717
- if (/\.(mp4|webm|ogv|mov|avi|flv|wmv|mpg|mpeg|mkv|3gp|3g2|ts|mts|m2ts|vob|ogm|ogx|rm|rmvb|asf|amv|divx|m4v|svi|viv|f4v|f4p|f4a|f4b)$/i.test(path))
7717
+ if (/\.(?:mp4|webm|ogv|mov|avi|flv|wmv|mpg|mpeg|mkv|3gp|3g2|ts|mts|m2ts|vob|ogm|ogx|rm|rmvb|asf|amv|divx|m4v|svi|viv|f4v|f4p|f4a|f4b)$/i.test(path))
7718
7718
  return "video";
7719
- if (/\.(mp3|wav|ogg|flac|aac|wma|alac|ape|ac3|dts|tta|opus|amr|aiff|au|mid|midi|ra|rm|wv|weba|dss|spx|vox|tak|dsf|dff|dsd|cda)$/i.test(path))
7719
+ if (/\.(?:mp3|wav|ogg|flac|aac|wma|alac|ape|ac3|dts|tta|opus|amr|aiff|au|mid|midi|ra|rm|wv|weba|dss|spx|vox|tak|dsf|dff|dsd|cda)$/i.test(path))
7720
7720
  return "audio";
7721
- if (/\.(woff2?|eot|ttf|otf|ttc|pfa|pfb|pfm|afm)/i.test(path))
7721
+ if (/\.(?:woff2?|eot|ttf|otf|ttc|pfa|pfb|pfm|afm)/i.test(path))
7722
7722
  return "font";
7723
- if (/\.(json[5c]?|te?xt|[mc]?[jt]sx?|md[cx]?|markdown|ya?ml|toml)/i.test(path))
7723
+ if (/\.(?:json[5c]?|te?xt|[mc]?[jt]sx?|md[cx]?|markdown|ya?ml|toml)/i.test(path))
7724
7724
  return "text";
7725
7725
  if (/\.wasm/i.test(path))
7726
7726
  return "wasm";
@@ -7839,7 +7839,8 @@ function normalizeComboKeyPrint(toggleComboKey) {
7839
7839
  }
7840
7840
  const defaultOptions = {
7841
7841
  appendTo: "",
7842
- componentInspector: true
7842
+ componentInspector: true,
7843
+ launchEditor: "code"
7843
7844
  };
7844
7845
  function mergeOptions(options) {
7845
7846
  return Object.assign({}, defaultOptions, options);
@@ -7930,6 +7931,7 @@ ${code}`;
7930
7931
  pluginOptions.componentInspector && {
7931
7932
  tag: "script",
7932
7933
  injectTo: "head-prepend",
7934
+ launchEditor: pluginOptions.launchEditor,
7933
7935
  attrs: {
7934
7936
  type: "module",
7935
7937
  src: `${config.base || "/"}@id/virtual:vue-inspector-path:load.js`
@@ -7946,6 +7948,7 @@ ${code}`;
7946
7948
  pluginOptions.componentInspector && VueInspector({
7947
7949
  toggleComboKey: "",
7948
7950
  toggleButtonVisibility: "never",
7951
+ launchEditor: pluginOptions.launchEditor,
7949
7952
  ...typeof pluginOptions.componentInspector === "boolean" ? {} : pluginOptions.componentInspector,
7950
7953
  appendTo: pluginOptions.appendTo || "manually"
7951
7954
  }),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vite-plugin-vue-devtools",
3
3
  "type": "module",
4
- "version": "7.1.3",
4
+ "version": "7.2.0",
5
5
  "description": "A vite plugin for Vue DevTools",
6
6
  "author": "webfansplz",
7
7
  "license": "MIT",
@@ -49,13 +49,13 @@
49
49
  "execa": "^8.0.1",
50
50
  "sirv": "^2.0.4",
51
51
  "vite-plugin-inspect": "^0.8.4",
52
- "vite-plugin-vue-inspector": "^5.0.1",
53
- "@vue/devtools-shared": "^7.1.3",
54
- "@vue/devtools-core": "^7.1.3",
55
- "@vue/devtools-kit": "^7.1.3"
52
+ "vite-plugin-vue-inspector": "^5.1.0",
53
+ "@vue/devtools-shared": "^7.2.0",
54
+ "@vue/devtools-core": "^7.2.0",
55
+ "@vue/devtools-kit": "^7.2.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@types/node": "^20.12.7",
58
+ "@types/node": "^20.12.12",
59
59
  "fast-glob": "^3.3.2",
60
60
  "image-meta": "^0.2.0",
61
61
  "pathe": "^1.1.2"