@vue/devtools-electron 8.0.2 → 8.0.4

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 (30) hide show
  1. package/client/IconTitle.vue_vue_type_script_setup_true_lang-DP32G0tf.js +25 -0
  2. package/client/{SectionBlock-xKhegVP9.js → SectionBlock-COywJh9H.js} +32 -32
  3. package/client/assets-CtLN4HSW.js +1049 -0
  4. package/client/{components-BrOQ-ofv.js → components-D9hzDL5e.js} +3 -3
  5. package/client/{custom-inspector-tab-view-CkdhUYIP.js → custom-inspector-tab-view-CgbC8V32.js} +3 -3
  6. package/client/{custom-tab-view-B5kvwrLc.js → custom-tab-view-Nv2OEHgp.js} +3 -3
  7. package/client/devtools-panel.css +1 -1
  8. package/client/devtools-panel.js +1 -1
  9. package/client/{graph-CFurbIKf.js → graph-D2U6Ko6A.js} +24173 -23913
  10. package/client/{index-i0Vo12ev.js → index-BLVlznEl.js} +15848 -16028
  11. package/client/{overview-BJSdT74g.js → overview-B1jXzkLb.js} +2 -2
  12. package/client/{pages-IcPQYatG.js → pages-CD3Vo3bP.js} +128 -128
  13. package/client/pinia-iCYu-5A6.js +11 -0
  14. package/client/{router-Dw9ZK4h3.js → router-BZFemq6K.js} +1 -1
  15. package/client/{settings-kuD3Maam.js → settings-Dkkin8YR.js} +11 -11
  16. package/client/{timeline-BeMBNQIL.js → timeline-B5nTW0v0.js} +38 -38
  17. package/dist/cli.cjs +4 -4
  18. package/dist/cli.mjs +4 -4
  19. package/dist/devtools.js +286 -311
  20. package/dist/index.cjs +1 -1
  21. package/dist/index.js +1 -1
  22. package/dist/user-app.cjs +1 -1
  23. package/dist/user-app.iife.js +55 -55
  24. package/dist/user-app.js +1 -1
  25. package/package.json +7 -8
  26. package/client/IconTitle.vue_vue_type_script_setup_true_lang-Dw_OETO7.js +0 -25
  27. package/client/assets-_5Yea5Fb.js +0 -1049
  28. package/client/color-scheme.js +0 -6
  29. package/client/logo.svg +0 -208
  30. package/client/pinia-DKTNMgsj.js +0 -11
