@vitejs/devtools 0.1.4 → 0.1.8

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 (38) hide show
  1. package/dist/{DockIcon-DNt-Vqy4.js → DockIcon-zZkKuxFy.js} +2 -2
  2. package/dist/{DockStandalone-CL8hrIeb.js → DockStandalone-BuMVHLt_.js} +64 -64
  3. package/dist/{LogItem-CZM2G41b.js → LogItem-D-AbVX5q.js} +5 -5
  4. package/dist/{ViewBuiltinLogs-1ABRTwzd.js → ViewBuiltinLogs-D9GVXA00.js} +39 -39
  5. package/dist/{ViewBuiltinTerminals-Co7G-321.js → ViewBuiltinTerminals-afgLtRQP.js} +11 -11
  6. package/dist/{ViewJsonRender-ByPfpKFM.js → ViewJsonRender-DtluXw3F.js} +4 -4
  7. package/dist/cli-commands.js +92 -2
  8. package/dist/cli.js +8 -4
  9. package/dist/client/inject.js +49 -28
  10. package/dist/client/standalone/assets/{DockStandalone-C8ChyZLh.js → DockStandalone-DvxQ5kAU.js} +1 -1
  11. package/dist/client/standalone/assets/{ViewBuiltinTerminals-UrMq7UXM.js → ViewBuiltinTerminals-CpNVjAgX.js} +1 -1
  12. package/dist/client/standalone/assets/{ViewJsonRender-BURuu55Z.js → ViewJsonRender-CbWAIBeO.js} +1 -1
  13. package/dist/client/standalone/assets/{index-Rpv7PwRD.js → index-BGGAiDua.js} +3 -3
  14. package/dist/client/standalone/index.html +1 -1
  15. package/dist/client/webcomponents.d.ts +1 -21628
  16. package/dist/client/webcomponents.js +31 -31
  17. package/dist/config.js +1 -1
  18. package/dist/constants-DfEeYo9W.js +142 -0
  19. package/dist/{dist-D2Z6bwqJ.js → dist-CBtGbo90.js} +4 -4
  20. package/dist/dist-DpLy3ojW.js +229 -0
  21. package/dist/index.d.ts +2 -2
  22. package/dist/index.js +4 -1
  23. package/dist/internal.d.ts +1 -1
  24. package/dist/internal.js +1 -1
  25. package/dist/plugins-DfC1vp4w.js +31 -0
  26. package/dist/{popup-DzgY0boj.js → popup-CAT8YohS.js} +2 -2
  27. package/dist/server-BuWZ1h8p.js +241 -0
  28. package/dist/server-Ca6LOTxO.js +3 -0
  29. package/dist/{plugins-BHefDofV.js → server-DhChc9gv.js} +8 -628
  30. package/dist/standalone-CAJbdnf4.js +34 -0
  31. package/dist/static-dump-Q0iG9hz3.js +65 -0
  32. package/package.json +10 -15
  33. package/dist/cli-commands-D6M9N3th.js +0 -180
  34. package/dist/vue.runtime.esm-bundler-CS1wMbap.js +0 -6988
  35. /package/dist/{context-internal-Du6FuGIu.d.ts → context-internal-BA4ba-FN.d.ts} +0 -0
  36. /package/dist/{context-internal-CvIHbZq4.js → context-internal-DZpoJjMz.js} +0 -0
  37. /package/dist/{iconify-BW79QmbD.js → iconify-JodklND-.js} +0 -0
  38. /package/dist/{utils-DaaVwEUH.js → utils-HWI9S6d-.js} +0 -0
@@ -1,9 +1,9 @@
1
- import { A as renderSlot, D as openBlock, E as onUnmounted, F as withDirectives, M as watch, N as watchEffect, P as withCtx, Q as toDisplayString, T as onMounted, U as ref, V as reactive, X as normalizeClass, Y as unref, Z as normalizeStyle, b as h, d as createBlock, f as createCommentVNode, g as createVNode, i as vShow, j as useTemplateRef, l as computed, n as defineCustomElement, o as withModifiers, p as createElementBlock, q as toRefs, s as Fragment, u as createBaseVNode, v as defineComponent, z as markRaw } from "../vue.runtime.esm-bundler-CS1wMbap.js";
2
- import { a as useScreenSafeArea, l as watchDebounced, n as useElementBounding, r as useEventListener, s as useWindowSize } from "../dist-D2Z6bwqJ.js";
3
- import { S as BUILTIN_ENTRY_CLIENT_AUTH_NOTICE, _ as sharedStateToRef, b as docksSplitGroupsWithCapacity, c as setDocksOverflowPanel, f as useDocksOverflowPanel, g as createDockEntryState, h as DEFAULT_DOCK_PANEL_STORE, l as setEdgePositionDropdown, o as useIsDockPopupOpen, p as useEdgePositionDropdown, t as closeDockPopup, u as setFloatingTooltip, v as useDocksEntries } from "../popup-DzgY0boj.js";
4
- import { a as PersistedDomViewsManager, c as openDockContextMenu, d as css_default, i as PersistedDomHolder, l as _sfc_main$11, o as _sfc_main$8, r as _sfc_main$10, s as _sfc_main$9, t as DockStandalone, u as _sfc_main$12 } from "../DockStandalone-CL8hrIeb.js";
5
- import { n as VitePlusCore_default, r as export_helper_default } from "../DockIcon-DNt-Vqy4.js";
6
- import "../iconify-BW79QmbD.js";
1
+ import { a as useScreenSafeArea, l as watchDebounced, n as useElementBounding, r as useEventListener, s as useWindowSize } from "../dist-CBtGbo90.js";
2
+ import { S as BUILTIN_ENTRY_CLIENT_AUTH_NOTICE, _ as sharedStateToRef, b as docksSplitGroupsWithCapacity, c as setDocksOverflowPanel, f as useDocksOverflowPanel, g as createDockEntryState, h as DEFAULT_DOCK_PANEL_STORE, l as setEdgePositionDropdown, o as useIsDockPopupOpen, p as useEdgePositionDropdown, t as closeDockPopup, u as setFloatingTooltip, v as useDocksEntries } from "../popup-CAT8YohS.js";
3
+ import { a as PersistedDomViewsManager, c as openDockContextMenu, d as css_default, i as PersistedDomHolder, l as _sfc_main$11, o as _sfc_main$8, r as _sfc_main$10, s as _sfc_main$9, t as DockStandalone, u as _sfc_main$12 } from "../DockStandalone-BuMVHLt_.js";
4
+ import { n as VitePlusCore_default, r as export_helper_default } from "../DockIcon-zZkKuxFy.js";
5
+ import "../iconify-JodklND-.js";
6
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, defineCustomElement, h, markRaw, normalizeClass, normalizeStyle, onMounted, onUnmounted, openBlock, reactive, ref, renderSlot, toDisplayString, toRefs, unref, useTemplateRef, vShow, watch, watchEffect, withCtx, withDirectives, withModifiers } from "vue";
7
7
  //#region src/client/webcomponents/components/icons/BracketLeft.vue
