@vitejs/devtools 0.0.0-alpha.33 → 0.0.0-alpha.34

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 (33) hide show
  1. package/dist/{DockIcon-BxTh1m5v.js → DockIcon-LqhTiyo7.js} +2 -2
  2. package/dist/DockStandalone-D15T7P8h.js +82 -0
  3. package/dist/FloatingElements-DiZY-fXn.js +988 -0
  4. package/dist/{ViewBuiltinLogs-BwyIDX5w.js → ViewBuiltinLogs-DAC3EpNy.js} +2 -2
  5. package/dist/{ViewBuiltinTerminals-yFL0jGW0.js → ViewBuiltinTerminals-CaCzY10v.js} +3 -3
  6. package/dist/cli-commands-B8AbW52w.js +178 -0
  7. package/dist/cli-commands.js +2 -2
  8. package/dist/cli.js +2 -2
  9. package/dist/client/inject.js +37 -13
  10. package/dist/client/standalone/assets/DockStandalone-Be2ebLC6.js +8 -0
  11. package/dist/client/standalone/assets/ViewBuiltinLogs-gqCacjSC.js +1 -0
  12. package/dist/client/standalone/assets/{ViewBuiltinTerminals-BoJR1xWn.js → ViewBuiltinTerminals-EMrVQ_he.js} +2 -2
  13. package/dist/client/standalone/assets/_plugin-vue_export-helper-DdUndd8v.js +1 -0
  14. package/dist/client/standalone/assets/{index-7t5UlDkF.css → index-CkMgpkZF.css} +1 -1
  15. package/dist/client/standalone/assets/index-xigFHEkA.js +4 -0
  16. package/dist/client/standalone/index.html +3 -3
  17. package/dist/client/webcomponents.d.ts +20329 -145
  18. package/dist/client/webcomponents.js +54 -1043
  19. package/dist/config.js +1 -5
  20. package/dist/{dist-C5wFunwn.js → dist-CnHQWaMb.js} +3 -3
  21. package/dist/index.d.ts +5 -5
  22. package/dist/index.js +1 -1
  23. package/dist/{plugins-C3h3TsXX.js → plugins-tIIgS7bh.js} +78 -37
  24. package/dist/popup-CqYAUdYG.js +366 -0
  25. package/dist/utils--qjmgani.js +6 -0
  26. package/dist/{vue.runtime.esm-bundler-DL9ItCI-.js → vue.runtime.esm-bundler-Bou7Nbd4.js} +75 -30
  27. package/package.json +27 -9
  28. package/dist/cli-commands-BRi5CDUR.js +0 -94
  29. package/dist/client/standalone/assets/ViewBuiltinLogs-B6YocKEt.js +0 -1
  30. package/dist/client/standalone/assets/_plugin-vue_export-helper-DCOpKI5t.js +0 -1
  31. package/dist/client/standalone/assets/index-BmL7atlP.js +0 -3
  32. package/dist/docks-YFmtkjZj.js +0 -127
  33. /package/dist/{export-helper-C1Zyf6xf.js → export-helper-DOmNQzh6.js} +0 -0
@@ -1,5 +1,5 @@
1
- import { R as ref, a as Fragment, d as createElementBlock, f as createStaticVNode, g as defineComponent, k as watchEffect, l as createBlock, m as createVNode, s as computed, w as openBlock } from "./vue.runtime.esm-bundler-DL9ItCI-.js";
2
- import { t as export_helper_default } from "./export-helper-C1Zyf6xf.js";
1
+ import { R as ref, a as Fragment, d as createElementBlock, f as createStaticVNode, g as defineComponent, k as watchEffect, l as createBlock, m as createVNode, s as computed, w as openBlock } from "./vue.runtime.esm-bundler-Bou7Nbd4.js";
2
+ import { t as export_helper_default } from "./export-helper-DOmNQzh6.js";
3
3
  //#region ../../node_modules/.pnpm/dompurify@3.3.2/node_modules/dompurify/dist/purify.es.mjs
4
4
  /*! @license DOMPurify 3.3.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.2/LICENSE */
5
5
  const { entries, setPrototypeOf, isFrozen, getPrototypeOf, getOwnPropertyDescriptor } = Object;
