@nine-lab/nine-mu 0.1.293 β 0.1.294
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 +18 -22
- 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/NineDiffPopup.js +23 -31
package/dist/nine-mu.js
CHANGED
|
@@ -17563,7 +17563,7 @@ render_fn = function() {
|
|
|
17563
17563
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
17564
17564
|
this.shadowRoot.innerHTML = `
|
|
17565
17565
|
<style>
|
|
17566
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
17566
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.293"}/dist/css/nine-mu.css";
|
|
17567
17567
|
${customImport}
|
|
17568
17568
|
</style>
|
|
17569
17569
|
<div class="wrapper">
|
|
@@ -43780,7 +43780,7 @@ class NineDiff extends HTMLElement {
|
|
|
43780
43780
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43781
43781
|
this.shadowRoot.innerHTML = `
|
|
43782
43782
|
<style>
|
|
43783
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43783
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.293"}/dist/css/nine-mu.css";
|
|
43784
43784
|
${customImport}
|
|
43785
43785
|
</style>
|
|
43786
43786
|
|
|
@@ -43847,7 +43847,7 @@ class NineDiffPopup extends HTMLElement {
|
|
|
43847
43847
|
return this;
|
|
43848
43848
|
}
|
|
43849
43849
|
/**
|
|
43850
|
-
* π‘ [
|
|
43850
|
+
* π‘ [μλ²½ μΊ‘μν λ°μ΄ν° νΌλ©]
|
|
43851
43851
|
*/
|
|
43852
43852
|
async data(fileList) {
|
|
43853
43853
|
if (!Array.isArray(fileList) || fileList.length === 0) return this;
|
|
@@ -43871,23 +43871,19 @@ class NineDiffPopup extends HTMLElement {
|
|
|
43871
43871
|
__privateGet(this, _tabContainer).addTabPage(captionName, targetHtmlContent);
|
|
43872
43872
|
}
|
|
43873
43873
|
});
|
|
43874
|
-
|
|
43875
|
-
|
|
43876
|
-
|
|
43877
|
-
|
|
43878
|
-
|
|
43879
|
-
|
|
43880
|
-
|
|
43881
|
-
diff.initialize(asis_source || "", source || "", lang);
|
|
43882
|
-
} else {
|
|
43883
|
-
trace.error(`β λμ μλν° νμ μ μ€: nine-diff.${layer2}`);
|
|
43884
|
-
}
|
|
43885
|
-
});
|
|
43886
|
-
if (__privateGet(this, _tabContainer) && typeof __privateGet(this, _tabContainer).initialize === "function") {
|
|
43887
|
-
__privateGet(this, _tabContainer).initialize();
|
|
43874
|
+
setTimeout(() => {
|
|
43875
|
+
fileList.forEach((file) => {
|
|
43876
|
+
const { layer: layer2, full_path, asis_source, source } = file;
|
|
43877
|
+
const diff = __privateGet(this, _tabContainer).shadowRoot.querySelector(`nine-diff.${layer2}`);
|
|
43878
|
+
if (diff && typeof diff.initialize === "function") {
|
|
43879
|
+
const lang = detectLanguage(full_path);
|
|
43880
|
+
diff.initialize(asis_source || "", source || "", lang);
|
|
43888
43881
|
}
|
|
43889
43882
|
});
|
|
43890
|
-
|
|
43883
|
+
if (__privateGet(this, _tabContainer) && typeof __privateGet(this, _tabContainer).initialize === "function") {
|
|
43884
|
+
__privateGet(this, _tabContainer).initialize();
|
|
43885
|
+
}
|
|
43886
|
+
}, 50);
|
|
43891
43887
|
return this;
|
|
43892
43888
|
}
|
|
43893
43889
|
}
|
|
@@ -43897,11 +43893,11 @@ _fileList = new WeakMap();
|
|
|
43897
43893
|
_host = new WeakMap();
|
|
43898
43894
|
_NineDiffPopup_instances = new WeakSet();
|
|
43899
43895
|
/**
|
|
43900
|
-
* π‘
|
|
43896
|
+
* π‘ μ€νμΌ κ°μ μλ κΉ¨λν μμ μ€μΌν΄λ© μ μΈ
|
|
43901
43897
|
*/
|
|
43902
43898
|
renderScaffolding_fn = function() {
|
|
43903
43899
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43904
|
-
const appVersion = "0.1.
|
|
43900
|
+
const appVersion = "0.1.293";
|
|
43905
43901
|
this.shadowRoot.innerHTML = `
|
|
43906
43902
|
<style>
|
|
43907
43903
|
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${appVersion}/dist/css/nine-mu.css";
|
|
@@ -44240,7 +44236,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44240
44236
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
44241
44237
|
this.shadowRoot.innerHTML = `
|
|
44242
44238
|
<style>
|
|
44243
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44239
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.293"}/dist/css/nine-mu.css";
|
|
44244
44240
|
${customImport}
|
|
44245
44241
|
</style>
|
|
44246
44242
|
|
|
@@ -44334,7 +44330,7 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44334
44330
|
customElements.define("nine-chat-progress", ProgressMessage);
|
|
44335
44331
|
}
|
|
44336
44332
|
const NineMu = {
|
|
44337
|
-
version: "0.1.
|
|
44333
|
+
version: "0.1.293",
|
|
44338
44334
|
init: (config2) => {
|
|
44339
44335
|
trace$1.log("π οΈ Nine-Mu Engine initialized", config2);
|
|
44340
44336
|
}
|