@nine-lab/nine-mu 0.1.358 → 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,14 +44467,10 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44467
44467
|
}
|
|
44468
44468
|
const NineExceptionStyles = {
|
|
44469
44469
|
container: {
|
|
44470
|
-
|
|
44471
|
-
|
|
44472
|
-
|
|
44473
|
-
// 좌우 마진을 없애 부모 너비에 100% 꽉 차게 설정
|
|
44470
|
+
minHeight: "100%",
|
|
44471
|
+
flexGrow: 1,
|
|
44472
|
+
padding: "25px",
|
|
44474
44473
|
background: "#121314",
|
|
44475
|
-
// 터미널 다크 블랙 배경
|
|
44476
|
-
border: "1px solid #343A40",
|
|
44477
|
-
borderRadius: "6px",
|
|
44478
44474
|
// ⭐ 모든 요소가 완벽한 터미널 정렬을 갖추도록 고정폭 서체를 부모에 강제 주입
|
|
44479
44475
|
fontFamily: 'Consolas, Monaco, "Courier New", monospace',
|
|
44480
44476
|
textAlign: "left",
|
|
@@ -44499,7 +44495,7 @@ const NineExceptionStyles = {
|
|
|
44499
44495
|
},
|
|
44500
44496
|
pre: {
|
|
44501
44497
|
background: "transparent",
|
|
44502
|
-
color: "#
|
|
44498
|
+
color: "#666",
|
|
44503
44499
|
padding: "0",
|
|
44504
44500
|
margin: "0",
|
|
44505
44501
|
// pre 태그 고유의 불규칙한 여백 완전 제거
|
|
@@ -44553,6 +44549,9 @@ class NineExceptionHook extends React.Component {
|
|
|
44553
44549
|
}
|
|
44554
44550
|
componentDidCatch(error, errorInfo) {
|
|
44555
44551
|
console.error("🚨 [Nine-Library] 본문 렌더링 에러 포착:", error);
|
|
44552
|
+
this.setState({
|
|
44553
|
+
errorInfo: errorInfo || null
|
|
44554
|
+
});
|
|
44556
44555
|
if (this.props.onCatch) {
|
|
44557
44556
|
this.props.onCatch(error, errorInfo);
|
|
44558
44557
|
}
|
|
@@ -44577,7 +44576,7 @@ class NineExceptionHook extends React.Component {
|
|
|
44577
44576
|
}
|
|
44578
44577
|
handleLocationChange() {
|
|
44579
44578
|
setTimeout(() => {
|
|
44580
|
-
if (this.state.hasError && this.
|
|
44579
|
+
if (this.state.hasError && this.lastPath !== window.location.pathname) {
|
|
44581
44580
|
console.log("[Nine-Library] 페이지 주소 변경 감지 -> 에러 상태 초기화");
|
|
44582
44581
|
this.lastPath = window.location.pathname;
|
|
44583
44582
|
this.setState({ hasError: false, error: null, reportStatus: "idle" });
|
|
@@ -44599,13 +44598,24 @@ class NineExceptionHook extends React.Component {
|
|
|
44599
44598
|
}, 600);
|
|
44600
44599
|
}
|
|
44601
44600
|
render() {
|
|
44602
|
-
var _a2;
|
|
44601
|
+
var _a2, _b;
|
|
44603
44602
|
if (this.state.hasError) {
|
|
44604
44603
|
if (this.props.fallback) {
|
|
44605
44604
|
return this.props.fallback(this.state.error);
|
|
44606
44605
|
}
|
|
44607
44606
|
const errorMessage = ((_a2 = this.state.error) == null ? void 0 : _a2.message) || String(this.state.error);
|
|
44608
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
|
+
}
|
|
44609
44619
|
return React.createElement(
|
|
44610
44620
|
"div",
|
|
44611
44621
|
{
|
|
@@ -44617,9 +44627,15 @@ class NineExceptionHook extends React.Component {
|
|
|
44617
44627
|
{ style: { ...NineExceptionStyles.systemError, ...customStyles.systemError } },
|
|
44618
44628
|
"[SYSTEM] COMPONENT RENDER ERROR DETECTED"
|
|
44619
44629
|
),
|
|
44620
|
-
// 2. 에러 내용
|
|
44630
|
+
// 2. 에러 내용 (aa is not defined)
|
|
44621
44631
|
React.createElement("pre", { style: { ...NineExceptionStyles.pre, ...customStyles.pre } }, errorMessage),
|
|
44622
|
-
// 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 프롬프트 영역
|
|
44623
44639
|
React.createElement(
|
|
44624
44640
|
"div",
|
|
44625
44641
|
{ style: { ...NineExceptionStyles.footer, ...customStyles.footer } },
|
|
@@ -44655,7 +44671,7 @@ class NineExceptionHook extends React.Component {
|
|
|
44655
44671
|
}
|
|
44656
44672
|
}
|
|
44657
44673
|
const NineMu = {
|
|
44658
|
-
version: "0.1.
|
|
44674
|
+
version: "0.1.359",
|
|
44659
44675
|
init: (config2) => {
|
|
44660
44676
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
44661
44677
|
}
|