@nine-lab/nine-mu 0.1.96 → 0.1.97
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/nine-mu.js +13 -13
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +1 -1
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NineChat.js +1 -1
package/dist/nine-mu.js
CHANGED
|
@@ -114,7 +114,7 @@ class NineChat extends HTMLElement {
|
|
|
114
114
|
if (prompt === null || prompt === void 0) return;
|
|
115
115
|
const res = await api.post(`/nine-mu/source/readFile`, { path: __privateGet(this, _routesPath) });
|
|
116
116
|
trace.log(res);
|
|
117
|
-
if (!
|
|
117
|
+
if (!res || !(res == null ? void 0 : res.contents)) return;
|
|
118
118
|
const jsonRoutes = (res == null ? void 0 : res.contents) ? JSON.parse(res == null ? void 0 : res.contents) : {};
|
|
119
119
|
trace.log(jsonRoutes);
|
|
120
120
|
const res2 = await api.post(`${__privateGet(this, _connectorUrl)}/api/source/missing`, {
|
|
@@ -208,7 +208,7 @@ render_fn = function() {
|
|
|
208
208
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
209
209
|
this.shadowRoot.innerHTML = `
|
|
210
210
|
<style>
|
|
211
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
211
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.96"}/dist/css/nine-mu.css";
|
|
212
212
|
${customImport}
|
|
213
213
|
</style>
|
|
214
214
|
<div class="wrapper">
|
|
@@ -10743,21 +10743,21 @@ class DOMObserver {
|
|
|
10743
10743
|
this.view.update([]);
|
|
10744
10744
|
return handled;
|
|
10745
10745
|
}
|
|
10746
|
-
readMutation(
|
|
10747
|
-
let tile = this.view.docView.tile.nearest(
|
|
10746
|
+
readMutation(rec) {
|
|
10747
|
+
let tile = this.view.docView.tile.nearest(rec.target);
|
|
10748
10748
|
if (!tile || tile.isWidget())
|
|
10749
10749
|
return null;
|
|
10750
|
-
tile.markDirty(
|
|
10751
|
-
if (
|
|
10752
|
-
let childBefore = findChild(tile,
|
|
10753
|
-
let childAfter = findChild(tile,
|
|
10750
|
+
tile.markDirty(rec.type == "attributes");
|
|
10751
|
+
if (rec.type == "childList") {
|
|
10752
|
+
let childBefore = findChild(tile, rec.previousSibling || rec.target.previousSibling, -1);
|
|
10753
|
+
let childAfter = findChild(tile, rec.nextSibling || rec.target.nextSibling, 1);
|
|
10754
10754
|
return {
|
|
10755
10755
|
from: childBefore ? tile.posAfter(childBefore) : tile.posAtStart,
|
|
10756
10756
|
to: childAfter ? tile.posBefore(childAfter) : tile.posAtEnd,
|
|
10757
10757
|
typeOver: false
|
|
10758
10758
|
};
|
|
10759
|
-
} else if (
|
|
10760
|
-
return { from: tile.posAtStart, to: tile.posAtEnd, typeOver:
|
|
10759
|
+
} else if (rec.type == "characterData") {
|
|
10760
|
+
return { from: tile.posAtStart, to: tile.posAtEnd, typeOver: rec.target.nodeValue == rec.oldValue };
|
|
10761
10761
|
} else {
|
|
10762
10762
|
return null;
|
|
10763
10763
|
}
|
|
@@ -26425,7 +26425,7 @@ class NineDiff extends HTMLElement {
|
|
|
26425
26425
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
26426
26426
|
this.shadowRoot.innerHTML = `
|
|
26427
26427
|
<style>
|
|
26428
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
26428
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.96"}/dist/css/nine-mu.css";
|
|
26429
26429
|
${customImport}
|
|
26430
26430
|
</style>
|
|
26431
26431
|
|
|
@@ -26535,7 +26535,7 @@ render_fn2 = function() {
|
|
|
26535
26535
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
26536
26536
|
this.shadowRoot.innerHTML = `
|
|
26537
26537
|
<style>
|
|
26538
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
26538
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.96"}/dist/css/nine-mu.css";
|
|
26539
26539
|
${customImport}
|
|
26540
26540
|
</style>
|
|
26541
26541
|
|
|
@@ -26574,7 +26574,7 @@ handleCancel_fn = function() {
|
|
|
26574
26574
|
};
|
|
26575
26575
|
customElements.define("nine-diff-popup", NineDiffPopup);
|
|
26576
26576
|
const NineMu = {
|
|
26577
|
-
version: "0.1.
|
|
26577
|
+
version: "0.1.96",
|
|
26578
26578
|
init: (config) => {
|
|
26579
26579
|
trace.log("🛠️ Nine-Mu Engine initialized", config);
|
|
26580
26580
|
}
|