fubi 1.0.0-beta.33 → 1.0.0-beta.35
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 +21 -10
- 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.35"}`;
|
|
23136
23136
|
append($$anchor3, div);
|
|
23137
23137
|
};
|
|
23138
23138
|
Navbar(node, {
|
|
@@ -23865,11 +23865,8 @@ class Hover extends Module {
|
|
|
23865
23865
|
window.addEventListener(
|
|
23866
23866
|
"scroll",
|
|
23867
23867
|
() => {
|
|
23868
|
+
this.scroll = { x: window.scrollX, y: window.scrollY };
|
|
23868
23869
|
if (!this.enabled) return;
|
|
23869
|
-
if (this.mode.type === "isolated" || this.mode.type === "replying" || this.mode.type === "focused") {
|
|
23870
|
-
this.scroll = { x: window.scrollX, y: window.scrollY };
|
|
23871
|
-
return;
|
|
23872
|
-
}
|
|
23873
23870
|
if (this.modules.environment.touch) {
|
|
23874
23871
|
this.mode = { type: "idle" };
|
|
23875
23872
|
this.highlightVisible = false;
|
|
@@ -23880,7 +23877,6 @@ class Hover extends Module {
|
|
|
23880
23877
|
this.highlightVisible = true;
|
|
23881
23878
|
this.mode = { type: "idle" };
|
|
23882
23879
|
}
|
|
23883
|
-
this.scroll = { x: window.scrollX, y: window.scrollY };
|
|
23884
23880
|
if (scrollTimeout) clearTimeout(scrollTimeout);
|
|
23885
23881
|
scrollTimeout = setTimeout(
|
|
23886
23882
|
() => {
|
|
@@ -23937,8 +23933,8 @@ class Hover extends Module {
|
|
|
23937
23933
|
this.enabled = false;
|
|
23938
23934
|
this.modules.dom.removeClass("fubi-hover-enabled");
|
|
23939
23935
|
this.modules.toolbar.wrapper.classList.remove("fubi-hover-enabled");
|
|
23940
|
-
this.
|
|
23941
|
-
|
|
23936
|
+
if (this.mode.type !== "replying" && this.mode.type !== "focused") {
|
|
23937
|
+
this.highlightVisible = false;
|
|
23942
23938
|
this.mode = { type: "disabled" };
|
|
23943
23939
|
}
|
|
23944
23940
|
this.emit("hover:disabled");
|
|
@@ -24277,13 +24273,26 @@ class Comments extends CollectionModule {
|
|
|
24277
24273
|
__privateAdd(this, _threadsTodo, /* @__PURE__ */ user_derived(() => this.filteredThreads.filter((t2) => !t2.done)));
|
|
24278
24274
|
__privateAdd(this, _threadsDone, /* @__PURE__ */ user_derived(() => this.filteredThreads.filter((t2) => t2.done)));
|
|
24279
24275
|
__privateAdd(this, _threadsWithStatus, /* @__PURE__ */ user_derived(() => {
|
|
24280
|
-
|
|
24276
|
+
const bindings = this.bindings;
|
|
24277
|
+
console.log("[comments] threadsWithStatus recalculating, bindings size:", bindings.size);
|
|
24278
|
+
return this.filteredThreads.map((t2) => {
|
|
24279
|
+
var _a2, _b2;
|
|
24280
|
+
const status = this.getThreadStatus(t2);
|
|
24281
|
+
if ((_a2 = t2.selector) == null ? void 0 : _a2.includes("char")) {
|
|
24282
|
+
console.log("[comments] char thread status:", {
|
|
24283
|
+
selector: (_b2 = t2.selector) == null ? void 0 : _b2.substring(0, 40),
|
|
24284
|
+
hidden: status.hidden
|
|
24285
|
+
});
|
|
24286
|
+
}
|
|
24287
|
+
return { ...t2, ...status };
|
|
24288
|
+
});
|
|
24281
24289
|
}));
|
|
24282
24290
|
__privateAdd(this, _isolatedThreads, /* @__PURE__ */ user_derived(() => this.threadsWithStatus.filter((t2) => this.modules.hover.isIsolated && t2.selector === this.modules.hover.isolationSelector)));
|
|
24283
24291
|
__privateAdd(this, _activeThreadId, /* @__PURE__ */ state(null));
|
|
24284
24292
|
__privateAdd(this, _activeThread, /* @__PURE__ */ user_derived(() => this.filteredThreads.find((t2) => t2.id === this.activeThreadId) ?? null));
|
|
24285
24293
|
__privateAdd(this, _activeThreadReplies, /* @__PURE__ */ user_derived(() => [...this.data.filter((c) => c.parent === this.activeThreadId)].sort((a, b) => a.created.localeCompare(b.created))));
|
|
24286
24294
|
__privateAdd(this, _bindings, /* @__PURE__ */ user_derived(() => {
|
|
24295
|
+
console.log("[comments] bindings recalculating, domTick:", this.domTick);
|
|
24287
24296
|
const map = /* @__PURE__ */ new Map();
|
|
24288
24297
|
this.grouped.forEach((comments, selector) => {
|
|
24289
24298
|
if (!selector) return;
|
|
@@ -24429,7 +24438,9 @@ class Comments extends CollectionModule {
|
|
|
24429
24438
|
this.on("hover:reset", () => this.activeThreadId = null);
|
|
24430
24439
|
this.on("hover:isolation-dismiss", () => this.activeThreadId = null);
|
|
24431
24440
|
this.on("elements:changed", () => {
|
|
24441
|
+
console.log("[comments] elements:changed received, domTick before:", this.domTick);
|
|
24432
24442
|
this.domTick++;
|
|
24443
|
+
console.log("[comments] domTick incremented to:", this.domTick);
|
|
24433
24444
|
});
|
|
24434
24445
|
this.modules.keys.onPress("Escape", () => {
|
|
24435
24446
|
if (!this.can.commentInputEscape) return;
|
|
@@ -26805,7 +26816,7 @@ const createApp = (params) => {
|
|
|
26805
26816
|
var root_1$8 = /* @__PURE__ */ from_html(`<div class="flex w-full items-center gap-6"><div></div> </div>`);
|
|
26806
26817
|
var root_3$2 = /* @__PURE__ */ from_html(`<p class="whitespace-nowrap"> <span> </span></p>`);
|
|
26807
26818
|
var root_2$5 = /* @__PURE__ */ from_html(`<details open><summary class="text-amber-500 hover:underline pb-4 mt-8 border-b border-amber-500/30"> </summary> <!></details>`);
|
|
26808
|
-
var root$7 = /* @__PURE__ */ from_html(`<div class="
|
|
26819
|
+
var root$7 = /* @__PURE__ */ from_html(`<div class=" fixed z-51 bottom-8 touch:top-8 w-200 touch:bottom-auto max-w-250 left-8 bg-black text-white/50 p-8 font-mono rounded-lg text-[10px]/none flex flex-col space-y-8 divide-white/10 [&_span]:text-white"><div class="text-amber-500 pb-4 mt-8 border-b border-amber-500/30"><p>Modules</p></div> <!> <!></div>`);
|
|
26809
26820
|
function Debug($$anchor, $$props) {
|
|
26810
26821
|
push($$props, true);
|
|
26811
26822
|
const {
|