@nine-lab/nine-mu 0.1.340 โ 0.1.341
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 +41 -39
- 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/exception/ExceptionHook.js +37 -32
package/dist/nine-mu.js
CHANGED
|
@@ -17537,7 +17537,7 @@ render_fn = function() {
|
|
|
17537
17537
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
17538
17538
|
this.shadowRoot.innerHTML = `
|
|
17539
17539
|
<style>
|
|
17540
|
-
@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.340"}/dist/css/nine-mu.css";
|
|
17541
17541
|
${customImport}
|
|
17542
17542
|
</style>
|
|
17543
17543
|
<div class="wrapper">
|
|
@@ -43787,7 +43787,7 @@ class NineDiff extends HTMLElement {
|
|
|
43787
43787
|
const customImport = nine.cssPath ? `@import "${nine.cssPath}/nine-mu.css";` : "";
|
|
43788
43788
|
this.shadowRoot.innerHTML = `
|
|
43789
43789
|
<style>
|
|
43790
|
-
@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.340"}/dist/css/nine-mu.css";
|
|
43791
43791
|
${customImport}
|
|
43792
43792
|
</style>
|
|
43793
43793
|
|
|
@@ -43927,7 +43927,7 @@ renderScaffolding_fn = function() {
|
|
|
43927
43927
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
43928
43928
|
this.shadowRoot.innerHTML = `
|
|
43929
43929
|
<style>
|
|
43930
|
-
@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.340"}/dist/css/nine-mu.css";
|
|
43931
43931
|
${customImport}
|
|
43932
43932
|
</style>
|
|
43933
43933
|
|
|
@@ -44036,7 +44036,7 @@ render_fn2 = function() {
|
|
|
44036
44036
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
44037
44037
|
this.shadowRoot.innerHTML = `
|
|
44038
44038
|
<style>
|
|
44039
|
-
@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.340"}/dist/css/nine-mu.css";
|
|
44040
44040
|
${customImport}
|
|
44041
44041
|
</style>
|
|
44042
44042
|
|
|
@@ -44366,7 +44366,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44366
44366
|
const customImport = nine.cssPath ? `@import "${nine.cssPath}/nine-mu.css";` : "";
|
|
44367
44367
|
this.shadowRoot.innerHTML = `
|
|
44368
44368
|
<style>
|
|
44369
|
-
@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.340"}/dist/css/nine-mu.css";
|
|
44370
44370
|
${customImport}
|
|
44371
44371
|
</style>
|
|
44372
44372
|
|
|
@@ -44476,7 +44476,7 @@ class ExceptionHook extends HTMLElement {
|
|
|
44476
44476
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
44477
44477
|
this.shadowRoot.innerHTML = `
|
|
44478
44478
|
<style>
|
|
44479
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44479
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.340"}/dist/css/nine-mu.css";
|
|
44480
44480
|
${customImport}
|
|
44481
44481
|
</style>
|
|
44482
44482
|
|
|
@@ -44621,46 +44621,48 @@ _handlePromiseError = new WeakMap();
|
|
|
44621
44621
|
_handleLocationChange = new WeakMap();
|
|
44622
44622
|
_sendToAiAction = new WeakMap();
|
|
44623
44623
|
renderError_fn = function(errorMessage, errorStack) {
|
|
44624
|
-
|
|
44625
|
-
|
|
44626
|
-
|
|
44627
|
-
|
|
44628
|
-
|
|
44629
|
-
|
|
44630
|
-
|
|
44631
|
-
|
|
44632
|
-
|
|
44633
|
-
|
|
44634
|
-
|
|
44635
|
-
|
|
44636
|
-
|
|
44637
|
-
|
|
44638
|
-
|
|
44639
|
-
<
|
|
44640
|
-
|
|
44641
|
-
|
|
44642
|
-
|
|
44643
|
-
|
|
44644
|
-
<
|
|
44645
|
-
|
|
44646
|
-
|
|
44624
|
+
if (__privateGet(this, _hasError)) return;
|
|
44625
|
+
__privateSet(this, _hasError, true);
|
|
44626
|
+
setTimeout(() => {
|
|
44627
|
+
console.log("๐จ [nine-exception-hook] ๋ฆฌ์กํธ ์ฌ์ดํด ์ข
๋ฃ ํ ์๋ฌ UI ์ต์ข
๋ ๋๋ง");
|
|
44628
|
+
const coreContainer = this.shadowRoot.querySelector(".nine-hook-core");
|
|
44629
|
+
if (coreContainer) {
|
|
44630
|
+
coreContainer.style.display = "none";
|
|
44631
|
+
console.log("๐จ [nine-exception-hook] <slot> ๋ณธ๋ฌธ ์์ญ ์ปจํ
์ด๋ ์จ๊น");
|
|
44632
|
+
}
|
|
44633
|
+
const exceptionBoard = this.shadowRoot.querySelector(".nine-exception-board");
|
|
44634
|
+
if (!exceptionBoard) {
|
|
44635
|
+
console.error("โ [nine-exception-hook] .nine-exception-board ์๋ฆฌ๋จผํธ๋ฅผ ์ฐพ์ ์ ์์ต๋๋ค.");
|
|
44636
|
+
return;
|
|
44637
|
+
}
|
|
44638
|
+
const errorHTML = `
|
|
44639
|
+
<div class="nine-error-container">
|
|
44640
|
+
<h3 class="nine-error-title">โ ๏ธ ์์คํ
์์ธ ๊ฐ์ง (${this.tagName.toLowerCase()})</h3>
|
|
44641
|
+
<p class="nine-error-label">[์๋ฌ ์์ธ ๋ก๊ทธ]:</p>
|
|
44642
|
+
<pre class="nine-error-log">${errorMessage}</pre>
|
|
44643
|
+
|
|
44644
|
+
<div class="nine-action-area" style="margin-top: 20px; display: flex; align-items: center; gap: 15px;">
|
|
44645
|
+
<button class="nine-ai-btn">๐ค AI์๊ฒ ์์ค์ฝ๋ ์์ ์์ฒญ</button>
|
|
44646
|
+
<div class="nine-error-footer">
|
|
44647
|
+
๋ฒํผ์ ๋๋ฅด๋ฉด AI๊ฐ ๋ก๊ทธ ๋ฐ ์ปดํฌ๋ํธ ๋งต์ ์ญ์ถ์ ํ์ฌ ์์ ์ ์์ํฉ๋๋ค.
|
|
44648
|
+
</div>
|
|
44647
44649
|
</div>
|
|
44648
44650
|
</div>
|
|
44649
|
-
|
|
44650
|
-
|
|
44651
|
-
|
|
44652
|
-
|
|
44653
|
-
|
|
44654
|
-
|
|
44655
|
-
|
|
44656
|
-
|
|
44657
|
-
}
|
|
44651
|
+
`;
|
|
44652
|
+
exceptionBoard.innerHTML = errorHTML;
|
|
44653
|
+
console.log("๐จ [nine-exception-hook] Shadow DOM์ ์๋ฌ UI ์ต์ข
์ฝ์
์ฑ๊ณต");
|
|
44654
|
+
const aiBtn = this.shadowRoot.querySelector(".nine-ai-btn");
|
|
44655
|
+
if (aiBtn) {
|
|
44656
|
+
aiBtn.addEventListener("click", () => __privateGet(this, _sendToAiAction).call(this, errorMessage, errorStack));
|
|
44657
|
+
console.log("๐จ [nine-exception-hook] AI ์์ฒญ ๋ฒํผ ์ด๋ฒคํธ ๋ฆฌ์ค๋ ์ต์ข
๋ฐ์ธ๋ฉ ์ฑ๊ณต");
|
|
44658
|
+
}
|
|
44659
|
+
}, 0);
|
|
44658
44660
|
};
|
|
44659
44661
|
if (!customElements.get("nine-exception-hook")) {
|
|
44660
44662
|
customElements.define("nine-exception-hook", ExceptionHook);
|
|
44661
44663
|
}
|
|
44662
44664
|
const NineMu = {
|
|
44663
|
-
version: "0.1.
|
|
44665
|
+
version: "0.1.340",
|
|
44664
44666
|
init: (config2) => {
|
|
44665
44667
|
trace$1.log("๐ ๏ธ Nine-Mu Engine initialized", config2);
|
|
44666
44668
|
}
|