@nine-lab/nine-mu 0.1.330 → 0.1.332
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
|
@@ -17524,6 +17524,9 @@ initActions_fn = function() {
|
|
|
17524
17524
|
const parsed = JSON.parse(rawText);
|
|
17525
17525
|
if (parsed.message) {
|
|
17526
17526
|
__privateGet(this, _manager).addChatHistory(parsed.message);
|
|
17527
|
+
__privateGet(this, _$nineChatMessage).add("ai", parsed.message);
|
|
17528
|
+
} else {
|
|
17529
|
+
__privateGet(this, _$nineChatMessage).removeIng();
|
|
17527
17530
|
}
|
|
17528
17531
|
}
|
|
17529
17532
|
}
|
|
@@ -17534,7 +17537,7 @@ render_fn = function() {
|
|
|
17534
17537
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
17535
17538
|
this.shadowRoot.innerHTML = `
|
|
17536
17539
|
<style>
|
|
17537
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
17540
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.331"}/dist/css/nine-mu.css";
|
|
17538
17541
|
${customImport}
|
|
17539
17542
|
</style>
|
|
17540
17543
|
<div class="wrapper">
|
|
@@ -43784,7 +43787,7 @@ class NineDiff extends HTMLElement {
|
|
|
43784
43787
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43785
43788
|
this.shadowRoot.innerHTML = `
|
|
43786
43789
|
<style>
|
|
43787
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43790
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.331"}/dist/css/nine-mu.css";
|
|
43788
43791
|
${customImport}
|
|
43789
43792
|
</style>
|
|
43790
43793
|
|
|
@@ -43924,7 +43927,7 @@ renderScaffolding_fn = function() {
|
|
|
43924
43927
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
43925
43928
|
this.shadowRoot.innerHTML = `
|
|
43926
43929
|
<style>
|
|
43927
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43930
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.331"}/dist/css/nine-mu.css";
|
|
43928
43931
|
${customImport}
|
|
43929
43932
|
</style>
|
|
43930
43933
|
|
|
@@ -44033,7 +44036,7 @@ render_fn2 = function() {
|
|
|
44033
44036
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
44034
44037
|
this.shadowRoot.innerHTML = `
|
|
44035
44038
|
<style>
|
|
44036
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44039
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.331"}/dist/css/nine-mu.css";
|
|
44037
44040
|
${customImport}
|
|
44038
44041
|
</style>
|
|
44039
44042
|
|
|
@@ -44363,7 +44366,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44363
44366
|
const customImport = nine.cssPath ? `@import "${nine.cssPath}/ninePanel.css";` : "";
|
|
44364
44367
|
this.shadowRoot.innerHTML = `
|
|
44365
44368
|
<style>
|
|
44366
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44369
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.331"}/dist/css/nine-mu.css";
|
|
44367
44370
|
${customImport}
|
|
44368
44371
|
</style>
|
|
44369
44372
|
|
|
@@ -44373,6 +44376,11 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44373
44376
|
});
|
|
44374
44377
|
__privateAdd(this, _init3, () => {
|
|
44375
44378
|
});
|
|
44379
|
+
__publicField(this, "removeIng", () => {
|
|
44380
|
+
this.shadowRoot.querySelectorAll("nine-chat-ing").forEach((el) => {
|
|
44381
|
+
el.remove();
|
|
44382
|
+
});
|
|
44383
|
+
});
|
|
44376
44384
|
__publicField(this, "add", (sender, message, info, data, unique) => {
|
|
44377
44385
|
if (unique && !Array.isArray(unique)) {
|
|
44378
44386
|
unique = unique.split(",");
|
|
@@ -44457,7 +44465,7 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44457
44465
|
customElements.define("nine-chat-progress", ProgressMessage);
|
|
44458
44466
|
}
|
|
44459
44467
|
const NineMu = {
|
|
44460
|
-
version: "0.1.
|
|
44468
|
+
version: "0.1.331",
|
|
44461
44469
|
init: (config2) => {
|
|
44462
44470
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
44463
44471
|
}
|