@dimina-kit/devtools 0.4.0-dev.20260711141929 → 0.4.0-dev.20260716163758

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 (59) hide show
  1. package/dist/main/app/app.js +39 -10
  2. package/dist/main/app/native-overview.d.ts +1 -1
  3. package/dist/main/index.bundle.js +189 -172
  4. package/dist/main/services/simulator-appdata/index.js +1 -1
  5. package/dist/main/services/views/native-simulator-view.d.ts +6 -0
  6. package/dist/main/services/views/native-simulator-view.js +16 -0
  7. package/dist/main/services/views/refresh-styles.d.ts +10 -0
  8. package/dist/main/services/views/refresh-styles.js +57 -0
  9. package/dist/main/services/views/view-manager.d.ts +26 -1
  10. package/dist/main/services/views/view-manager.js +7 -0
  11. package/dist/main/services/views/workbench-view.d.ts +2 -0
  12. package/dist/main/services/views/workbench-view.js +87 -7
  13. package/dist/main/services/workspace/open-project-guards.d.ts +16 -0
  14. package/dist/main/services/workspace/open-project-guards.js +42 -0
  15. package/dist/main/services/workspace/rebuild-status.d.ts +24 -0
  16. package/dist/main/services/workspace/rebuild-status.js +20 -0
  17. package/dist/main/services/workspace/workspace-lifecycle-race.testutil.d.ts +2 -0
  18. package/dist/main/services/workspace/workspace-lifecycle-race.testutil.js +4 -0
  19. package/dist/main/services/workspace/workspace-service.js +21 -36
  20. package/dist/native-host/common/common.js +1 -1
  21. package/dist/native-host/render/render.js +49 -34
  22. package/dist/native-host/service/service.js +2 -2
  23. package/dist/preload/instrumentation/app-data.d.ts +2 -2
  24. package/dist/preload/instrumentation/app-data.js +1 -1
  25. package/dist/preload/windows/host-toolbar-runtime.cjs.map +1 -1
  26. package/dist/preload/windows/main.cjs +96 -0
  27. package/dist/preload/windows/main.cjs.map +2 -2
  28. package/dist/preload/windows/simulator.cjs +162 -140
  29. package/dist/preload/windows/simulator.cjs.map +3 -3
  30. package/dist/preload/windows/simulator.js +162 -140
  31. package/dist/render-host/render-inspect.js +15 -47
  32. package/dist/renderer/assets/index-DQnIsRhp.js +49 -0
  33. package/dist/renderer/assets/{input-COtRON-n.js → input-7P0WbXyg.js} +2 -2
  34. package/dist/renderer/assets/ipc-transport-BGtDnv6p.css +1 -0
  35. package/dist/renderer/assets/{ipc-transport-SuI2rOB_.js → ipc-transport-DTEmLpxx.js} +2 -2
  36. package/dist/renderer/assets/popover-DsOcyIS6.js +2 -0
  37. package/dist/renderer/assets/{select-Bwb8O0Mf.js → select-Bzbhbg9Z.js} +2 -2
  38. package/dist/renderer/assets/{settings-BispnvJU.js → settings-CR1TyBWu.js} +2 -2
  39. package/dist/renderer/assets/{settings-api-HIBz8BFz.js → settings-api-B1wVFAPB.js} +2 -2
  40. package/dist/renderer/assets/workbenchSettings-CFbToT4Q.js +8 -0
  41. package/dist/renderer/entries/main/index.html +6 -6
  42. package/dist/renderer/entries/popover/index.html +5 -5
  43. package/dist/renderer/entries/settings/index.html +5 -5
  44. package/dist/renderer/entries/workbench-settings/index.html +4 -4
  45. package/dist/shared/ipc-channels.d.ts +1 -0
  46. package/dist/shared/ipc-channels.js +7 -0
  47. package/dist/simulator/assets/device-shell-C-HZY3bL.css +1 -0
  48. package/dist/simulator/assets/device-shell-Cu1ZPLfe.js +2 -0
  49. package/dist/simulator/assets/{simulator-A1vGZVBM.js → simulator-Cy8c-eA2.js} +5 -5
  50. package/dist/simulator/simulator.html +1 -1
  51. package/package.json +7 -7
  52. package/dist/renderer/assets/index-WbvXdhWQ.js +0 -49
  53. package/dist/renderer/assets/ipc-transport-CNvORIEX.css +0 -1
  54. package/dist/renderer/assets/popover-B73T3z-m.js +0 -2
  55. package/dist/renderer/assets/workbenchSettings-CtRBr7gS.js +0 -8
  56. package/dist/shared/appdata-accumulator.d.ts +0 -95
  57. package/dist/shared/appdata-accumulator.js +0 -218
  58. package/dist/simulator/assets/device-shell-C-wcFq3Z.js +0 -2
  59. package/dist/simulator/assets/device-shell-CS1rqAQz.css +0 -1
