@nine-lab/nine-mu 0.1.95 → 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 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 (!rec || !(res == null ? void 0 : res.contents)) return;
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.94"}/dist/css/nine-mu.css";
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">
@@ -236,8 +236,7 @@ render_fn = function() {
236
236
  <div class="menu-icon menu-filter"></div>
237
237
  <div class="menu-icon menu-general active"></div>
238
238
  <div class="menu-icon menu-setting"></div>
239
- </div>
240
- <div class="menu2">
239
+
241
240
  <div class="menu-icon make-menu"></div>
242
241
  <div class="menu-icon source-gen"></div>
243
242
  </div>
@@ -10744,21 +10743,21 @@ class DOMObserver {
10744
10743
  this.view.update([]);
10745
10744
  return handled;
10746
10745
  }
10747
- readMutation(rec2) {
10748
- let tile = this.view.docView.tile.nearest(rec2.target);
10746
+ readMutation(rec) {
10747
+ let tile = this.view.docView.tile.nearest(rec.target);
10749
10748
  if (!tile || tile.isWidget())
10750
10749
  return null;
10751
- tile.markDirty(rec2.type == "attributes");
10752
- if (rec2.type == "childList") {
10753
- let childBefore = findChild(tile, rec2.previousSibling || rec2.target.previousSibling, -1);
10754
- let childAfter = findChild(tile, rec2.nextSibling || rec2.target.nextSibling, 1);
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);
10755
10754
  return {
10756
10755
  from: childBefore ? tile.posAfter(childBefore) : tile.posAtStart,
10757
10756
  to: childAfter ? tile.posBefore(childAfter) : tile.posAtEnd,
10758
10757
  typeOver: false
10759
10758
  };
10760
- } else if (rec2.type == "characterData") {
10761
- return { from: tile.posAtStart, to: tile.posAtEnd, typeOver: rec2.target.nodeValue == rec2.oldValue };
10759
+ } else if (rec.type == "characterData") {
10760
+ return { from: tile.posAtStart, to: tile.posAtEnd, typeOver: rec.target.nodeValue == rec.oldValue };
10762
10761
  } else {
10763
10762
  return null;
10764
10763
  }
@@ -26426,7 +26425,7 @@ class NineDiff extends HTMLElement {
26426
26425
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
26427
26426
  this.shadowRoot.innerHTML = `
26428
26427
  <style>
26429
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.94"}/dist/css/nine-mu.css";
26428
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.96"}/dist/css/nine-mu.css";
26430
26429
  ${customImport}
26431
26430
  </style>
26432
26431
 
@@ -26536,7 +26535,7 @@ render_fn2 = function() {
26536
26535
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
26537
26536
  this.shadowRoot.innerHTML = `
26538
26537
  <style>
26539
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.94"}/dist/css/nine-mu.css";
26538
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.96"}/dist/css/nine-mu.css";
26540
26539
  ${customImport}
26541
26540
  </style>
26542
26541
 
@@ -26575,7 +26574,7 @@ handleCancel_fn = function() {
26575
26574
  };
26576
26575
  customElements.define("nine-diff-popup", NineDiffPopup);
26577
26576
  const NineMu = {
26578
- version: "0.1.94",
26577
+ version: "0.1.96",
26579
26578
  init: (config) => {
26580
26579
  trace.log("🛠️ Nine-Mu Engine initialized", config);
26581
26580
  }