@@ -1,4 +1,4 @@
1
- import { d as A, ag as V, i as d, Y as I, ah as D, ai as W, aj as j, c as o, o as l, b as i, a as N, u as e, T, ak as L, q as s, al as $, F, s as P, g as w, n as U, H as q, t as z, E as H, W as K, p as h, am as O, a7 as Y, w as E, ae as G, e as J, an as Q, y as M, af as R, ao as X } from "./index-i0Vo12ev.js";
1
+ import { d as A, ag as V, i as c, Y as I, ah as D, ai as U, aj as j, c as o, o as l, b as i, a as N, u as e, T as L, ak as R, s, al as $, F, v as P, g as w, n as W, H as q, t as z, E as H, W as K, q as h, am as O, a7 as Y, w as E, ae as G, e as J, an as Q, z as M, af as C, ao as X } from "./index-BLVlznEl.js";
2
2
  const Z = {
3
3
  "h-full": "",
4
4
  flex: "",
@@ -16,7 +16,7 @@ const Z = {
16
16
  }, oe = {
17
17
  key: 1,
18
18
  class: "recording-btn bg-black op70 dark:bg-white hover:op100"
19
- }, ne = { class: "flex items-center gap1" }, se = { class: "p2" }, ie = ["onClick"], re = ["onClick"], de = /* @__PURE__ */ A({
19
+ }, ne = { class: "flex items-center gap1" }, se = { class: "p2" }, ie = ["onClick"], re = ["onClick"], ce = /* @__PURE__ */ A({
20
20
  __name: "TimelineLayers",
21
21
  props: /* @__PURE__ */ V({
22
22
  data: {}
@@ -25,21 +25,21 @@ const Z = {
25
25
  modelModifiers: {}
26
26
  }),
27
27
  emits: /* @__PURE__ */ V(["select", "clear"], ["update:modelValue"]),
28
- setup(C, { emit: y }) {
29
- const m = y, f = I(), c = d(() => f.timelineLayersState.value.recordingState), r = d(() => f.timelineLayersState.value), b = d(() => c.value ? "Stop recording" : "Start recording"), { colorMode: x } = D();
30
- d(() => x.value === "dark");
31
- const _ = W(C, "modelValue");
28
+ setup(S, { emit: y }) {
29
+ const m = y, f = I(), d = c(() => f.timelineLayersState.value.recordingState), r = c(() => f.timelineLayersState.value), b = c(() => d.value ? "Stop recording" : "Start recording"), { colorMode: x } = D();
30
+ c(() => x.value === "dark");
31
+ const g = U(S, "modelValue");
32
32
  function u(a) {
33
- _.value = a, m("select", a), w.value.updateTimelineLayersState({
33
+ g.value = a, m("select", a), w.value.updateTimelineLayersState({
34
34
  selected: a
35
35
  });
36
36
  }
37
37
  j(() => r.value.selected, (a) => {
38
- _.value = a;
38
+ g.value = a;
39
39
  }, {
40
40
  immediate: !0
41
41
  });
42
- function g(a) {
42
+ function _(a) {
43
43
  return {
44
44
  mouse: r.value.mouseEventEnabled,
45
45
  keyboard: r.value.keyboardEventEnabled,
@@ -49,10 +49,10 @@ const Z = {
49
49
  }
50
50
  function p() {
51
51
  w.value.updateTimelineLayersState({
52
- recordingState: !c.value
52
+ recordingState: !d.value
53
53
  });
54
54
  }
55
- function S(a) {
55
+ function T(a) {
56
56
  const v = {
57
57
  mouse: "mouseEventEnabled",
58
58
  keyboard: "keyboardEventEnabled",
@@ -60,27 +60,27 @@ const Z = {
60
60
  performance: "performanceEventEnabled"
61
61
  }[a];
62
62
  w.value.updateTimelineLayersState({
63
- [v]: !g(a)
63
+ [v]: !_(a)
64
64
  });
65
65
  }
66
66
  return (a, v) => (l(), o("div", Z, [
67
67
  i("div", ee, [
68
- e(c) ? N("", !0) : (l(), o("span", te, "Not recording")),
68
+ e(d) ? N("", !0) : (l(), o("span", te, "Not recording")),
69
69
  i("div", ae, [
70
- T((l(), o("div", {
70
+ L((l(), o("div", {
71
71
  class: "flex items-center gap1",
72
72
  onClick: p
73
73
  }, [
74
- e(c) ? (l(), o("span", le)) : (l(), o("span", oe))
74
+ e(d) ? (l(), o("span", le)) : (l(), o("span", oe))
75
75
  ])), [
76
76
  [
77
- e(L),
77
+ e(R),
78
78
  { content: e(b) },
79
79
  void 0,
80
80
  { "bottom-end": !0 }
81
81
  ]
82
82
  ]),
83
- T((l(), o("div", {
83
+ L((l(), o("div", {
84
84
  class: "flex items-center gap1",
85
85
  onClick: v[0] || (v[0] = (t) => m("clear"))
86
86
  }, [
@@ -93,13 +93,13 @@ const Z = {
93
93
  })
94
94
  ])), [
95
95
  [
96
- e(L),
96
+ e(R),
97
97
  { content: "Clear all timelines" },
98
98
  void 0,
99
99
  { "bottom-end": !0 }
100
100
  ]
101
101
  ]),
102
- T((l(), o("div", ne, [
102
+ L((l(), o("div", ne, [
103
103
  s(e($), {
104
104
  name: "baseline-tips-and-updates",
105
105
  "cursor-pointer": "",
@@ -109,7 +109,7 @@ const Z = {
109
109
  })
110
110
  ])), [
111
111
  [
112
- e(L),
112
+ e(R),
113
113
  { content: "<p style='width: 285px'>Timeline events can cause significant performance overhead in large applications, so we recommend enabling it only when needed and on-demand. </p>", html: !0 },
114
114
  void 0,
115
115
  { "bottom-end": !0 }
@@ -118,39 +118,39 @@ const Z = {
118
118
  ])
119
119
  ]),
120
120
  i("ul", se, [
121
- (l(!0), o(F, null, P(a.data, (t) => (l(), o("li", {
121
+ (l(!0), o(F, null, P(S.data, (t) => (l(), o("li", {
122
122
  key: t.id,
123
- class: U(["group relative selectable-item", { active: t.id === _.value, op60: !g(t.id) }]),
123
+ class: W(["group relative selectable-item", { active: t.id === g.value, op60: !_(t.id) }]),
124
124
  onClick: (n) => u(t.id)
125
125
  }, [
126
126
  q(z(t.label) + " ", 1),
127
127
  i("span", {
128
128
  class: "absolute right-2 rounded-1 bg-primary-500 px1 text-3 text-white op0 [.active_&]:bg-primary-400 [.active_&]:dark:bg-gray-600 group-hover:op80 hover:op100!",
129
- onClick: H((n) => S(t.id), ["stop"])
130
- }, z(g(t.id) ? "Disable" : "Enable"), 9, re)
129
+ onClick: H((n) => T(t.id), ["stop"])
130
+ }, z(_(t.id) ? "Disable" : "Enable"), 9, re)
131
131
  ], 10, ie))), 128))
132
132
  ])
133
133
  ]));
134
134
  }
135
- }), ce = /* @__PURE__ */ K(de, [["__scopeId", "data-v-ba7472d9"]]), ue = { class: "h-full w-full" }, pe = { class: "no-scrollbar h-full flex select-none gap-2 overflow-scroll" }, ve = { class: "h-full flex flex-col" }, me = { class: "no-scrollbar h-full flex select-none gap-2 overflow-scroll" }, fe = { class: "h-full flex flex-col p2" }, _e = /* @__PURE__ */ A({
135
+ }), de = /* @__PURE__ */ K(ce, [["__scopeId", "data-v-ba7472d9"]]), ue = { class: "h-full w-full" }, pe = { class: "no-scrollbar h-full flex select-none gap-2 overflow-scroll" }, ve = { class: "h-full flex flex-col" }, me = { class: "no-scrollbar h-full flex select-none gap-2 overflow-scroll" }, fe = { class: "h-full flex flex-col p2" }, ge = /* @__PURE__ */ A({
136
136
  __name: "timeline",
137
- setup(C) {
138
- const y = h(), m = h(), f = h(!1), { width: c } = O(m), r = d(() => f.value ? c.value < 700 : !1), b = I(), x = d(() => b.appRecords.value.map((t) => ({
137
+ setup(S) {
138
+ const y = h(), m = h(), f = h(!1), { width: d } = O(m), r = c(() => f.value ? d.value < 700 : !1), b = I(), x = c(() => b.appRecords.value.map((t) => ({
139
139
  label: t.name + (t.version ? ` (${t.version})` : ""),
140
140
  value: t.id
141
- }))), _ = d(() => x.value.map((t) => ({
141
+ }))), g = c(() => x.value.map((t) => ({
142
142
  label: t.label,
143
143
  id: t.value
144
144
  }))), u = h(b.activeAppRecordId.value);
145
145
  Y(() => {
146
146
  u.value = b.activeAppRecordId.value;
147
147
  });
148
- function g(t) {
148
+ function _(t) {
149
149
  w.value.toggleApp(t).then(() => {
150
150
  a();
151
151
  });
152
152
  }
153
- const p = h(""), S = [
153
+ const p = h(""), T = [
154
154
  {
155
155
  label: "Mouse",
156
156
  id: "mouse"
@@ -175,7 +175,7 @@ const Z = {
175
175
  a();
176
176
  }
177
177
  return (t, n) => {
178
- const B = ce;
178
+ const B = de;
179
179
  return l(), o("div", ue, [
180
180
  s(e(G), {
181
181
  ref_key: "splitpanesRef",
@@ -185,7 +185,7 @@ const Z = {
185
185
  onReady: n[2] || (n[2] = (k) => f.value = !0)
186
186
  }, {
187
187
  default: E(() => [
188
- e(x).length > 1 ? (l(), J(e(R), {
188
+ e(x).length > 1 ? (l(), J(e(C), {
189
189
  key: 0,
190
190
  border: "base h-full",
191
191
  size: "20"
@@ -195,15 +195,15 @@ const Z = {
195
195
  s(e(Q), {
196
196
  modelValue: e(u),
197
197
  "onUpdate:modelValue": n[0] || (n[0] = (k) => M(u) ? u.value = k : null),
198
- data: e(_),
198
+ data: e(g),
199
199
  class: "w-full",
200
- onSelect: g
200
+ onSelect: _
201
201
  }, null, 8, ["modelValue", "data"])
202
202
  ])
203
203
  ]),
204
204
  _: 1
205
205
  })) : N("", !0),
206
- s(e(R), {
206
+ s(e(C), {
207
207
  border: "base",
208
208
  "h-full": ""
209
209
  }, {
@@ -213,7 +213,7 @@ const Z = {
213
213
  s(B, {
214
214
  modelValue: e(p),
215
215
  "onUpdate:modelValue": n[1] || (n[1] = (k) => M(p) ? p.value = k : null),
216
- data: S,
216
+ data: T,
217
217
  class: "w-full",
218
218
  onSelect: v,
219
219
  onClear: a
@@ -223,7 +223,7 @@ const Z = {
223
223
  ]),
224
224
  _: 1
225
225
  }),
226
- s(e(R), {
226
+ s(e(C), {
227
227
  relative: "",
228
228
  "h-full": "",
229
229
  size: "65"
@@ -251,5 +251,5 @@ const Z = {
251
251
  }
252
252
  });
253
253
  export {
254
- _e as default
254
+ ge as default
255
255
  };
package/dist/cli.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ const node_child_process = require('node:child_process');
3
4
  const electron = require('electron');
4
- const execa = require('execa');
5
5
  const pathe = require('pathe');
6
6
 
7
7
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
@@ -11,8 +11,8 @@ const electron__default = /*#__PURE__*/_interopDefaultCompat(electron);
11
11
 
12
12
  const appPath = decodeURIComponent(pathe.resolve(new URL("../dist/app.cjs", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.cjs', document.baseURI).href))).pathname));
13
13
  const argv = process.argv.slice(2);
14
- const result = execa.execaSync(electron__default, [appPath].concat(argv), {
14
+ const result = node_child_process.spawnSync(electron__default, [appPath].concat(argv), {
15
15
  stdio: "inherit",
16
- windowsHide: false
16
+ shell: process.platform === "win32"
17
17
  });
18
- process.exit(result.exitCode);
18
+ process.exit(result.status ?? 0);
package/dist/cli.mjs CHANGED
@@ -1,11 +1,11 @@
1
+ import { spawnSync } from 'node:child_process';
1
2
  import electron from 'electron';
2
- import { execaSync } from 'execa';
3
3
  import { resolve } from 'pathe';
4
4
 
5
5
  const appPath = decodeURIComponent(resolve(new URL("../dist/app.cjs", import.meta.url).pathname));
6
6
  const argv = process.argv.slice(2);
7
- const result = execaSync(electron, [appPath].concat(argv), {
7
+ const result = spawnSync(electron, [appPath].concat(argv), {
8
8
  stdio: "inherit",
9
- windowsHide: false
9
+ shell: process.platform === "win32"
10
10
  });
11
- process.exit(result.exitCode);
11
+ process.exit(result.status ?? 0);