vite-plugin-vue-devtools 7.0.12 → 7.0.14
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.
- package/dist/client/assets/{css-a-KJtBLB.js → css-tuEqSfZX.js} +347 -347
- package/dist/client/assets/html-NT1OIsSF.js +74 -0
- package/dist/client/assets/index-KXVUFBYX.js +1096 -0
- package/dist/client/assets/{index-598L0Wdv.css → index-fx3Lb9Fg.css} +1 -1
- package/dist/client/assets/{javascript-Of8SnKfU.js → javascript-4rbEI_qn.js} +507 -507
- package/dist/client/assets/json-xL80yL3n.js +25 -0
- package/dist/client/assets/{shellscript-h1L64xId.js → shellscript-82BvnTib.js} +3 -3
- package/dist/client/assets/{typescript-b1Nw_bQe.js → typescript-IWNmnGsa.js} +487 -487
- package/dist/client/assets/unocss-runtime-TAqnQCrJ.js +2 -0
- package/dist/client/assets/{vue-nOwTje1i.js → vue-YzhXM3IG.js} +1508 -1508
- package/dist/client/assets/{vue-html-eJ6eRCYJ.js → vue-html-K7eG1nl_.js} +1 -1
- package/dist/client/assets/yaml-zytfnWoA.js +200 -0
- package/dist/client/index.html +3 -3
- package/dist/client/logo.svg +208 -0
- package/dist/vite.cjs +18 -9
- package/dist/vite.d.cts +7 -0
- package/dist/vite.d.mts +7 -0
- package/dist/vite.d.ts +7 -0
- package/dist/vite.mjs +18 -9
- package/package.json +7 -7
- package/src/overlay/devtools-overlay.css +1 -1
- package/src/overlay/devtools-overlay.js +3 -3
- package/src/overlay.js +3 -1
- package/dist/client/assets/html-5-AIf93y.js +0 -74
- package/dist/client/assets/index-cEmzwhNg.js +0 -1096
- package/dist/client/assets/json-t1qiHl76.js +0 -25
- package/dist/client/assets/unocss-runtime-402WFgCt.js +0 -2
- package/dist/client/assets/yaml-FtfhlYqU.js +0 -200
package/dist/vite.mjs
CHANGED
|
@@ -105,7 +105,8 @@ function normalizeComboKeyPrint(toggleComboKey) {
|
|
|
105
105
|
const defaultOptions = {
|
|
106
106
|
appendTo: "",
|
|
107
107
|
openInEditorHost: false,
|
|
108
|
-
clientHost: false
|
|
108
|
+
clientHost: false,
|
|
109
|
+
componentInspector: true
|
|
109
110
|
};
|
|
110
111
|
function mergeOptions(options) {
|
|
111
112
|
return Object.assign({}, defaultOptions, options);
|
|
@@ -123,16 +124,23 @@ function VitePluginVueDevTools(options) {
|
|
|
123
124
|
single: true,
|
|
124
125
|
dev: true
|
|
125
126
|
}));
|
|
126
|
-
setupViteRPCServer(server.ws, {
|
|
127
|
+
const rpcServer = setupViteRPCServer(server.ws, {
|
|
127
128
|
root: () => config.root,
|
|
128
129
|
...setupAssetsRPC({
|
|
129
130
|
root: config.root,
|
|
130
|
-
base
|
|
131
|
+
base,
|
|
132
|
+
server,
|
|
133
|
+
getRpcServer
|
|
131
134
|
}),
|
|
132
135
|
...setupGraphRPC({
|
|
133
|
-
rpc: inspect.api.rpc
|
|
136
|
+
rpc: inspect.api.rpc,
|
|
137
|
+
server,
|
|
138
|
+
getRpcServer
|
|
134
139
|
})
|
|
135
140
|
});
|
|
141
|
+
function getRpcServer() {
|
|
142
|
+
return rpcServer;
|
|
143
|
+
}
|
|
136
144
|
const _printUrls = server.printUrls;
|
|
137
145
|
const colorUrl = (url) => cyan(url.replace(/:(\d+)\//, (_, port) => `:${bold(port)}/`));
|
|
138
146
|
server.printUrls = () => {
|
|
@@ -165,7 +173,7 @@ function VitePluginVueDevTools(options) {
|
|
|
165
173
|
},
|
|
166
174
|
async load(id) {
|
|
167
175
|
if (id === "virtual:vue-devtools-options")
|
|
168
|
-
return `export default ${JSON.stringify({ base: config.base, clientHost: pluginOptions.clientHost })}`;
|
|
176
|
+
return `export default ${JSON.stringify({ base: config.base, clientHost: pluginOptions.clientHost, componentInspector: pluginOptions.componentInspector })}`;
|
|
169
177
|
},
|
|
170
178
|
transform(code, id) {
|
|
171
179
|
const { root, base } = config;
|
|
@@ -194,7 +202,7 @@ import 'virtual:vue-devtools-path:overlay.js'`;
|
|
|
194
202
|
}
|
|
195
203
|
},
|
|
196
204
|
// inject inspector script manually to ensure it's loaded after vue-devtools
|
|
197
|
-
{
|
|
205
|
+
pluginOptions.componentInspector && {
|
|
198
206
|
tag: "script",
|
|
199
207
|
injectTo: "head-prepend",
|
|
200
208
|
attrs: {
|
|
@@ -202,7 +210,7 @@ import 'virtual:vue-devtools-path:overlay.js'`;
|
|
|
202
210
|
src: `${config.base || "/"}@id/virtual:vue-inspector-path:load.js`
|
|
203
211
|
}
|
|
204
212
|
}
|
|
205
|
-
]
|
|
213
|
+
].filter(Boolean)
|
|
206
214
|
};
|
|
207
215
|
},
|
|
208
216
|
async buildEnd() {
|
|
@@ -210,14 +218,15 @@ import 'virtual:vue-devtools-path:overlay.js'`;
|
|
|
210
218
|
};
|
|
211
219
|
return [
|
|
212
220
|
inspect,
|
|
213
|
-
VueInspector({
|
|
221
|
+
pluginOptions.componentInspector && VueInspector({
|
|
214
222
|
toggleComboKey: "",
|
|
215
223
|
toggleButtonVisibility: "never",
|
|
224
|
+
...typeof pluginOptions.componentInspector === "boolean" ? {} : pluginOptions.componentInspector,
|
|
216
225
|
openInEditorHost: pluginOptions.openInEditorHost,
|
|
217
226
|
appendTo: pluginOptions.appendTo || "manually"
|
|
218
227
|
}),
|
|
219
228
|
plugin
|
|
220
|
-
];
|
|
229
|
+
].filter(Boolean);
|
|
221
230
|
}
|
|
222
231
|
|
|
223
232
|
export { VitePluginVueDevTools as default };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-vue-devtools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.
|
|
4
|
+
"version": "7.0.14",
|
|
5
5
|
"description": "A vite plugin for Vue DevTools",
|
|
6
6
|
"author": "webfansplz",
|
|
7
7
|
"license": "MIT",
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
"vite": "^3.1.0 || ^4.0.0-0 || ^5.0.0-0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"birpc": "^0.2.
|
|
48
|
+
"birpc": "^0.2.15",
|
|
49
49
|
"execa": "^8.0.1",
|
|
50
50
|
"sirv": "^2.0.4",
|
|
51
|
-
"vite-plugin-inspect": "^0.8.
|
|
51
|
+
"vite-plugin-inspect": "^0.8.3",
|
|
52
52
|
"vite-plugin-vue-inspector": "^4.0.2",
|
|
53
|
-
"@vue/devtools-core": "^7.0.
|
|
54
|
-
"@vue/devtools-
|
|
55
|
-
"@vue/devtools-
|
|
53
|
+
"@vue/devtools-core": "^7.0.14",
|
|
54
|
+
"@vue/devtools-kit": "^7.0.14",
|
|
55
|
+
"@vue/devtools-shared": "^7.0.14"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@types/node": "^20.11.
|
|
58
|
+
"@types/node": "^20.11.10",
|
|
59
59
|
"fast-glob": "^3.3.2",
|
|
60
60
|
"image-meta": "^0.2.0",
|
|
61
61
|
"pathe": "^1.1.2"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.vue-devtools-frame[data-v-8b2fd87f]{position:fixed;z-index:2147483645}.vue-devtools-frame[data-v-8b2fd87f] iframe{width:100%;height:100%;outline:none;background:var(--vue-devtools-widget-bg);border:1px solid rgba(125,125,125,.2);border-radius:10px}.vue-devtools-frame.view-mode-xs[data-v-8b2fd87f]{width:400px!important;height:80px!important}.vue-devtools-frame.view-mode-fullscreen[data-v-8b2fd87f]{width:100vw!important;height:100vh!important;z-index:1!important;bottom:0!important;transform:none!important}.vue-devtools-frame.view-mode-fullscreen[data-v-8b2fd87f] iframe{border-radius:0!important}.vue-devtools-resize--horizontal[data-v-8b2fd87f]{position:absolute;left:6px;right:6px;height:10px;margin:-5px 0;cursor:ns-resize;border-radius:5px}.vue-devtools-resize--vertical[data-v-8b2fd87f]{position:absolute;top:6px;bottom:0;width:10px;margin:0 -5px;cursor:ew-resize;border-radius:5px}.vue-devtools-resize-corner[data-v-8b2fd87f]{position:absolute;width:14px;height:14px;margin:-6px;border-radius:6px}.vue-devtools-resize[data-v-8b2fd87f]:hover{background:#7d7d7d1a}.vue-devtools__anchor[data-v-
|
|
1
|
+
.vue-devtools-frame[data-v-8b2fd87f]{position:fixed;z-index:2147483645}.vue-devtools-frame[data-v-8b2fd87f] iframe{width:100%;height:100%;outline:none;background:var(--vue-devtools-widget-bg);border:1px solid rgba(125,125,125,.2);border-radius:10px}.vue-devtools-frame.view-mode-xs[data-v-8b2fd87f]{width:400px!important;height:80px!important}.vue-devtools-frame.view-mode-fullscreen[data-v-8b2fd87f]{width:100vw!important;height:100vh!important;z-index:1!important;bottom:0!important;transform:none!important}.vue-devtools-frame.view-mode-fullscreen[data-v-8b2fd87f] iframe{border-radius:0!important}.vue-devtools-resize--horizontal[data-v-8b2fd87f]{position:absolute;left:6px;right:6px;height:10px;margin:-5px 0;cursor:ns-resize;border-radius:5px}.vue-devtools-resize--vertical[data-v-8b2fd87f]{position:absolute;top:6px;bottom:0;width:10px;margin:0 -5px;cursor:ew-resize;border-radius:5px}.vue-devtools-resize-corner[data-v-8b2fd87f]{position:absolute;width:14px;height:14px;margin:-6px;border-radius:6px}.vue-devtools-resize[data-v-8b2fd87f]:hover{background:#7d7d7d1a}.vue-devtools__anchor[data-v-187da182]{position:fixed;z-index:2147483645;transform-origin:center center;transform:translate(-50%,-50%) rotate(0)}.vue-devtools__anchor.fullscreen[data-v-187da182]{transform:none!important;left:0!important}.vue-devtools__anchor-btn[data-v-187da182]{border-radius:100%;border-width:0;width:30px;height:30px;display:flex;justify-content:center;align-items:center;opacity:.8;transition:opacity .2s ease-in-out}.vue-devtools__anchor-btn[data-v-187da182]:hover{opacity:1}.vue-devtools__anchor-btn svg[data-v-187da182]{width:14px;height:14px}.vue-devtools__anchor-btn.active[data-v-187da182]{cursor:pointer}.vue-devtools__anchor .panel-entry-btn[data-v-187da182]{cursor:pointer;flex:none}.vue-devtools__anchor--vertical .panel-entry-btn[data-v-187da182]{transform:rotate(-90deg)}.vue-devtools__anchor--vertical .vue-devtools__panel[data-v-187da182]{transform:translate(-50%,-50%) rotate(90deg);box-shadow:2px -2px 8px var(--vue-devtools-widget-shadow)}.vue-devtools__anchor--hide .vue-devtools__panel[data-v-187da182]{max-width:32px;padding:2px 0}.vue-devtools__anchor--hide .vue-devtools__panel-content[data-v-187da182]{opacity:0}.vue-devtools__anchor--glowing[data-v-187da182]{position:absolute;left:0;top:0;transform:translate(-50%,-50%);width:160px;height:160px;opacity:0;transition:all 1s ease;pointer-events:none;z-index:-1;border-radius:9999px;background-image:linear-gradient(45deg,#00dc82,#36e4da,#0047e1);filter:blur(60px)}.vue-devtools__anchor:hover .vue-devtools__anchor--glowing[data-v-187da182]{opacity:.6}.vue-devtools__panel[data-v-187da182]{position:absolute;left:0;top:0;transform:translate(-50%,-50%);display:flex;justify-content:flex-start;overflow:hidden;align-items:center;gap:2px;height:30px;padding:4px 4px 4px 5px;box-sizing:border-box;border:1px solid var(--vue-devtools-widget-border);border-radius:20px;background-color:var(--vue-devtools-widget-bg);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:var(--vue-devtools-widget-fg);box-shadow:2px 2px 8px var(--vue-devtools-widget-shadow);-webkit-user-select:none;user-select:none;max-width:150px;transition:max-width .4s ease,padding .5s ease,transform .3s ease,all .4s ease}.vue-devtools__panel-content[data-v-187da182]{transition:opacity .4s ease}.vue-devtools__panel-divider[data-v-187da182]{border-left:1px solid rgba(136,136,136,.2);width:1px;height:10px}@keyframes blink-187da182{0%{opacity:.2}50%{opacity:.6}to{opacity:.2}}@media print{#vue-devtools-anchor[data-v-187da182]{display:none}}
|