@nine-lab/nine-mu 0.1.293 β 0.1.295
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 +17 -13
- 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 +23 -20
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.294"}/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.294"}/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,15 +43862,21 @@ 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
|
});
|
|
43876
|
+
__privateGet(this, _tabContainer).innerHTML = totalTabHtml;
|
|
43877
|
+
if (__privateGet(this, _tabContainer) && typeof __privateGet(this, _tabContainer).connectedCallback === "function") {
|
|
43878
|
+
__privateGet(this, _tabContainer).connectedCallback();
|
|
43879
|
+
}
|
|
43874
43880
|
requestAnimationFrame(() => {
|
|
43875
43881
|
requestAnimationFrame(() => {
|
|
43876
43882
|
fileList.forEach((file) => {
|
|
@@ -43879,8 +43885,6 @@ class NineDiffPopup extends HTMLElement {
|
|
|
43879
43885
|
if (diff && typeof diff.initialize === "function") {
|
|
43880
43886
|
const lang = detectLanguage(full_path);
|
|
43881
43887
|
diff.initialize(asis_source || "", source || "", lang);
|
|
43882
|
-
} else {
|
|
43883
|
-
trace.error(`β λμ μλν° νμ μ μ€: nine-diff.${layer2}`);
|
|
43884
43888
|
}
|
|
43885
43889
|
});
|
|
43886
43890
|
if (__privateGet(this, _tabContainer) && typeof __privateGet(this, _tabContainer).initialize === "function") {
|
|
@@ -43897,11 +43901,11 @@ _fileList = new WeakMap();
|
|
|
43897
43901
|
_host = new WeakMap();
|
|
43898
43902
|
_NineDiffPopup_instances = new WeakSet();
|
|
43899
43903
|
/**
|
|
43900
|
-
* π‘
|
|
43904
|
+
* π‘ μ€νμΌ κ°μ μλ μμ λ€μ΄μΌλ‘κ·Έ κ»λ°κΈ° λ λλ§
|
|
43901
43905
|
*/
|
|
43902
43906
|
renderScaffolding_fn = function() {
|
|
43903
43907
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43904
|
-
const appVersion = "0.1.
|
|
43908
|
+
const appVersion = "0.1.294";
|
|
43905
43909
|
this.shadowRoot.innerHTML = `
|
|
43906
43910
|
<style>
|
|
43907
43911
|
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${appVersion}/dist/css/nine-mu.css";
|
|
@@ -44240,7 +44244,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44240
44244
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
44241
44245
|
this.shadowRoot.innerHTML = `
|
|
44242
44246
|
<style>
|
|
44243
|
-
@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.294"}/dist/css/nine-mu.css";
|
|
44244
44248
|
${customImport}
|
|
44245
44249
|
</style>
|
|
44246
44250
|
|
|
@@ -44334,7 +44338,7 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44334
44338
|
customElements.define("nine-chat-progress", ProgressMessage);
|
|
44335
44339
|
}
|
|
44336
44340
|
const NineMu = {
|
|
44337
|
-
version: "0.1.
|
|
44341
|
+
version: "0.1.294",
|
|
44338
44342
|
init: (config2) => {
|
|
44339
44343
|
trace$1.log("π οΈ Nine-Mu Engine initialized", config2);
|
|
44340
44344
|
}
|