fubi 1.0.0-beta.33 → 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 +17 -2
- package/dist/index.iife.js +1 -1
- package/package.json +1 -1
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.
|
|
23135
|
+
div.textContent = `v${"1.0.0-beta.34"}`;
|
|
23136
23136
|
append($$anchor3, div);
|
|
23137
23137
|
};
|
|
23138
23138
|
Navbar(node, {
|
|
@@ -24277,13 +24277,26 @@ class Comments extends CollectionModule {
|
|
|
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
24279
|
__privateAdd(this, _threadsWithStatus, /* @__PURE__ */ user_derived(() => {
|
|
24280
|
-
|
|
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
|
+
});
|
|
24281
24293
|
}));
|
|
24282
24294
|
__privateAdd(this, _isolatedThreads, /* @__PURE__ */ user_derived(() => this.threadsWithStatus.filter((t2) => this.modules.hover.isIsolated && t2.selector === this.modules.hover.isolationSelector)));
|
|
24283
24295
|
__privateAdd(this, _activeThreadId, /* @__PURE__ */ state(null));
|
|
24284
24296
|
__privateAdd(this, _activeThread, /* @__PURE__ */ user_derived(() => this.filteredThreads.find((t2) => t2.id === this.activeThreadId) ?? null));
|
|
24285
24297
|
__privateAdd(this, _activeThreadReplies, /* @__PURE__ */ user_derived(() => [...this.data.filter((c) => c.parent === this.activeThreadId)].sort((a, b) => a.created.localeCompare(b.created))));
|
|
24286
24298
|
__privateAdd(this, _bindings, /* @__PURE__ */ user_derived(() => {
|
|
24299
|
+
console.log("[comments] bindings recalculating, domTick:", this.domTick);
|
|
24287
24300
|
const map = /* @__PURE__ */ new Map();
|
|
24288
24301
|
this.grouped.forEach((comments, selector) => {
|
|
24289
24302
|
if (!selector) return;
|
|
@@ -24429,7 +24442,9 @@ class Comments extends CollectionModule {
|
|
|
24429
24442
|
this.on("hover:reset", () => this.activeThreadId = null);
|
|
24430
24443
|
this.on("hover:isolation-dismiss", () => this.activeThreadId = null);
|
|
24431
24444
|
this.on("elements:changed", () => {
|
|
24445
|
+
console.log("[comments] elements:changed received, domTick before:", this.domTick);
|
|
24432
24446
|
this.domTick++;
|
|
24447
|
+
console.log("[comments] domTick incremented to:", this.domTick);
|
|
24433
24448
|
});
|
|
24434
24449
|
this.modules.keys.onPress("Escape", () => {
|
|
24435
24450
|
if (!this.can.commentInputEscape) return;
|