@@ -0,0 +1,82 @@
1
+ import { A as withCtx, D as useTemplateRef, O as watch, P as markRaw, R as ref, U as unref, a as Fragment, c as createBaseVNode, d as createElementBlock, g as defineComponent, l as createBlock, m as createVNode, s as computed, t as defineCustomElement, u as createCommentVNode, w as openBlock } from "./vue.runtime.esm-bundler-Bou7Nbd4.js";
2
+ import { n as filterPopupDockEntry, r as isDockPopupEntryVisible } from "./popup-CqYAUdYG.js";
3
+ import { i as VitePlus_default, n as _sfc_main$3, o as PersistedDomViewsManager, r as _sfc_main$1, s as _sfc_main$2, t as _sfc_main$4, u as css_default } from "./FloatingElements-DiZY-fXn.js";
4
+ import "./DockIcon-LqhTiyo7.js";
5
+ //#region src/client/webcomponents/components/DockStandalone.vue
6
+ const _hoisted_1 = {
7
+ key: 0,
8
+ class: "h-screen w-screen of-hidden"
9
+ };
10
+ const _hoisted_2 = {
11
+ key: 1,
12
+ class: "h-screen w-screen of-hidden grid cols-[max-content_1fr]"
13
+ };
14
+ const _hoisted_3 = { class: "border-r border-base flex flex-col" };
15
+ const _hoisted_4 = { class: "p2 border-b border-base flex" };
16
+ const _hoisted_5 = { class: "transition duration-200 p2" };
17
+ const DockStandalone = defineCustomElement(/* @__PURE__ */ defineComponent({
18
+ __name: "DockStandalone",
19
+ props: { context: {} },
20
+ setup(__props) {
21
+ const context = __props.context;
22
+ const viewsContainer = useTemplateRef("viewsContainer");
23
+ const persistedDoms = markRaw(new PersistedDomViewsManager(viewsContainer));
24
+ const isRpcTrusted = ref(context.rpc.isTrusted);
25
+ context.rpc.events.on("rpc:is-trusted:updated", (isTrusted) => {
26
+ isRpcTrusted.value = isTrusted;
27
+ });
28
+ watch(() => context.docks.entries, () => {
29
+ context.docks.selectedId ||= context.docks.entries[0]?.id ?? null;
30
+ }, { immediate: true });
31
+ const groupedEntries = computed(() => {
32
+ if (isDockPopupEntryVisible()) return context.docks.groupedEntries;
33
+ return filterPopupDockEntry(context.docks.groupedEntries);
34
+ });
35
+ function switchEntry(id) {
36
+ if (id) context.docks.switchEntry(id);
37
+ }
38
+ return (_ctx, _cache) => {
39
+ return openBlock(), createElementBlock(Fragment, null, [!isRpcTrusted.value ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_sfc_main$1, { context: unref(context) }, null, 8, ["context"])])) : (openBlock(), createElementBlock("div", _hoisted_2, [createBaseVNode("div", _hoisted_3, [createBaseVNode("div", _hoisted_4, [createVNode(VitePlus_default, { class: "w-7 h-7 ma" })]), createBaseVNode("div", _hoisted_5, [createVNode(_sfc_main$2, {
40
+ context: unref(context),
41
+ groups: groupedEntries.value,
42
+ "is-vertical": false,
43
+ selected: unref(context).docks.selected,
44
+ onSelect: _cache[0] || (_cache[0] = (e) => switchEntry(e?.id))
45
+ }, {
46
+ separator: withCtx(() => [..._cache[1] || (_cache[1] = [createBaseVNode("div", { class: "border-base border-b w-full my-2" }, null, -1)])]),
47
+ _: 1
48
+ }, 8, [
49
+ "context",
50
+ "groups",
51
+ "selected"
52
+ ])])]), createBaseVNode("div", null, [createBaseVNode("div", {
53
+ id: "vite-devtools-views-container",
54
+ ref_key: "viewsContainer",
55
+ ref: viewsContainer,
56
+ class: "pointer-events-auto"
57
+ }, null, 512), unref(context).docks.selected && viewsContainer.value ? (openBlock(), createBlock(_sfc_main$3, {
58
+ key: unref(context).docks.selected.id,
59
+ entry: unref(context).docks.selected,
60
+ context: unref(context),
61
+ "persisted-doms": unref(persistedDoms)
62
+ }, null, 8, [
63
+ "entry",
64
+ "context",
65
+ "persisted-doms"
66
+ ])) : createCommentVNode("v-if", true)])])), createVNode(_sfc_main$4)], 64);
67
+ };
68
+ }
69
+ }), {
70
+ shadowRoot: true,
71
+ styles: [css_default, `
72
+ :host([data-vite-devtools-color-mode='dark']) {
73
+ color-scheme: dark;
74
+ }
75
+ :host([data-vite-devtools-color-mode='light']) {
76
+ color-scheme: light;
77
+ }
78
+ `]
79
+ });
80
+ if (!customElements.get("vite-devtools-dock-standalone")) customElements.define("vite-devtools-dock-standalone", DockStandalone);
81
+ //#endregion
82
+ export { DockStandalone };