@nine-lab/nine-mu 0.1.96 → 0.1.98

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.
@@ -77,30 +77,26 @@
77
77
  }
78
78
 
79
79
  .menu-filter {
80
- background-repeat: no-repeat;
81
- background-position: center;
82
- background-size: auto;
83
80
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M1.5 1.5A.5.5 0 0 1 2 1h12a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.128.334L10 8.692V13.5a.5.5 0 0 1-.342.474l-3 1A.5.5 0 0 1 6 14.5V8.692L1.628 3.834A.5.5 0 0 1 1.5 3.5z"/></svg>');
84
81
  }
85
82
 
86
83
  .menu-general {
87
- background-repeat: no-repeat;
88
- background-position: center;
89
- background-size: auto;
90
84
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6-.097 1.016-.417 2.13-.771 2.966-.079.186.074.394.273.362 2.256-.37 3.597-.938 4.18-1.234A9 9 0 0 0 8 15"/></svg>');
91
85
  }
92
86
 
93
87
  .menu-db {
94
- background-repeat: no-repeat;
95
- background-position: center;
96
- background-size: auto;
97
88
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6-.097 1.016-.417 2.13-.771 2.966-.079.186.074.394.273.362 2.256-.37 3.597-.938 4.18-1.234A9 9 0 0 0 8 15"/></svg>');
98
89
  }
99
90
 
100
91
  .menu-setting {
101
- background-repeat: no-repeat;
102
- background-position: center;
103
- background-size: auto;
92
+ background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/></svg>');
93
+ }
94
+
95
+ .make-menu {
96
+ background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/></svg>');
97
+ }
98
+
99
+ .source-gen {
104
100
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/></svg>');
105
101
  }
106
102
 
@@ -110,6 +106,9 @@
110
106
  justify-content: center;
111
107
  align-items: center;
112
108
  height: 32px;
109
+ background-repeat: no-repeat;
110
+ background-position: center;
111
+ background-size: auto;
113
112
  }
114
113
  .menu-icon.active {
115
114
  --border-right: 4px solid #999;
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.95"}/dist/css/nine-mu.css";
211
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.97"}/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(rec2) {
10747
- let tile = this.view.docView.tile.nearest(rec2.target);
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(rec2.type == "attributes");
10751
- if (rec2.type == "childList") {
10752
- let childBefore = findChild(tile, rec2.previousSibling || rec2.target.previousSibling, -1);
10753
- 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);
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 (rec2.type == "characterData") {
10760
- 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 };
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.95"}/dist/css/nine-mu.css";
26428
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.97"}/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.95"}/dist/css/nine-mu.css";
26538
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.97"}/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.95",
26577
+ version: "0.1.97",
26578
26578
  init: (config) => {
26579
26579
  trace.log("🛠️ Nine-Mu Engine initialized", config);
26580
26580
  }