@@ -23,7 +23,7 @@ function n(e, t) {
23
23
  if (e === t) return !0;
24
24
  if (typeof e != "object" || typeof t != "object" || e == null || t == null) return !1;
25
25
  let r = Object.keys(e), i = Object.keys(t);
26
- return r.length === i.length ? r.every((r) => n(e[r], t[r])) : !1;
26
+ return r.length === i.length && r.every((r) => n(e[r], t[r]));
27
27
  }
28
28
  function r(e, t) {
29
29
  return Object.prototype.hasOwnProperty.call(e, t);
@@ -364,7 +364,7 @@ var T = new class e {
364
364
  }
365
365
  }();
366
366
  //#endregion
367
- //#region ../../node_modules/.pnpm/@vue+shared@3.5.39/node_modules/@vue/shared/dist/shared.esm-bundler.js
367
+ //#region ../../node_modules/.pnpm/@vue+shared@3.5.40/node_modules/@vue/shared/dist/shared.esm-bundler.js
368
368
  // @__NO_SIDE_EFFECTS__
369
369
  function le(e) {
370
370
  let t = /* @__PURE__ */ Object.create(null);
@@ -459,7 +459,7 @@ function ut(e) {
459
459
  return e == null ? "initial" : typeof e == "string" ? e === "" ? " " : e : ((typeof e != "number" || !Number.isFinite(e)) && process.env.NODE_ENV !== "production" && console.warn("[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:", e), String(e));
460
460
  }
461
461
  //#endregion
462
- //#region ../../node_modules/.pnpm/@vue+reactivity@3.5.39/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
462
+ //#region ../../node_modules/.pnpm/@vue+reactivity@3.5.40/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
463
463
  function dt(e, ...t) {
464
464
  console.warn(`[Vue warn] ${e}`, ...t);
465
465
  }
@@ -474,7 +474,10 @@ var ft, pt = class {
474
474
  if (this._active) {
475
475
  this._isPaused = !0;
476
476
  let e, t;
477
- if (this.scopes) for (e = 0, t = this.scopes.length; e < t; e++) this.scopes[e].pause();
477
+ if (this.scopes) {
478
+ let n = this.scopes.slice();
479
+ for (e = 0, t = n.length; e < t; e++) n[e].pause();
480
+ }
478
481
  for (e = 0, t = this.effects.length; e < t; e++) this.effects[e].pause();
479
482
  }
480
483
  }
@@ -482,8 +485,12 @@ var ft, pt = class {
482
485
  if (this._active && this._isPaused) {
483
486
  this._isPaused = !1;
484
487
  let e, t;
485
- if (this.scopes) for (e = 0, t = this.scopes.length; e < t; e++) this.scopes[e].resume();
486
- for (e = 0, t = this.effects.length; e < t; e++) this.effects[e].resume();
488
+ if (this.scopes) {
489
+ let n = this.scopes.slice();
490
+ for (e = 0, t = n.length; e < t; e++) n[e].resume();
491
+ }
492
+ let n = this.effects.slice();
493
+ for (e = 0, t = n.length; e < t; e++) n[e].resume();
487
494
  }
488
495
  }
489
496
  run(e) {
@@ -522,7 +529,8 @@ var ft, pt = class {
522
529
  for (t = 0, n = this.effects.length; t < n; t++) this.effects[t].stop();
523
530
  for (this.effects.length = 0, t = 0, n = this.cleanups.length; t < n; t++) this.cleanups[t]();
524
531
  if (this.cleanups.length = 0, this.scopes) {
525
- for (t = 0, n = this.scopes.length; t < n; t++) this.scopes[t].stop(!0);
532
+ let e = this.scopes.slice();
533
+ for (t = 0, n = e.length; t < n; t++) e[t].stop(!0);
526
534
  this.scopes.length = 0;
527
535
  }
528
536
  if (!this.detached && this.parent && !e) {
@@ -658,7 +666,7 @@ function jt() {
658
666
  }
659
667
  function Mt() {
660
668
  let e = At.pop();
661
- kt = e === void 0 ? !0 : e;
669
+ kt = e === void 0 || e;
662
670
  }
663
671
  function Nt(e) {
664
672
  let { cleanup: t } = e;
@@ -1289,7 +1297,7 @@ function Zn(e, t = Infinity, n) {
1289
1297
  return e;
1290
1298
  }
1291
1299
  //#endregion
1292
- //#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.39/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
1300
+ //#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.40/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
1293
1301
  var Qn = [];
1294
1302
  function $n(e) {
1295
1303
  Qn.push(e);
@@ -1633,13 +1641,14 @@ function ci(e, t = ai, n) {
1633
1641
  if (!t || e._n) return e;
1634
1642
  let r = (...n) => {
1635
1643
  r._d && ws(-1);
1636
- let i = si(t), a;
1644
+ let i = si(t), a = bs.length, o;
1637
1645
  try {
1638
- a = e(...n);
1646
+ o = e(...n);
1639
1647
  } finally {
1648
+ for (let e = bs.length; e > a; e--) Ss();
1640
1649
  si(i), r._d && ws(1);
1641
1650
  }
1642
- return process.env.NODE_ENV !== "production" && Zr(t), a;
1651
+ return process.env.NODE_ENV !== "production" && Zr(t), o;
1643
1652
  };
1644
1653
  return r._n = !0, r._c = !0, r._d = !0, r;
1645
1654
  }
@@ -1898,14 +1907,8 @@ function Bi(e, t, n, r, i = !1) {
1898
1907
  m(l, e.k) && (l.value = null), e.k && (u[e.k] = null);
1899
1908
  }
1900
1909
  }
1901
- if (j(c)) {
1902
- jt();
1903
- try {
1904
- lr(c, s, 12, [o, u]);
1905
- } finally {
1906
- Mt();
1907
- }
1908
- } else {
1910
+ if (j(c)) lr(c, s, 12, [o, u]);
1911
+ else {
1909
1912
  let t = M(c), r = /* @__PURE__ */ zn(c);
1910
1913
  if (t || r) {
1911
1914
  let s = () => {
@@ -2042,18 +2045,29 @@ function ma(e, t) {
2042
2045
  }
2043
2046
  return e;
2044
2047
  }
2045
- function U(e, t, n = {}, r, i) {
2048
+ function U(e, t, n = {}, r, i, a) {
2046
2049
  if (ai.ce || ai.parent && Hi(ai.parent) && ai.parent.ce) {
2047
- let e = Object.keys(n).length > 0;
2048
- return t !== "default" && (n.name = t), G(), Es(W, null, [Ns("slot", n, r && r())], e ? -2 : 64);
2050
+ let e = a != null && n.key == null ? O({}, n, { key: a }) : n, i = Object.keys(e).length > 0;
2051
+ return t !== "default" && (e.name = t), G(), Es(W, null, [Ns("slot", e, r && r())], i ? -2 : 64);
2052
+ }
2053
+ let o = e[t];
2054
+ process.env.NODE_ENV !== "production" && o && o.length > 1 && (z("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."), o = () => []), o && o._c && (o._d = !1);
2055
+ let s = bs.length;
2056
+ G();
2057
+ let c;
2058
+ try {
2059
+ let i = o && ha(o(n)), s = n.key || a || i && i.key;
2060
+ c = Es(W, { key: (s && !be(s) ? s : `_${t}`) + (!i && r ? "_fb" : "") }, i || (r ? r() : []), i && e._ === 1 ? 64 : -2);
2061
+ } catch (e) {
2062
+ for (let e = bs.length; e > s; e--) Ss();
2063
+ throw e;
2064
+ } finally {
2065
+ o && o._c && (o._d = !0);
2049
2066
  }
2050
- let a = e[t];
2051
- process.env.NODE_ENV !== "production" && a && a.length > 1 && (z("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."), a = () => []), a && a._c && (a._d = !1), G();
2052
- let o = a && ha(a(n)), s = n.key || o && o.key, c = Es(W, { key: (s && !be(s) ? s : `_${t}`) + (!o && r ? "_fb" : "") }, o || (r ? r() : []), o && e._ === 1 ? 64 : -2);
2053
- return !i && c.scopeId && (c.slotScopeIds = [c.scopeId + "-s"]), a && a._c && (a._d = !0), c;
2067
+ return !i && c.scopeId && (c.slotScopeIds = [c.scopeId + "-s"]), c;
2054
2068
  }
2055
2069
  function ha(e) {
2056
- return e.some((e) => Ds(e) ? !(e.type === vs || e.type === W && !ha(e.children)) : !0) ? e : null;
2070
+ return e.some((e) => !Ds(e) || !(e.type === vs || e.type === W && !ha(e.children))) ? e : null;
2057
2071
  }
2058
2072
  var ga = (e) => e ? tc(e) ? pc(e) : ga(e.parent) : null, _a = /* @__PURE__ */ O(/* @__PURE__ */ Object.create(null), {
2059
2073
  $: (e) => e,
@@ -2564,7 +2578,7 @@ function so(e, t, n) {
2564
2578
  if (lo(o, r, n) && !Qa(l, n)) return !0;
2565
2579
  }
2566
2580
  }
2567
- } else return (i || s) && (!s || !s.$stable) ? !0 : r === o ? !1 : r ? o ? co(r, o, l) : !0 : !!o;
2581
+ } else return (i || s) && (!s || !s.$stable) ? !0 : r === o ? !1 : r ? !o || co(r, o, l) : !!o;
2568
2582
  return !1;
2569
2583
  }
2570
2584
  function co(e, t, n) {
@@ -3980,10 +3994,10 @@ function bc() {
3980
3994
  }
3981
3995
  window.devtoolsFormatters ? window.devtoolsFormatters.push(i) : window.devtoolsFormatters = [i];
3982
3996
  }
3983
- var xc = "3.5.39", Sc = process.env.NODE_ENV === "production" ? de : z;
3997
+ var xc = "3.5.40", Sc = process.env.NODE_ENV === "production" ? de : z;
3984
3998
  process.env.NODE_ENV, process.env.NODE_ENV;
3985
3999
  //#endregion
3986
- //#region ../../node_modules/.pnpm/@vue+runtime-dom@3.5.39/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js
4000
+ //#region ../../node_modules/.pnpm/@vue+runtime-dom@3.5.40/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js
3987
4001
  var Cc = void 0, wc = typeof window < "u" && window.trustedTypes;
3988
4002
  if (wc) try {
3989
4003
  Cc = /* @__PURE__ */ wc.createPolicy("vue", { createHTML: (e) => e });
@@ -4330,7 +4344,7 @@ function Tl(e) {
4330
4344
  return process.env.NODE_ENV !== "production" && window.ShadowRoot && e instanceof window.ShadowRoot && e.mode === "closed" && Sc("mounting on a ShadowRoot with `{mode: \"closed\"}` may lead to unpredictable bugs"), e;
4331
4345
  }
4332
4346
  //#endregion
4333
- //#region ../../node_modules/.pnpm/vue@3.5.39_typescript@6.0.3/node_modules/vue/dist/vue.runtime.esm-bundler.js
4347
+ //#region ../../node_modules/.pnpm/vue@3.5.40_typescript@7.0.2/node_modules/vue/dist/vue.runtime.esm-bundler.js
4334
4348
  function El() {
4335
4349
  bc();
4336
4350
  }
@@ -6869,7 +6883,7 @@ var Ru = {
6869
6883
  }
6870
6884
  },
6871
6885
  setup(e) {
6872
- let t = e, n = Z(), r = /* @__PURE__ */ L(null), i = Y(() => t.enhanced ? !t.showScrollbar : !0), a = 0, o = 0, s = 0;
6886
+ let t = e, n = Z(), r = /* @__PURE__ */ L(null), i = Y(() => !t.enhanced || !t.showScrollbar), a = 0, o = 0, s = 0;
6873
6887
  function c(e) {
6874
6888
  let { scrollTop: i, scrollLeft: c, scrollHeight: l, scrollWidth: u, clientHeight: d, clientWidth: f } = r.value, p = c - a, m = i - o;
6875
6889
  a = c, o = i, Q("scroll", {
@@ -8629,6 +8643,7 @@ var Jp = new class {
8629
8643
  } }, { default: () => yc(e, { class: "dd-page" }) });
8630
8644
  },
8631
8645
  components: { [u]: {
8646
+ name: t,
8632
8647
  __scopeId: d,
8633
8648
  async setup(e, { expose: r }) {
8634
8649
  r(), B("bridgeId", n), B("path", t), B(t, { id: l.pageId }), B("info", {
@@ -8719,6 +8734,7 @@ var Jp = new class {
8719
8734
  if (!r?.moduleInfo) continue;
8720
8735
  let { id: l, usingComponents: u } = r.moduleInfo, d = this.createComponent(c, t, u, s), f = `data-v-${l}`;
8721
8736
  a[`dd-${i}`] = {
8737
+ name: c,
8722
8738
  __scopeId: f,
8723
8739
  components: d,
8724
8740
  props: r.props,
@@ -9243,7 +9259,6 @@ var Jp = new class {
9243
9259
  return;
9244
9260
  }
9245
9261
  try {
9246
- this.ensureCanvasResolution(d);
9247
9262
  let n = a || d.width, f = o || d.height, p = document.createElement("canvas");
9248
9263
  p.width = s || n, p.height = c || f, p.getContext("2d").drawImage(d, r, i, n, f, 0, 0, p.width, p.height);
9249
9264
  let m = l === "jpg" || l === "jpeg" ? "image/jpeg" : "image/png", h = p.toDataURL(m, u);