@nine-lab/nine-mu 0.1.294 β 0.1.296
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 +30 -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 +2 -2
- package/src/components/NineDiffPopup.js +37 -26
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.295"}/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.295"}/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;
|
|
@@ -43862,28 +43862,36 @@ class NineDiffPopup extends HTMLElement {
|
|
|
43862
43862
|
if (lower.endsWith(".json")) return "json";
|
|
43863
43863
|
return "javascript";
|
|
43864
43864
|
};
|
|
43865
|
+
let totalTabHtml = "";
|
|
43865
43866
|
fileList.forEach((file) => {
|
|
43866
43867
|
const { layer: layer2, full_path } = file;
|
|
43867
43868
|
const fileName = full_path.split("/").pop() || "Unknown";
|
|
43868
43869
|
const captionName = `${layer2.toUpperCase()} (${fileName})`;
|
|
43869
|
-
|
|
43870
|
-
|
|
43871
|
-
|
|
43872
|
-
|
|
43870
|
+
totalTabHtml += `
|
|
43871
|
+
<nine-tab-page caption="${captionName}">
|
|
43872
|
+
<nine-diff class="${layer2}"></nine-diff>
|
|
43873
|
+
</nine-tab-page>
|
|
43874
|
+
`;
|
|
43873
43875
|
});
|
|
43874
|
-
|
|
43875
|
-
|
|
43876
|
-
|
|
43877
|
-
|
|
43878
|
-
|
|
43879
|
-
|
|
43880
|
-
|
|
43876
|
+
__privateGet(this, _tabContainer).innerHTML = totalTabHtml;
|
|
43877
|
+
if (__privateGet(this, _tabContainer) && typeof __privateGet(this, _tabContainer).connectedCallback === "function") {
|
|
43878
|
+
__privateGet(this, _tabContainer).connectedCallback();
|
|
43879
|
+
}
|
|
43880
|
+
requestAnimationFrame(() => {
|
|
43881
|
+
requestAnimationFrame(() => {
|
|
43882
|
+
fileList.forEach((file) => {
|
|
43883
|
+
const { layer: layer2, full_path, asis_source, source } = file;
|
|
43884
|
+
const diff = __privateGet(this, _tabContainer).shadowRoot.querySelector(`nine-diff.${layer2}`);
|
|
43885
|
+
if (diff && typeof diff.initialize === "function") {
|
|
43886
|
+
const lang = detectLanguage(full_path);
|
|
43887
|
+
diff.initialize(asis_source || "", source || "", lang);
|
|
43888
|
+
}
|
|
43889
|
+
});
|
|
43890
|
+
if (__privateGet(this, _tabContainer) && typeof __privateGet(this, _tabContainer).initialize === "function") {
|
|
43891
|
+
__privateGet(this, _tabContainer).initialize();
|
|
43881
43892
|
}
|
|
43882
43893
|
});
|
|
43883
|
-
|
|
43884
|
-
__privateGet(this, _tabContainer).initialize();
|
|
43885
|
-
}
|
|
43886
|
-
}, 50);
|
|
43894
|
+
});
|
|
43887
43895
|
return this;
|
|
43888
43896
|
}
|
|
43889
43897
|
}
|
|
@@ -43893,11 +43901,11 @@ _fileList = new WeakMap();
|
|
|
43893
43901
|
_host = new WeakMap();
|
|
43894
43902
|
_NineDiffPopup_instances = new WeakSet();
|
|
43895
43903
|
/**
|
|
43896
|
-
* π‘ μ€νμΌ κ°μ μλ
|
|
43904
|
+
* π‘ μ€νμΌ κ°μ μλ μμ λ€μ΄μΌλ‘κ·Έ κ»λ°κΈ° λ λλ§
|
|
43897
43905
|
*/
|
|
43898
43906
|
renderScaffolding_fn = function() {
|
|
43899
43907
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43900
|
-
const appVersion = "0.1.
|
|
43908
|
+
const appVersion = "0.1.295";
|
|
43901
43909
|
this.shadowRoot.innerHTML = `
|
|
43902
43910
|
<style>
|
|
43903
43911
|
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${appVersion}/dist/css/nine-mu.css";
|
|
@@ -44236,7 +44244,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44236
44244
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
44237
44245
|
this.shadowRoot.innerHTML = `
|
|
44238
44246
|
<style>
|
|
44239
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44247
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.295"}/dist/css/nine-mu.css";
|
|
44240
44248
|
${customImport}
|
|
44241
44249
|
</style>
|
|
44242
44250
|
|
|
@@ -44330,7 +44338,7 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44330
44338
|
customElements.define("nine-chat-progress", ProgressMessage);
|
|
44331
44339
|
}
|
|
44332
44340
|
const NineMu = {
|
|
44333
|
-
version: "0.1.
|
|
44341
|
+
version: "0.1.295",
|
|
44334
44342
|
init: (config2) => {
|
|
44335
44343
|
trace$1.log("π οΈ Nine-Mu Engine initialized", config2);
|
|
44336
44344
|
}
|