fubi 1.0.0-beta.32 → 1.0.0-beta.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.
package/dist/index.es.js CHANGED
@@ -23132,7 +23132,7 @@ function Settings$1($$anchor, $$props) {
23132
23132
  {
23133
23133
  const after = ($$anchor3) => {
23134
23134
  var div = root_2$6();
23135
- div.textContent = `v${"1.0.0-beta.32"}`;
23135
+ div.textContent = `v${"1.0.0-beta.34"}`;
23136
23136
  append($$anchor3, div);
23137
23137
  };
23138
23138
  Navbar(node, {
@@ -24276,12 +24276,27 @@ class Comments extends CollectionModule {
24276
24276
  }));
24277
24277
  __privateAdd(this, _threadsTodo, /* @__PURE__ */ user_derived(() => this.filteredThreads.filter((t2) => !t2.done)));
24278
24278
  __privateAdd(this, _threadsDone, /* @__PURE__ */ user_derived(() => this.filteredThreads.filter((t2) => t2.done)));
24279
- __privateAdd(this, _threadsWithStatus, /* @__PURE__ */ user_derived(() => this.filteredThreads.map((t2) => ({ ...t2, ...this.getThreadStatus(t2) }))));
24279
+ __privateAdd(this, _threadsWithStatus, /* @__PURE__ */ user_derived(() => {
24280
+ const bindings = this.bindings;
24281
+ console.log("[comments] threadsWithStatus recalculating, bindings size:", bindings.size);
24282
+ return this.filteredThreads.map((t2) => {
24283
+ var _a2, _b2;
24284
+ const status = this.getThreadStatus(t2);
24285
+ if ((_a2 = t2.selector) == null ? void 0 : _a2.includes("char")) {
24286
+ console.log("[comments] char thread status:", {
24287
+ selector: (_b2 = t2.selector) == null ? void 0 : _b2.substring(0, 40),
24288
+ hidden: status.hidden
24289
+ });
24290
+ }
24291
+ return { ...t2, ...status };
24292
+ });
24293
+ }));
24280
24294
  __privateAdd(this, _isolatedThreads, /* @__PURE__ */ user_derived(() => this.threadsWithStatus.filter((t2) => this.modules.hover.isIsolated && t2.selector === this.modules.hover.isolationSelector)));
24281
24295
  __privateAdd(this, _activeThreadId, /* @__PURE__ */ state(null));
24282
24296
  __privateAdd(this, _activeThread, /* @__PURE__ */ user_derived(() => this.filteredThreads.find((t2) => t2.id === this.activeThreadId) ?? null));
24283
24297
  __privateAdd(this, _activeThreadReplies, /* @__PURE__ */ user_derived(() => [...this.data.filter((c) => c.parent === this.activeThreadId)].sort((a, b) => a.created.localeCompare(b.created))));
24284
24298
  __privateAdd(this, _bindings, /* @__PURE__ */ user_derived(() => {
24299
+ console.log("[comments] bindings recalculating, domTick:", this.domTick);
24285
24300
  const map = /* @__PURE__ */ new Map();
24286
24301
  this.grouped.forEach((comments, selector) => {
24287
24302
  if (!selector) return;
@@ -24427,7 +24442,9 @@ class Comments extends CollectionModule {
24427
24442
  this.on("hover:reset", () => this.activeThreadId = null);
24428
24443
  this.on("hover:isolation-dismiss", () => this.activeThreadId = null);
24429
24444
  this.on("elements:changed", () => {
24445
+ console.log("[comments] elements:changed received, domTick before:", this.domTick);
24430
24446
  this.domTick++;
24447
+ console.log("[comments] domTick incremented to:", this.domTick);
24431
24448
  });
24432
24449
  this.modules.keys.onPress("Escape", () => {
24433
24450
  if (!this.can.commentInputEscape) return;