8
8
  const _sfc_main$7 = {};
9
9
  const _hoisted_1$3 = {
@@ -12,7 +12,7 @@ const _hoisted_1$3 = {
12
12
  xmlns: "http://www.w3.org/2000/svg"
13
13
  };
14
14
  function _sfc_render$1(_ctx, _cache) {
15
- return openBlock(), createElementBlock("svg", _hoisted_1$3, [..._cache[0] || (_cache[0] = [createBaseVNode("path", {
15
+ return openBlock(), createElementBlock("svg", _hoisted_1$3, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
16
16
  d: "M4.95763 0C1.02563 5.628 1.00263 14.351 4.95763 20H7.61363C3.65963 14.35 3.68363 5.627 7.61363 0H4.95763Z",
17
17
  class: "fill-black dark:fill-white"
18
18
  }, null, -1)])]);
@@ -27,7 +27,7 @@ const _hoisted_1$2 = {
27
27
  xmlns: "http://www.w3.org/2000/svg"
28
28
  };
29
29
  function _sfc_render(_ctx, _cache) {
30
- return openBlock(), createElementBlock("svg", _hoisted_1$2, [..._cache[0] || (_cache[0] = [createBaseVNode("path", {
30
+ return openBlock(), createElementBlock("svg", _hoisted_1$2, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
31
31
  d: "M4.246 10H6.903C6.902 6.407 5.913 2.816 3.946 0H1.29C3.256 2.816 4.244 6.407 4.246 10ZM8.935 14.907H6.27C6.46624 14.1665 6.61752 13.4148 6.723 12.656H4.066C3.96052 13.4148 3.80924 14.1665 3.613 14.907H0.944C0.703507 15.8176 0.387753 16.7067 0 17.565H2.669C2.2859 18.4179 1.82388 19.2331 1.289 20H3.945C4.47988 19.2331 4.9419 18.4179 5.325 17.565H7.99C8.376 16.714 8.691 15.823 8.935 14.907Z",
32
32
  class: "fill-black dark:fill-white"
33
33
  }, null, -1)])]);
@@ -308,26 +308,26 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
308
308
  selected: unref(context).docks.selected,
309
309
  panelMargins
310
310
  }),
311
- createBaseVNode("div", {
311
+ createElementVNode("div", {
312
312
  id: "vite-devtools-dock-container",
313
313
  ref_key: "dockEl",
314
314
  ref: dockEl,
315
315
  style: normalizeStyle(panelStyle.value)
316
- }, [createBaseVNode("div", {
316
+ }, [createElementVNode("div", {
317
317
  id: "vite-devtools-dock",
318
318
  onPointerdown: onPointerDown
319
319
  }, [
320
320
  createVNode(BracketLeft_default, { class: "vite-devtools-dock-bracket absolute left--1 top-1/2 translate-y--1/2 bottom-0 w-2.5 op75 transition-opacity duration-300" }),
321
321
  createVNode(BracketRight_default, { class: normalizeClass(["vite-devtools-dock-bracket absolute right--1 top-1/2 translate-y--1/2 bottom-0 w-2.5 op75 transition-opacity duration-300", unref(context).panel.isVertical ? "scale-y--100" : ""]) }, null, 8, ["class"]),
322
- createBaseVNode("div", { class: normalizeClass(["w-3 h-3 absolute left-1/2 top-1/2 translate-x--1/2 translate-y--1/2 transition-opacity duration-300", [isMinimized.value ? "op100" : "op0", unref(context).panel.isVertical ? "rotate-270" : "rotate-0"]]) }, [createVNode(VitePlusCore_default), !isRpcTrusted.value ? (openBlock(), createElementBlock("div", _hoisted_1$1)) : createCommentVNode("v-if", true)], 2),
322
+ createElementVNode("div", { class: normalizeClass(["w-3 h-3 absolute left-1/2 top-1/2 translate-x--1/2 translate-y--1/2 transition-opacity duration-300", [isMinimized.value ? "op100" : "op0", unref(context).panel.isVertical ? "rotate-270" : "rotate-0"]]) }, [createVNode(VitePlusCore_default), !isRpcTrusted.value ? (openBlock(), createElementBlock("div", _hoisted_1$1)) : createCommentVNode("v-if", true)], 2),
323
323
  !isRpcTrusted.value ? (openBlock(), createElementBlock("div", {
324
324
  key: 0,
325
325
  class: normalizeClass(["transition duration-300 delay-200", isMinimized.value ? "opacity-0 pointer-events-none ws-nowrap text-sm text-orange of-hidden" : "opacity-100"])
326
- }, [createBaseVNode("button", {
326
+ }, [createElementVNode("button", {
327
327
  class: "p2 transition hover:bg-active rounded-full px4",
328
328
  onClick: _cache[0] || (_cache[0] = ($event) => unref(context).docks.toggleEntry(unref(BUILTIN_ENTRY_CLIENT_AUTH_NOTICE).id))
329
- }, [createBaseVNode("div", _hoisted_2$1, [createBaseVNode("div", { class: normalizeClass(["i-fluent-emoji-flat-warning flex-none", unref(context).panel.isVertical ? "rotate-270" : "rotate-0"]) }, null, 2), _cache[3] || (_cache[3] = createBaseVNode("div", { class: "ws-nowrap text-amber" }, " Unauthorized ", -1))])])], 2)) : createCommentVNode("v-if", true),
330
- createBaseVNode("div", { class: normalizeClass([isMinimized.value ? "opacity-0 pointer-events-none" : "opacity-100", "transition duration-200 flex items-center w-full h-full justify-center px3"]) }, [createVNode(_sfc_main$8, {
329
+ }, [createElementVNode("div", _hoisted_2$1, [createElementVNode("div", { class: normalizeClass(["i-fluent-emoji-flat-warning flex-none", unref(context).panel.isVertical ? "rotate-270" : "rotate-0"]) }, null, 2), _cache[3] || (_cache[3] = createElementVNode("div", { class: "ws-nowrap text-amber" }, " Unauthorized ", -1))])])], 2)) : createCommentVNode("v-if", true),
330
+ createElementVNode("div", { class: normalizeClass([isMinimized.value ? "opacity-0 pointer-events-none" : "opacity-100", "transition duration-200 flex items-center w-full h-full justify-center px3"]) }, [createVNode(_sfc_main$8, {
331
331
  context: unref(context),
332
332
  groups: splitEntries.value.visible,
333
333
  "is-vertical": unref(context).panel.isVertical,
@@ -338,7 +338,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
338
338
  "groups",
339
339
  "is-vertical",
340
340
  "selected"
341
- ]), splitEntries.value.overflow.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [_cache[4] || (_cache[4] = createBaseVNode("div", { class: "border-base m1 h-20px w-px border-r-1.5" }, null, -1)), createVNode(_sfc_main$5, {
341
+ ]), splitEntries.value.overflow.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [_cache[4] || (_cache[4] = createElementVNode("div", { class: "border-base m1 h-20px w-px border-r-1.5" }, null, -1)), createVNode(_sfc_main$5, {
342
342
  context: unref(context),
343
343
  "is-vertical": unref(context).panel.isVertical,
344
344
  groups: splitEntries.value.overflow,
@@ -405,7 +405,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
405
405
  return (_ctx, _cache) => {
406
406
  return openBlock(), createElementBlock(Fragment, null, [
407
407
  createCommentVNode(" Handlers "),
408
- withDirectives(createBaseVNode("div", {
408
+ withDirectives(createElementVNode("div", {
409
409
  ref_key: "topHandle",
410
410
  ref: topHandle,
411
411
  class: "vite-devtools-resize-handle vite-devtools-resize-handle-horizontal",
@@ -413,25 +413,25 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
413
413
  onMousedown: _cache[0] || (_cache[0] = withModifiers(($event) => resizingState.value = { top: true }, ["prevent"])),
414
414
  onTouchstartPassive: _cache[1] || (_cache[1] = () => resizingState.value = { top: true })
415
415
  }, null, 544), [[vShow, __props.edgeMode ? __props.panel.store.position === "bottom" : __props.panel.store.position !== "top"]]),
416
- withDirectives(createBaseVNode("div", {
416
+ withDirectives(createElementVNode("div", {
417
417
  class: "vite-devtools-resize-handle vite-devtools-resize-handle-horizontal",
418
418
  style: { bottom: 0 },
419
419
  onMousedown: _cache[2] || (_cache[2] = withModifiers(() => resizingState.value = { bottom: true }, ["prevent"])),
420
420
  onTouchstartPassive: _cache[3] || (_cache[3] = () => resizingState.value = { bottom: true })
421
421
  }, null, 544), [[vShow, __props.edgeMode ? __props.panel.store.position === "top" : __props.panel.store.position !== "bottom"]]),
422
- withDirectives(createBaseVNode("div", {
422
+ withDirectives(createElementVNode("div", {
423
423
  class: "vite-devtools-resize-handle vite-devtools-resize-handle-vertical",
424
424
  style: { left: 0 },
425
425
  onMousedown: _cache[4] || (_cache[4] = withModifiers(() => resizingState.value = { left: true }, ["prevent"])),
426
426
  onTouchstartPassive: _cache[5] || (_cache[5] = () => resizingState.value = { left: true })
427
427
  }, null, 544), [[vShow, __props.edgeMode ? __props.panel.store.position === "right" : __props.panel.store.position !== "left"]]),
428
- withDirectives(createBaseVNode("div", {
428
+ withDirectives(createElementVNode("div", {
429
429
  class: "vite-devtools-resize-handle vite-devtools-resize-handle-vertical",
430
430
  style: { right: 0 },
431
431
  onMousedown: _cache[6] || (_cache[6] = withModifiers(() => resizingState.value = { right: true }, ["prevent"])),
432
432
  onTouchstartPassive: _cache[7] || (_cache[7] = () => resizingState.value = { right: true })
433
433
  }, null, 544), [[vShow, __props.edgeMode ? __props.panel.store.position === "left" : __props.panel.store.position !== "right"]]),
434
- withDirectives(createBaseVNode("div", {
434
+ withDirectives(createElementVNode("div", {
435
435
  class: "vite-devtools-resize-handle vite-devtools-resize-handle-corner",
436
436
  style: {
437
437
  top: 0,
@@ -447,7 +447,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
447
447
  left: true
448
448
  })
449
449
  }, null, 544), [[vShow, !__props.edgeMode && __props.panel.store.position !== "top" && __props.panel.store.position !== "left"]]),
450
- withDirectives(createBaseVNode("div", {
450
+ withDirectives(createElementVNode("div", {
451
451
  class: "vite-devtools-resize-handle vite-devtools-resize-handle-corner",
452
452
  style: {
453
453
  top: 0,
@@ -463,7 +463,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
463
463
  right: true
464
464
  })
465
465
  }, null, 544), [[vShow, !__props.edgeMode && __props.panel.store.position !== "top" && __props.panel.store.position !== "right"]]),
466
- withDirectives(createBaseVNode("div", {
466
+ withDirectives(createElementVNode("div", {
467
467
  class: "vite-devtools-resize-handle vite-devtools-resize-handle-corner",
468
468
  style: {
469
469
  bottom: 0,
@@ -479,7 +479,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
479
479
  left: true
480
480
  })
481
481
  }, null, 544), [[vShow, !__props.edgeMode && __props.panel.store.position !== "bottom" && __props.panel.store.position !== "left"]]),
482
- withDirectives(createBaseVNode("div", {
482
+ withDirectives(createElementVNode("div", {
483
483
  class: "vite-devtools-resize-handle vite-devtools-resize-handle-corner",
484
484
  style: {
485
485
  bottom: 0,
@@ -647,8 +647,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
647
647
  "edge-mode": ""
648
648
  }, null, 8, ["panel"]),
649
649
  createCommentVNode(" Toolbar "),
650
- createBaseVNode("div", { class: normalizeClass(["flex items-center shrink-0 select-none py1", toolbarClass.value]) }, [
651
- createBaseVNode("div", { class: normalizeClass(["flex items-center flex-1 flex-wrap gap-0.5 px1", isVertical.value ? "flex-col py1" : "flex-row px1"]) }, [createVNode(_sfc_main$8, {
650
+ createElementVNode("div", { class: normalizeClass(["flex items-center shrink-0 select-none py1", toolbarClass.value]) }, [
651
+ createElementVNode("div", { class: normalizeClass(["flex items-center flex-1 flex-wrap gap-0.5 px1", isVertical.value ? "flex-col py1" : "flex-row px1"]) }, [createVNode(_sfc_main$8, {
652
652
  context: unref(context),
653
653
  groups: groupedEntries.value,
654
654
  "is-vertical": isVertical.value,
@@ -662,7 +662,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
662
662
  "selected"
663
663
  ])], 2),
664
664
  createCommentVNode(" Position dropdown & float toggle "),
665
- createBaseVNode("div", { class: normalizeClass(["flex items-center gap-0.5 shrink-0 px1", isVertical.value ? "flex-col py1 border-t border-base" : "flex-row px1 border-l border-base"]) }, [createBaseVNode("button", {
665
+ createElementVNode("div", { class: normalizeClass(["flex items-center gap-0.5 shrink-0 px1", isVertical.value ? "flex-col py1 border-t border-base" : "flex-row px1 border-l border-base"]) }, [createElementVNode("button", {
666
666
  ref_key: "positionButton",
667
667
  ref: positionButton,
668
668
  class: "p1.5 rounded hover:bg-active transition op75 hover:op100",
@@ -670,7 +670,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
670
670
  onPointerleave: hideTooltip,
671
671
  onPointerdown: hideTooltip,
672
672
  onClick: togglePositionDropdown
673
- }, [createBaseVNode("div", { class: normalizeClass([positionIcons[unref(store).position], "w-4.5 h-4.5"]) }, null, 2)], 544), createBaseVNode("button", {
673
+ }, [createElementVNode("div", { class: normalizeClass([positionIcons[unref(store).position], "w-4.5 h-4.5"]) }, null, 2)], 544), createElementVNode("button", {
674
674
  ref_key: "floatButton",
675
675
  ref: floatButton,
676
676
  class: "p1.5 rounded hover:bg-active transition op50 hover:op100",
@@ -678,10 +678,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
678
678
  onPointerleave: hideTooltip,
679
679
  onPointerdown: hideTooltip,
680
680
  onClick: switchToFloat
681
- }, [..._cache[3] || (_cache[3] = [createBaseVNode("div", { class: "i-ph-cards-three-duotone w-4.5 h-4.5" }, null, -1)])], 544)], 2)
681
+ }, [..._cache[3] || (_cache[3] = [createElementVNode("div", { class: "i-ph-cards-three-duotone w-4.5 h-4.5" }, null, -1)])], 544)], 2)
682
682
  ], 2),
683
683
  createCommentVNode(" Content "),
684
- createBaseVNode("div", { class: normalizeClass(["relative", contentClass.value]) }, [selectedEntry.value && selectedEntry.value.type !== "action" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [viewsContainer.value ? (openBlock(), createBlock(_sfc_main$10, {
684
+ createElementVNode("div", { class: normalizeClass(["relative", contentClass.value]) }, [selectedEntry.value && selectedEntry.value.type !== "action" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [viewsContainer.value ? (openBlock(), createBlock(_sfc_main$10, {
685
685
  key: selectedEntry.value.id,
686
686
  context: unref(context),
687
687
  entry: selectedEntry.value,
@@ -690,7 +690,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
690
690
  "context",
691
691
  "entry",
692
692
  "persisted-doms"
693
- ])) : createCommentVNode("v-if", true)], 64)) : (openBlock(), createElementBlock("div", _hoisted_1, [createBaseVNode("div", _hoisted_2, [_cache[4] || (_cache[4] = createBaseVNode("div", { class: "i-ph-layout-duotone w-8 h-8" }, null, -1)), createBaseVNode("span", _hoisted_3, toDisplayString(selectedEntry.value ? "Action executed" : "Select a dock entry"), 1)])])), createBaseVNode("div", {
693
+ ])) : createCommentVNode("v-if", true)], 64)) : (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [_cache[4] || (_cache[4] = createElementVNode("div", { class: "i-ph-layout-duotone w-8 h-8" }, null, -1)), createElementVNode("span", _hoisted_3, toDisplayString(selectedEntry.value ? "Action executed" : "Select a dock entry"), 1)])])), createElementVNode("div", {
694
694
  id: "vite-devtools-views-container",
695
695
  ref_key: "viewsContainer",
696
696
  ref: viewsContainer,
@@ -857,7 +857,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
857
857
  "entry",
858
858
  "persisted-doms"
859
859
  ])) : createCommentVNode("v-if", true),
860
- createBaseVNode("div", {
860
+ createElementVNode("div", {
861
861
  id: "vite-devtools-views-container",
862
862
  ref_key: "viewsContainer",
863
863
  ref: viewsContainer,
package/dist/config.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as isObject } from "./utils-DaaVwEUH.js";
1
+ import { t as isObject } from "./utils-HWI9S6d-.js";
2
2
  //#region src/node/config.ts
3
3
  function normalizeDevToolsConfig(config, host) {
4
4
  return {
@@ -0,0 +1,142 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
9
+ var __exportAll = (all, no_symbols) => {
10
+ let target = {};
11
+ for (var name in all) __defProp(target, name, {
12
+ get: all[name],
13
+ enumerable: true
14
+ });
15
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
16
+ return target;
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
20
+ key = keys[i];
21
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
22
+ get: ((k) => from[k]).bind(null, key),
23
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
24
+ });
25
+ }
26
+ return to;
27
+ };
28
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
29
+ value: mod,
30
+ enumerable: true
31
+ }) : target, mod));
32
+ //#endregion
33
+ //#region ../../node_modules/.pnpm/ansis@4.2.0/node_modules/ansis/index.mjs
34
+ var import_ansis = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
35
+ let e, t, r, { defineProperty: l, setPrototypeOf: n, create: o, keys: s } = Object, i = "", { round: c, max: a } = Math, p = (e) => {
36
+ let t = /([a-f\d]{3,6})/i.exec(e)?.[1], r = t?.length, l = parseInt(6 ^ r ? 3 ^ r ? "0" : t[0] + t[0] + t[1] + t[1] + t[2] + t[2] : t, 16);
37
+ return [
38
+ l >> 16 & 255,
39
+ l >> 8 & 255,
40
+ 255 & l
41
+ ];
42
+ }, u = (e, t, r) => e ^ t || t ^ r ? 16 + 36 * c(e / 51) + 6 * c(t / 51) + c(r / 51) : 8 > e ? 16 : e > 248 ? 231 : c(24 * (e - 8) / 247) + 232, d = (e) => {
43
+ let t, r, l, n, o;
44
+ return 8 > e ? 30 + e : 16 > e ? e - 8 + 90 : (232 > e ? (o = (e -= 16) % 36, t = (e / 36 | 0) / 5, r = (o / 6 | 0) / 5, l = o % 6 / 5) : t = r = l = (10 * (e - 232) + 8) / 255, n = 2 * a(t, r, l), n ? 30 + (c(l) << 2 | c(r) << 1 | c(t)) + (2 ^ n ? 0 : 60) : 30);
45
+ }, f = (() => {
46
+ let r = (e) => o.some(((t) => e.test(t))), l = globalThis, n = l.process ?? {}, o = n.argv ?? [], i = n.env ?? {}, c = -1;
47
+ try {
48
+ e = "," + s(i).join(",");
49
+ } catch (e) {
50
+ i = {}, c = 0;
51
+ }
52
+ let a = "FORCE_COLOR", p = {
53
+ false: 0,
54
+ 0: 0,
55
+ 1: 1,
56
+ 2: 2,
57
+ 3: 3
58
+ }[i[a]] ?? -1, u = a in i && p || r(/^--color=?(true|always)?$/);
59
+ return u && (c = p), ~c || (c = ((r, l, n) => (t = r.TERM, {
60
+ "24bit": 3,
61
+ truecolor: 3,
62
+ ansi256: 2,
63
+ ansi: 1
64
+ }[r.COLORTERM] || (r.CI ? /,GITHUB/.test(e) ? 3 : 1 : l && "dumb" !== t ? n ? 3 : /-256/.test(t) ? 2 : 1 : 0)))(i, !!i.PM2_HOME || i.NEXT_RUNTIME?.includes("edge") || !!n.stdout?.isTTY, "win32" === n.platform)), !p || i.NO_COLOR || r(/^--(no-color|color=(false|never))$/) ? 0 : l.window?.chrome || u && !c ? 3 : c;
65
+ })(), g = {
66
+ open: i,
67
+ close: i
68
+ }, h = 39, b = 49, O = {}, m = ({ p: e }, { open: t, close: l }) => {
69
+ let o = (e, ...r) => {
70
+ if (!e) {
71
+ if (t && t === l) return t;
72
+ if ((e ?? i) === i) return i;
73
+ }
74
+ let n, s = e.raw ? String.raw({ raw: e }, ...r) : i + e, c = o.p, a = c.o, p = c.c;
75
+ if (s.includes("\x1B")) for (; c; c = c.p) {
76
+ let { open: e, close: t } = c, r = t.length, l = i, o = 0;
77
+ if (r) for (; ~(n = s.indexOf(t, o)); o = n + r) l += s.slice(o, n) + e;
78
+ s = l + s.slice(o);
79
+ }
80
+ return a + (s.includes("\n") ? s.replace(/(\r?\n)/g, p + "$1" + a) : s) + p;
81
+ }, s = t, c = l;
82
+ return e && (s = e.o + t, c = l + e.c), n(o, r), o.p = {
83
+ open: t,
84
+ close: l,
85
+ o: s,
86
+ c,
87
+ p: e
88
+ }, o.open = s, o.close = c, o;
89
+ };
90
+ const w = new function e(t = f) {
91
+ let s = {
92
+ Ansis: e,
93
+ level: t,
94
+ isSupported: () => a,
95
+ strip: (e) => e.replace(/[›][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g, i),
96
+ extend(e) {
97
+ for (let t in e) {
98
+ let r = e[t], l = (typeof r)[0];
99
+ "s" === l ? (c(t, T(...p(r))), c(_(t), v(...p(r)))) : c(t, r, "f" === l);
100
+ }
101
+ return r = o({}, O), n(s, r), s;
102
+ }
103
+ }, c = (e, t, r) => {
104
+ O[e] = { get() {
105
+ let n = r ? (...e) => m(this, t(...e)) : m(this, t);
106
+ return l(this, e, { value: n }), n;
107
+ } };
108
+ }, a = t > 0, w = (e, t) => a ? {
109
+ open: `[${e}m`,
110
+ close: `[${t}m`
111
+ } : g, y = (e) => (t) => e(...p(t)), R = (e, t) => (r, l, n) => w(`${e}8;2;${r};${l};${n}`, t), $ = (e, t) => (r, l, n) => w(((e, t, r) => d(u(e, t, r)))(r, l, n) + e, t), x = (e) => (t, r, l) => e(u(t, r, l)), T = R(3, h), v = R(4, b), C = (e) => w("38;5;" + e, h), E = (e) => w("48;5;" + e, b);
112
+ 2 === t ? (T = x(C), v = x(E)) : 1 === t && (T = $(0, h), v = $(10, b), C = (e) => w(d(e), h), E = (e) => w(d(e) + 10, b));
113
+ let M, I = {
114
+ fg: C,
115
+ bg: E,
116
+ rgb: T,
117
+ bgRgb: v,
118
+ hex: y(T),
119
+ bgHex: y(v),
120
+ visible: g,
121
+ reset: w(0, 0),
122
+ bold: w(1, 22),
123
+ dim: w(2, 22),
124
+ italic: w(3, 23),
125
+ underline: w(4, 24),
126
+ inverse: w(7, 27),
127
+ hidden: w(8, 28),
128
+ strikethrough: w(9, 29)
129
+ }, _ = (e) => "bg" + e[0].toUpperCase() + e.slice(1), k = "Bright";
130
+ return "black,red,green,yellow,blue,magenta,cyan,white,gray".split(",").map(((e, t) => {
131
+ M = _(e), 8 > t ? (I[e + k] = w(90 + t, h), I[M + k] = w(100 + t, b)) : t = 60, I[e] = w(30 + t, h), I[M] = w(40 + t, b);
132
+ })), s.extend(I);
133
+ }();
134
+ module.exports = w, w.default = w;
135
+ })))(), 1);
136
+ var ansis_default = import_ansis.default;
137
+ const { Ansis, fg, bg, rgb, bgRgb, hex, bgHex, reset, inverse, hidden, visible, bold, dim, italic, underline, strikethrough, black, red, green, yellow, blue, magenta, cyan, white, gray, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray, bgRedBright, bgGreenBright, bgYellowBright, bgBlueBright, bgMagentaBright, bgCyanBright, bgWhiteBright } = import_ansis.default;
138
+ ansis_default.green("✔");
139
+ const MARK_INFO = ansis_default.blue("ℹ");
140
+ ansis_default.red("✖");
141
+ //#endregion
142
+ export { __exportAll as i, ansis_default as n, __commonJSMin as r, MARK_INFO as t };
@@ -1,4 +1,4 @@
1
- import { B as onScopeDispose, C as nextTick, G as shallowRef, H as readonly, I as customRef, J as toValue, K as toRef$1, L as getCurrentScope, M as watch, N as watchEffect, R as isRef, S as inject, T as onMounted, U as ref, W as shallowReadonly, Y as unref, l as computed, x as hasInjectionContext, y as getCurrentInstance } from "./vue.runtime.esm-bundler-CS1wMbap.js";
1
+ import { computed, customRef, getCurrentInstance, getCurrentScope, hasInjectionContext, inject, isRef, nextTick, onMounted, onScopeDispose, readonly, ref, shallowReadonly, shallowRef, toRef, toValue, unref, watch, watchEffect } from "vue";
2
2
  //#region ../../node_modules/.pnpm/@vueuse+shared@14.2.1_vue@3.5.30_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js
3
3
  /**
4
4
  * Call onScopeDispose() if it's inside an effect scope lifecycle, if not, do nothing
@@ -44,8 +44,8 @@ function getIsIOS() {
44
44
  var _window, _window2, _window3;
45
45
  return isClient && !!((_window = window) === null || _window === void 0 || (_window = _window.navigator) === null || _window === void 0 ? void 0 : _window.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.navigator) === null || _window2 === void 0 ? void 0 : _window2.maxTouchPoints) > 2 && /iPad|Macintosh/.test((_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.navigator.userAgent));
46
46
  }
47
- function toRef(...args) {
48
- if (args.length !== 1) return toRef$1(...args);
47
+ function toRef$1(...args) {
48
+ if (args.length !== 1) return toRef(...args);
49
49
  const r = args[0];
50
50
  return typeof r === "function" ? readonly(customRef(() => ({
51
51
  get: r,
@@ -119,7 +119,7 @@ function debounceFilter(ms, options = {}) {
119
119
  */
120
120
  function pausableFilter(extendFilter = bypassFilter, options = {}) {
121
121
  const { initialState = "active" } = options;
122
- const isActive = toRef(initialState === "active");
122
+ const isActive = toRef$1(initialState === "active");
123
123
  function pause() {
124
124
  isActive.value = false;
125
125
  }
@@ -0,0 +1,229 @@
1
+ import { i as __exportAll } from "./constants-DfEeYo9W.js";
2
+ import "node:path";
3
+ import { networkInterfaces } from "node:os";
4
+ import { createServer } from "node:net";
5
+ import "node:fs/promises";
6
+ //#region ../../node_modules/.pnpm/get-port-please@3.2.0/node_modules/get-port-please/dist/index.mjs
7
+ var dist_exports = /* @__PURE__ */ __exportAll({
8
+ checkPort: () => checkPort,
9
+ getPort: () => getPort,
10
+ getRandomPort: () => getRandomPort,
11
+ isSafePort: () => isSafePort,
12
+ isUnsafePort: () => isUnsafePort
13
+ });
14
+ const unsafePorts = /* @__PURE__ */ new Set([
15
+ 1,
16
+ 7,
17
+ 9,
18
+ 11,
19
+ 13,
20
+ 15,
21
+ 17,
22
+ 19,
23
+ 20,
24
+ 21,
25
+ 22,
26
+ 23,
27
+ 25,
28
+ 37,
29
+ 42,
30
+ 43,
31
+ 53,
32
+ 69,
33
+ 77,
34
+ 79,
35
+ 87,
36
+ 95,
37
+ 101,
38
+ 102,
39
+ 103,
40
+ 104,
41
+ 109,
42
+ 110,
43
+ 111,
44
+ 113,
45
+ 115,
46
+ 117,
47
+ 119,
48
+ 123,
49
+ 135,
50
+ 137,
51
+ 139,
52
+ 143,
53
+ 161,
54
+ 179,
55
+ 389,
56
+ 427,
57
+ 465,
58
+ 512,
59
+ 513,
60
+ 514,
61
+ 515,
62
+ 526,
63
+ 530,
64
+ 531,
65
+ 532,
66
+ 540,
67
+ 548,
68
+ 554,
69
+ 556,
70
+ 563,
71
+ 587,
72
+ 601,
73
+ 636,
74
+ 989,
75
+ 990,
76
+ 993,
77
+ 995,
78
+ 1719,
79
+ 1720,
80
+ 1723,
81
+ 2049,
82
+ 3659,
83
+ 4045,
84
+ 5060,
85
+ 5061,
86
+ 6e3,
87
+ 6566,
88
+ 6665,
89
+ 6666,
90
+ 6667,
91
+ 6668,
92
+ 6669,
93
+ 6697,
94
+ 10080
95
+ ]);
96
+ function isUnsafePort(port) {
97
+ return unsafePorts.has(port);
98
+ }
99
+ function isSafePort(port) {
100
+ return !isUnsafePort(port);
101
+ }
102
+ var GetPortError = class extends Error {
103
+ constructor(message, opts) {
104
+ super(message, opts);
105
+ this.message = message;
106
+ }
107
+ name = "GetPortError";
108
+ };
109
+ function _log(verbose, message) {
110
+ if (verbose) console.log(`[get-port] ${message}`);
111
+ }
112
+ function _generateRange(from, to) {
113
+ if (to < from) return [];
114
+ const r = [];
115
+ for (let index = from; index <= to; index++) r.push(index);
116
+ return r;
117
+ }
118
+ function _tryPort(port, host) {
119
+ return new Promise((resolve) => {
120
+ const server = createServer();
121
+ server.unref();
122
+ server.on("error", () => {
123
+ resolve(false);
124
+ });
125
+ server.listen({
126
+ port,
127
+ host
128
+ }, () => {
129
+ const { port: port2 } = server.address();
130
+ server.close(() => {
131
+ resolve(isSafePort(port2) && port2);
132
+ });
133
+ });
134
+ });
135
+ }
136
+ function _getLocalHosts(additional) {
137
+ const hosts = new Set(additional);
138
+ for (const _interface of Object.values(networkInterfaces())) for (const config of _interface || []) if (config.address && !config.internal && !config.address.startsWith("fe80::") && !config.address.startsWith("169.254")) hosts.add(config.address);
139
+ return [...hosts];
140
+ }
141
+ async function _findPort(ports, host) {
142
+ for (const port of ports) {
143
+ const r = await _tryPort(port, host);
144
+ if (r) return r;
145
+ }
146
+ }
147
+ function _fmtOnHost(hostname) {
148
+ return hostname ? `on host ${JSON.stringify(hostname)}` : "on any host";
149
+ }
150
+ const HOSTNAME_RE = /^(?!-)[\d.:A-Za-z-]{1,63}(?<!-)$/;
151
+ function _validateHostname(hostname, _public, verbose) {
152
+ if (hostname && !HOSTNAME_RE.test(hostname)) {
153
+ const fallbackHost = _public ? "0.0.0.0" : "127.0.0.1";
154
+ _log(verbose, `Invalid hostname: ${JSON.stringify(hostname)}. Using ${JSON.stringify(fallbackHost)} as fallback.`);
155
+ return fallbackHost;
156
+ }
157
+ return hostname;
158
+ }
159
+ async function getPort(_userOptions = {}) {
160
+ if (typeof _userOptions === "number" || typeof _userOptions === "string") _userOptions = { port: Number.parseInt(_userOptions + "") || 0 };
161
+ const _port = Number(_userOptions.port ?? process.env.PORT);
162
+ const _userSpecifiedAnyPort = Boolean(_userOptions.port || _userOptions.ports?.length || _userOptions.portRange?.length);
163
+ const options = {
164
+ random: _port === 0,
165
+ ports: [],
166
+ portRange: [],
167
+ alternativePortRange: _userSpecifiedAnyPort ? [] : [3e3, 3100],
168
+ verbose: false,
169
+ ..._userOptions,
170
+ port: _port,
171
+ host: _validateHostname(_userOptions.host ?? process.env.HOST, _userOptions.public, _userOptions.verbose)
172
+ };
173
+ if (options.random && !_userSpecifiedAnyPort) return getRandomPort(options.host);
174
+ const portsToCheck = [
175
+ options.port,
176
+ ...options.ports,
177
+ ..._generateRange(...options.portRange)
178
+ ].filter((port) => {
179
+ if (!port) return false;
180
+ if (!isSafePort(port)) {
181
+ _log(options.verbose, `Ignoring unsafe port: ${port}`);
182
+ return false;
183
+ }
184
+ return true;
185
+ });
186
+ if (portsToCheck.length === 0) portsToCheck.push(3e3);
187
+ let availablePort = await _findPort(portsToCheck, options.host);
188
+ if (!availablePort && options.alternativePortRange.length > 0) {
189
+ availablePort = await _findPort(_generateRange(...options.alternativePortRange), options.host);
190
+ if (portsToCheck.length > 0) {
191
+ let message = `Unable to find an available port (tried ${portsToCheck.join("-")} ${_fmtOnHost(options.host)}).`;
192
+ if (availablePort) message += ` Using alternative port ${availablePort}.`;
193
+ _log(options.verbose, message);
194
+ }
195
+ }
196
+ if (!availablePort && _userOptions.random !== false) {
197
+ availablePort = await getRandomPort(options.host);
198
+ if (availablePort) _log(options.verbose, `Using random port ${availablePort}`);
199
+ }
200
+ if (!availablePort) {
201
+ const triedRanges = [
202
+ options.port,
203
+ options.portRange.join("-"),
204
+ options.alternativePortRange.join("-")
205
+ ].filter(Boolean).join(", ");
206
+ throw new GetPortError(`Unable to find an available port ${_fmtOnHost(options.host)} (tried ${triedRanges})`);
207
+ }
208
+ return availablePort;
209
+ }
210
+ async function getRandomPort(host) {
211
+ const port = await checkPort(0, host);
212
+ if (port === false) throw new GetPortError(`Unable to find a random port ${_fmtOnHost(host)}`);
213
+ return port;
214
+ }
215
+ async function checkPort(port, host = process.env.HOST, verbose) {
216
+ if (!host) host = _getLocalHosts([void 0, "0.0.0.0"]);
217
+ if (!Array.isArray(host)) return _tryPort(port, host);
218
+ for (const _host of host) {
219
+ const _port = await _tryPort(port, _host);
220
+ if (_port === false) {
221
+ if (port < 1024 && verbose) _log(verbose, `Unable to listen to the privileged port ${port} ${_fmtOnHost(_host)}`);
222
+ return false;
223
+ }
224
+ if (port === 0 && _port !== 0) port = _port;
225
+ }
226
+ return port;
227
+ }
228
+ //#endregion
229
+ export { getPort as n, dist_exports as t };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { n as InternalAnonymousAuthStorage, t as DevToolsInternalContext } from "./context-internal-Du6FuGIu.js";
2
- import { Plugin, ResolvedConfig, ViteDevServer } from "vite";
1
+ import { n as InternalAnonymousAuthStorage, t as DevToolsInternalContext } from "./context-internal-BA4ba-FN.js";
3
2
  import { SharedStatePatch } from "@vitejs/devtools-kit/utils/shared-state";
4
3
  import * as _vitejs_devtools_rpc0 from "@vitejs/devtools-rpc";
5
4
  import { RpcFunctionsCollectorBase } from "@vitejs/devtools-rpc";
@@ -7,6 +6,7 @@ import * as _vitejs_devtools_kit0 from "@vitejs/devtools-kit";
7
6
  import { DevToolsDockEntry, DevToolsDocksUserSettings, DevToolsLogEntry, DevToolsNodeContext, DevToolsTerminalSessionStreamChunkEvent, RpcDefinitionsToFunctions } from "@vitejs/devtools-kit";
8
7
  import * as h3 from "h3";
9
8
  import { AsyncLocalStorage } from "node:async_hooks";
9
+ import { Plugin, ResolvedConfig, ViteDevServer } from "vite";
10
10
  import * as birpc from "birpc";
11
11
 
12
12
  //#region src/node/context.d.ts
package/dist/index.js CHANGED
@@ -1,2 +1,5 @@
1
- import { a as createDevToolsContext, r as createDevToolsMiddleware, t as DevTools } from "./plugins-BHefDofV.js";
1
+ import { r as createDevToolsContext } from "./server-DhChc9gv.js";
2
+ import { t as createDevToolsMiddleware } from "./server-BuWZ1h8p.js";
3
+ import { t as DevTools } from "./plugins-DfC1vp4w.js";
4
+ import "./dist-DpLy3ojW.js";
2
5
  export { DevTools, createDevToolsContext, createDevToolsMiddleware };
@@ -1,2 +1,2 @@
1
- import { n as InternalAnonymousAuthStorage, r as getInternalContext, t as DevToolsInternalContext } from "./context-internal-Du6FuGIu.js";
1
+ import { n as InternalAnonymousAuthStorage, r as getInternalContext, t as DevToolsInternalContext } from "./context-internal-BA4ba-FN.js";
2
2
  export { type DevToolsInternalContext, type InternalAnonymousAuthStorage, getInternalContext };
package/dist/internal.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as getInternalContext } from "./context-internal-CvIHbZq4.js";
1
+ import { t as getInternalContext } from "./context-internal-DZpoJjMz.js";
2
2
  export { getInternalContext };