fubi 1.0.0-beta.31 → 1.0.0-beta.33
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 +38 -6
- 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.33"}`;
|
|
23136
23136
|
append($$anchor3, div);
|
|
23137
23137
|
};
|
|
23138
23138
|
Navbar(node, {
|
|
@@ -24276,7 +24276,9 @@ 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(() =>
|
|
24279
|
+
__privateAdd(this, _threadsWithStatus, /* @__PURE__ */ user_derived(() => {
|
|
24280
|
+
return this.filteredThreads.map((t2) => ({ ...t2, ...this.getThreadStatus(t2) }));
|
|
24281
|
+
}));
|
|
24280
24282
|
__privateAdd(this, _isolatedThreads, /* @__PURE__ */ user_derived(() => this.threadsWithStatus.filter((t2) => this.modules.hover.isIsolated && t2.selector === this.modules.hover.isolationSelector)));
|
|
24281
24283
|
__privateAdd(this, _activeThreadId, /* @__PURE__ */ state(null));
|
|
24282
24284
|
__privateAdd(this, _activeThread, /* @__PURE__ */ user_derived(() => this.filteredThreads.find((t2) => t2.id === this.activeThreadId) ?? null));
|
|
@@ -24852,25 +24854,33 @@ class Elements extends Module {
|
|
|
24852
24854
|
return null;
|
|
24853
24855
|
}
|
|
24854
24856
|
start() {
|
|
24857
|
+
console.log("[elements] start() called");
|
|
24855
24858
|
this.updateBodyDimensions();
|
|
24856
24859
|
window.addEventListener("resize", () => {
|
|
24860
|
+
console.log("[elements] resize event");
|
|
24857
24861
|
this.updateBodyDimensions();
|
|
24858
24862
|
this.emit("elements:changed", {});
|
|
24859
24863
|
});
|
|
24860
24864
|
this.pollInterval = window.setInterval(
|
|
24861
24865
|
() => {
|
|
24862
|
-
if (this.watchedSelectors.size)
|
|
24866
|
+
if (this.watchedSelectors.size) {
|
|
24867
|
+
console.log("[elements] poll interval fired, watched selectors:", this.watchedSelectors.size);
|
|
24868
|
+
this.emit("elements:changed", {});
|
|
24869
|
+
}
|
|
24863
24870
|
},
|
|
24864
24871
|
1e3
|
|
24865
24872
|
);
|
|
24866
24873
|
}
|
|
24867
24874
|
watch(selectors) {
|
|
24875
|
+
console.log("[elements] watch() called with", selectors.length, "selectors");
|
|
24868
24876
|
selectors.forEach((selector) => {
|
|
24869
24877
|
if (!selector) return;
|
|
24870
24878
|
this.watchedSelectors.add(selector);
|
|
24871
24879
|
const elements = document.querySelectorAll(selector);
|
|
24880
|
+
console.log("[elements] watch() - selector:", selector.substring(0, 60), "found elements:", elements.length);
|
|
24872
24881
|
elements.forEach((el) => this.observeElement(el));
|
|
24873
24882
|
});
|
|
24883
|
+
console.log("[elements] watch() done, total observed:", this.observedElements.size);
|
|
24874
24884
|
}
|
|
24875
24885
|
unwatch(selectors) {
|
|
24876
24886
|
selectors.forEach((selector) => {
|
|
@@ -24881,11 +24891,31 @@ class Elements extends Module {
|
|
|
24881
24891
|
}
|
|
24882
24892
|
// NEW: Start watching a specific element for mutations/resize
|
|
24883
24893
|
observeElement(el) {
|
|
24884
|
-
|
|
24894
|
+
var _a2, _b2;
|
|
24895
|
+
if (this.observedElements.has(el)) {
|
|
24896
|
+
console.log("[elements] observeElement() - SKIP already observed:", el.tagName, el.id || ((_a2 = el.className) == null ? void 0 : _a2.toString().substring(0, 20)));
|
|
24897
|
+
return;
|
|
24898
|
+
}
|
|
24899
|
+
console.log("[elements] observeElement() - NEW observer for:", el.tagName, el.id || ((_b2 = el.className) == null ? void 0 : _b2.toString().substring(0, 20)));
|
|
24885
24900
|
const resizeObs = new ResizeObserver(() => {
|
|
24901
|
+
var _a3;
|
|
24902
|
+
console.log("[elements] ResizeObserver FIRED for:", el.tagName, el.id || ((_a3 = el.className) == null ? void 0 : _a3.toString().substring(0, 20)));
|
|
24886
24903
|
this.emitElementChanged(el);
|
|
24887
24904
|
});
|
|
24888
|
-
const mutationObs = new MutationObserver(() => {
|
|
24905
|
+
const mutationObs = new MutationObserver((mutations) => {
|
|
24906
|
+
var _a3;
|
|
24907
|
+
console.log("[elements] MutationObserver FIRED:", {
|
|
24908
|
+
target: el.tagName,
|
|
24909
|
+
id: el.id,
|
|
24910
|
+
class: (_a3 = el.className) == null ? void 0 : _a3.toString().substring(0, 20),
|
|
24911
|
+
mutations: mutations.map((m) => {
|
|
24912
|
+
var _a4;
|
|
24913
|
+
return {
|
|
24914
|
+
attr: m.attributeName,
|
|
24915
|
+
newVal: (_a4 = m.target.getAttribute(m.attributeName || "")) == null ? void 0 : _a4.substring(0, 40)
|
|
24916
|
+
};
|
|
24917
|
+
})
|
|
24918
|
+
});
|
|
24889
24919
|
this.emitElementChanged(el);
|
|
24890
24920
|
});
|
|
24891
24921
|
mutationObs.observe(el, {
|
|
@@ -24905,6 +24935,8 @@ class Elements extends Module {
|
|
|
24905
24935
|
}
|
|
24906
24936
|
// NEW: Emit change for specific element (future: use this for targeted updates)
|
|
24907
24937
|
emitElementChanged(el) {
|
|
24938
|
+
var _a2;
|
|
24939
|
+
console.log("[elements] emitElementChanged() - emitting elements:changed for:", el.tagName, el.id || ((_a2 = el.className) == null ? void 0 : _a2.toString().substring(0, 20)));
|
|
24908
24940
|
this.emit("elements:changed", { changedElement: el });
|
|
24909
24941
|
}
|
|
24910
24942
|
updateBodyDimensions() {
|
|
@@ -24996,6 +25028,7 @@ class Elements extends Module {
|
|
|
24996
25028
|
return index2;
|
|
24997
25029
|
}
|
|
24998
25030
|
destroy() {
|
|
25031
|
+
console.log("[elements] destroy() - cleaning up", this.observedElements.size, "observers");
|
|
24999
25032
|
if (this.pollInterval) clearInterval(this.pollInterval);
|
|
25000
25033
|
this.observedElements.forEach(({ resize, mutation }) => {
|
|
25001
25034
|
resize.disconnect();
|
|
@@ -25288,7 +25321,6 @@ let Tracer$1 = (_h = class extends Module {
|
|
|
25288
25321
|
});
|
|
25289
25322
|
}
|
|
25290
25323
|
trace(fromEl, toEl, options) {
|
|
25291
|
-
this.log.info("Tracing from", fromEl, "to", toEl);
|
|
25292
25324
|
this.fromEl = fromEl;
|
|
25293
25325
|
this.toEl = toEl;
|
|
25294
25326
|
this.fromAnchor = { point: "border", offset: 0, ...options == null ? void 0 : options.from };
|