@nine-lab/nine-mu 0.1.359 → 0.1.360
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
|
@@ -17538,7 +17538,7 @@ render_fn = function() {
|
|
|
17538
17538
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
17539
17539
|
this.shadowRoot.innerHTML = `
|
|
17540
17540
|
<style>
|
|
17541
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
17541
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.359"}/dist/css/nine-mu.css";
|
|
17542
17542
|
${customImport}
|
|
17543
17543
|
</style>
|
|
17544
17544
|
<div class="wrapper">
|
|
@@ -43788,7 +43788,7 @@ class NineDiff extends HTMLElement {
|
|
|
43788
43788
|
const customImport = nine.cssPath ? `@import "${nine.cssPath}/nine-mu.css";` : "";
|
|
43789
43789
|
this.shadowRoot.innerHTML = `
|
|
43790
43790
|
<style>
|
|
43791
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43791
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.359"}/dist/css/nine-mu.css";
|
|
43792
43792
|
${customImport}
|
|
43793
43793
|
</style>
|
|
43794
43794
|
|
|
@@ -43928,7 +43928,7 @@ renderScaffolding_fn = function() {
|
|
|
43928
43928
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
43929
43929
|
this.shadowRoot.innerHTML = `
|
|
43930
43930
|
<style>
|
|
43931
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43931
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.359"}/dist/css/nine-mu.css";
|
|
43932
43932
|
${customImport}
|
|
43933
43933
|
</style>
|
|
43934
43934
|
|
|
@@ -44037,7 +44037,7 @@ render_fn2 = function() {
|
|
|
44037
44037
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
44038
44038
|
this.shadowRoot.innerHTML = `
|
|
44039
44039
|
<style>
|
|
44040
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44040
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.359"}/dist/css/nine-mu.css";
|
|
44041
44041
|
${customImport}
|
|
44042
44042
|
</style>
|
|
44043
44043
|
|
|
@@ -44367,7 +44367,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44367
44367
|
const customImport = nine.cssPath ? `@import "${nine.cssPath}/nine-mu.css";` : "";
|
|
44368
44368
|
this.shadowRoot.innerHTML = `
|
|
44369
44369
|
<style>
|
|
44370
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44370
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.359"}/dist/css/nine-mu.css";
|
|
44371
44371
|
${customImport}
|
|
44372
44372
|
</style>
|
|
44373
44373
|
|
|
@@ -44467,11 +44467,10 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44467
44467
|
}
|
|
44468
44468
|
const NineExceptionStyles = {
|
|
44469
44469
|
container: {
|
|
44470
|
-
|
|
44471
|
-
|
|
44472
|
-
|
|
44470
|
+
minHeight: "100%",
|
|
44471
|
+
flexGrow: 1,
|
|
44472
|
+
padding: "25px",
|
|
44473
44473
|
background: "#121314",
|
|
44474
|
-
// 터미널 다크 블랙 배경
|
|
44475
44474
|
// ⭐ 모든 요소가 완벽한 터미널 정렬을 갖추도록 고정폭 서체를 부모에 강제 주입
|
|
44476
44475
|
fontFamily: 'Consolas, Monaco, "Courier New", monospace',
|
|
44477
44476
|
textAlign: "left",
|
|
@@ -44550,6 +44549,9 @@ class NineExceptionHook extends React.Component {
|
|
|
44550
44549
|
}
|
|
44551
44550
|
componentDidCatch(error, errorInfo) {
|
|
44552
44551
|
console.error("🚨 [Nine-Library] 본문 렌더링 에러 포착:", error);
|
|
44552
|
+
this.setState({
|
|
44553
|
+
errorInfo: errorInfo || null
|
|
44554
|
+
});
|
|
44553
44555
|
if (this.props.onCatch) {
|
|
44554
44556
|
this.props.onCatch(error, errorInfo);
|
|
44555
44557
|
}
|
|
@@ -44574,7 +44576,7 @@ class NineExceptionHook extends React.Component {
|
|
|
44574
44576
|
}
|
|
44575
44577
|
handleLocationChange() {
|
|
44576
44578
|
setTimeout(() => {
|
|
44577
|
-
if (this.state.hasError && this.
|
|
44579
|
+
if (this.state.hasError && this.lastPath !== window.location.pathname) {
|
|
44578
44580
|
console.log("[Nine-Library] 페이지 주소 변경 감지 -> 에러 상태 초기화");
|
|
44579
44581
|
this.lastPath = window.location.pathname;
|
|
44580
44582
|
this.setState({ hasError: false, error: null, reportStatus: "idle" });
|
|
@@ -44596,13 +44598,24 @@ class NineExceptionHook extends React.Component {
|
|
|
44596
44598
|
}, 600);
|
|
44597
44599
|
}
|
|
44598
44600
|
render() {
|
|
44599
|
-
var _a2;
|
|
44601
|
+
var _a2, _b;
|
|
44600
44602
|
if (this.state.hasError) {
|
|
44601
44603
|
if (this.props.fallback) {
|
|
44602
44604
|
return this.props.fallback(this.state.error);
|
|
44603
44605
|
}
|
|
44604
44606
|
const errorMessage = ((_a2 = this.state.error) == null ? void 0 : _a2.message) || String(this.state.error);
|
|
44605
44607
|
const customStyles = this.props.styles || {};
|
|
44608
|
+
let errorLocation = "";
|
|
44609
|
+
if ((_b = this.state.errorInfo) == null ? void 0 : _b.componentStack) {
|
|
44610
|
+
const lines = this.state.errorInfo.componentStack.trim().split("\n");
|
|
44611
|
+
const targetLine = lines[0] || "";
|
|
44612
|
+
const match = targetLine.match(/at\s+(\w+)\s+\((.*)\)/) || targetLine.match(/at\s+(.*)/);
|
|
44613
|
+
if (match) {
|
|
44614
|
+
errorLocation = match[2] ? `${match[1]} (${match[2]})` : match[1];
|
|
44615
|
+
} else {
|
|
44616
|
+
errorLocation = targetLine.trim();
|
|
44617
|
+
}
|
|
44618
|
+
}
|
|
44606
44619
|
return React.createElement(
|
|
44607
44620
|
"div",
|
|
44608
44621
|
{
|
|
@@ -44614,9 +44627,15 @@ class NineExceptionHook extends React.Component {
|
|
|
44614
44627
|
{ style: { ...NineExceptionStyles.systemError, ...customStyles.systemError } },
|
|
44615
44628
|
"[SYSTEM] COMPONENT RENDER ERROR DETECTED"
|
|
44616
44629
|
),
|
|
44617
|
-
// 2. 에러 내용
|
|
44630
|
+
// 2. 에러 내용 (aa is not defined)
|
|
44618
44631
|
React.createElement("pre", { style: { ...NineExceptionStyles.pre, ...customStyles.pre } }, errorMessage),
|
|
44619
|
-
// 3.
|
|
44632
|
+
// ⭐ 3. [추가] 파싱된 에러 발생 파일명 및 라인 위치 (터미널 그레이 색상 매칭)
|
|
44633
|
+
errorLocation && React.createElement(
|
|
44634
|
+
"div",
|
|
44635
|
+
{ style: { color: "#666", fontSize: "14px", margin: "0 0 12px 0", fontFamily: "Consolas, Monaco, monospace", lineHeight: "1" } },
|
|
44636
|
+
` at ${errorLocation}`
|
|
44637
|
+
),
|
|
44638
|
+
// 4. CLI 프롬프트 영역
|
|
44620
44639
|
React.createElement(
|
|
44621
44640
|
"div",
|
|
44622
44641
|
{ style: { ...NineExceptionStyles.footer, ...customStyles.footer } },
|
|
@@ -44652,7 +44671,7 @@ class NineExceptionHook extends React.Component {
|
|
|
44652
44671
|
}
|
|
44653
44672
|
}
|
|
44654
44673
|
const NineMu = {
|
|
44655
|
-
version: "0.1.
|
|
44674
|
+
version: "0.1.359",
|
|
44656
44675
|
init: (config2) => {
|
|
44657
44676
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
44658
44677
|
}
|