@devframes/hub-ui 0.9.16 → 0.9.18

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.
@@ -11610,9 +11610,12 @@ function bS(e) {
11610
11610
  pendingSelectId: null
11611
11611
  }), n = /* @__PURE__ */ new Map(), r = !0, i = null;
11612
11612
  async function a() {
11613
- let a = await e.rpc.call("devframes:plugin:messages:list", i), o = 0;
11614
- a.full && n.clear();
11615
- for (let e of a.removedIds) n.delete(e);
11613
+ let a = await e.rpc.call("devframes:plugin:messages:list", i), o = 0, s = a.removedIds;
11614
+ if (a.full) {
11615
+ let e = new Set(a.entries.map((e) => e.id));
11616
+ s = [...n.keys()].filter((t) => !e.has(t));
11617
+ }
11618
+ for (let e of s) n.delete(e), hS(e);
11616
11619
  for (let e of a.entries) {
11617
11620
  let t = n.get(e.id);
11618
11621
  t || o++, yS(e, t, r) && mS(e), n.set(e.id, e);
@@ -16097,8 +16100,10 @@ var Ck = t((() => {})), wk, Tk, Ek, Dk, Ok, kk, Ak, jk = t((() => {
16097
16100
  let t = e.context, n = Mc("viewsContainer"), r = a_(n, t.panel, () => i_(t.docks.selected)), i = s_(t, (e) => {
16098
16101
  e || t.docks.switchEntry(null);
16099
16102
  });
16100
- z(() => t.docks.entries, () => {
16101
- t.docks.selectedId ||= t.docks.entries[0]?.id ?? null;
16103
+ z([() => t.docks.groupedEntries, i], ([e, n]) => {
16104
+ if (!n || t.docks.selectedId) return;
16105
+ let r = e.flatMap(([, e]) => e).find((e) => e.type !== "action" && e.type !== "~builtin");
16106
+ r && t.docks.switchEntry(r.id);
16102
16107
  }, { immediate: !0 });
16103
16108
  let a = J(() => t.docks.groupedEntries), o = J(() => Mg(t.docks.entries, t.docks.selected));
16104
16109
  function s(e) {
@@ -16454,7 +16459,9 @@ async function nj(e, t) {
16454
16459
  function rj(e, t) {
16455
16460
  if (e.type !== "action" && ij.has(e.id)) return ij.get(e.id);
16456
16461
  let n = nj(e, t);
16457
- return e.type !== "action" && ij.set(e.id, n), n;
16462
+ return e.type !== "action" && (ij.set(e.id, n), n.catch(() => {
16463
+ ij.get(e.id) === n && ij.delete(e.id);
16464
+ })), n;
16458
16465
  }
16459
16466
  var ij, aj = t((() => {
16460
16467
  Qi(), ij = /* @__PURE__ */ new Map();