@nine-lab/nine-mu 0.1.352 → 0.1.353
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 +35 -31
- 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 +28 -28
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.352"}/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.352"}/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.352"}/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.352"}/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.352"}/dist/css/nine-mu.css";
|
|
44371
44371
|
${customImport}
|
|
44372
44372
|
</style>
|
|
44373
44373
|
|
|
@@ -44467,33 +44467,34 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44467
44467
|
}
|
|
44468
44468
|
const NineExceptionStyles = {
|
|
44469
44469
|
container: {
|
|
44470
|
-
padding: "
|
|
44470
|
+
padding: "25px",
|
|
44471
44471
|
margin: "20px",
|
|
44472
44472
|
background: "#121314",
|
|
44473
44473
|
// 터미널 다크 블랙 배경
|
|
44474
44474
|
border: "1px solid #343A40",
|
|
44475
|
-
// 외곽 메탈릭
|
|
44475
|
+
// 외곽 메탈릭 테두리
|
|
44476
44476
|
borderRadius: "6px",
|
|
44477
44477
|
fontFamily: 'Consolas, Monaco, "Courier New", monospace',
|
|
44478
|
-
// 완벽한 고정폭 서체
|
|
44479
44478
|
textAlign: "left",
|
|
44480
44479
|
boxShadow: "0 4px 12px rgba(0,0,0,0.3)",
|
|
44481
|
-
lineHeight: "1.
|
|
44480
|
+
lineHeight: "1.2"
|
|
44481
|
+
// ⭐ 줄간격을 터미널처럼 촘촘하게 제어
|
|
44482
44482
|
},
|
|
44483
44483
|
systemError: {
|
|
44484
44484
|
color: "#E53E3E",
|
|
44485
|
-
//
|
|
44485
|
+
// 터미널 레드 Warning
|
|
44486
44486
|
fontWeight: "bold",
|
|
44487
44487
|
fontSize: "14px",
|
|
44488
|
-
margin: "0 0
|
|
44488
|
+
margin: "0 0 8px 0",
|
|
44489
|
+
// 하단 마진 축소
|
|
44489
44490
|
letterSpacing: "0.5px"
|
|
44490
44491
|
},
|
|
44491
|
-
// 내부 테두리 박스를 완전히 제거하고 순수 텍스트만 출력되도록 수정
|
|
44492
44492
|
pre: {
|
|
44493
44493
|
background: "transparent",
|
|
44494
44494
|
color: "#F8F9FA",
|
|
44495
44495
|
padding: "0",
|
|
44496
|
-
margin: "0 0
|
|
44496
|
+
margin: "0 0 12px 0",
|
|
44497
|
+
// 하단 마진 축소하여 다음 라인과 밀착
|
|
44497
44498
|
border: "none",
|
|
44498
44499
|
overflowX: "auto",
|
|
44499
44500
|
whiteSpace: "pre-wrap",
|
|
@@ -44503,28 +44504,31 @@ const NineExceptionStyles = {
|
|
|
44503
44504
|
footer: {
|
|
44504
44505
|
fontSize: "14px",
|
|
44505
44506
|
color: "#E2E8F0",
|
|
44507
|
+
margin: "0",
|
|
44508
|
+
// 불필요한 공백 제거
|
|
44506
44509
|
display: "flex",
|
|
44507
44510
|
flexDirection: "column",
|
|
44508
|
-
gap: "
|
|
44511
|
+
gap: "6px"
|
|
44509
44512
|
},
|
|
44510
44513
|
promptRow: {
|
|
44511
|
-
display: "
|
|
44512
|
-
|
|
44513
|
-
|
|
44514
|
+
display: "block",
|
|
44515
|
+
// 자연스러운 텍스트 흐름을 위해 block 처리
|
|
44516
|
+
margin: "0"
|
|
44514
44517
|
},
|
|
44515
|
-
//
|
|
44516
|
-
|
|
44518
|
+
// ⭐ y 글자에 직접 바인딩할 터미널 링크 스타일
|
|
44519
|
+
cliLink: {
|
|
44517
44520
|
background: "transparent",
|
|
44518
44521
|
color: "#38A169",
|
|
44519
|
-
// 터미널 그린
|
|
44522
|
+
// 터미널 그린
|
|
44520
44523
|
border: "none",
|
|
44521
|
-
padding: "0",
|
|
44524
|
+
padding: "0 2px",
|
|
44522
44525
|
fontFamily: "Consolas, Monaco, monospace",
|
|
44523
44526
|
fontSize: "14px",
|
|
44524
44527
|
fontWeight: "bold",
|
|
44525
44528
|
cursor: "pointer",
|
|
44526
44529
|
textDecoration: "underline",
|
|
44527
|
-
textUnderlineOffset: "
|
|
44530
|
+
textUnderlineOffset: "2px",
|
|
44531
|
+
display: "inline"
|
|
44528
44532
|
}
|
|
44529
44533
|
};
|
|
44530
44534
|
class NineExceptionHook extends React.Component {
|
|
@@ -44555,7 +44559,6 @@ class NineExceptionHook extends React.Component {
|
|
|
44555
44559
|
document.removeEventListener("click", this.handleLocationChange, true);
|
|
44556
44560
|
window.removeEventListener("keydown", this.handleKeyDown);
|
|
44557
44561
|
}
|
|
44558
|
-
// 실제 사용자가 키보드로 'Y' 또는 'y'를 누르면 마우스 클릭과 동일하게 관제탑 전송 실행
|
|
44559
44562
|
handleKeyDown(e) {
|
|
44560
44563
|
if (this.state.hasError && this.state.reportStatus === "idle") {
|
|
44561
44564
|
if (e.key === "y" || e.key === "Y") {
|
|
@@ -44600,30 +44603,31 @@ class NineExceptionHook extends React.Component {
|
|
|
44600
44603
|
{
|
|
44601
44604
|
style: { ...NineExceptionStyles.container, ...customStyles.container, ...this.props.containerStyle }
|
|
44602
44605
|
},
|
|
44603
|
-
// 1. 에러 감지
|
|
44606
|
+
// 1. 에러 감지 로그
|
|
44604
44607
|
React.createElement(
|
|
44605
44608
|
"div",
|
|
44606
44609
|
{ style: { ...NineExceptionStyles.systemError, ...customStyles.systemError } },
|
|
44607
44610
|
"[SYSTEM] COMPONENT RENDER ERROR DETECTED"
|
|
44608
44611
|
),
|
|
44609
|
-
// 2. 에러
|
|
44612
|
+
// 2. 에러 내용 (하단 마진을 줄여 다음 줄과 간격을 맞춤)
|
|
44610
44613
|
React.createElement("pre", { style: { ...NineExceptionStyles.pre, ...customStyles.pre } }, errorMessage),
|
|
44611
|
-
// 3. CLI
|
|
44614
|
+
// 3. CLI 프롬프트 및 링크 영역
|
|
44612
44615
|
React.createElement(
|
|
44613
44616
|
"div",
|
|
44614
44617
|
{ style: { ...NineExceptionStyles.footer, ...customStyles.footer } },
|
|
44615
44618
|
this.state.reportStatus === "idle" && React.createElement(
|
|
44616
44619
|
"div",
|
|
44617
44620
|
{ style: NineExceptionStyles.promptRow },
|
|
44618
|
-
React.createElement("span", null, "Send error log to Control Tower (
|
|
44621
|
+
React.createElement("span", null, "Send error log to Control Tower ("),
|
|
44619
44622
|
React.createElement(
|
|
44620
44623
|
"button",
|
|
44621
44624
|
{
|
|
44622
|
-
style: { ...NineExceptionStyles.
|
|
44625
|
+
style: { ...NineExceptionStyles.cliLink, ...customStyles.cliLink },
|
|
44623
44626
|
onClick: this.handleReport
|
|
44624
44627
|
},
|
|
44625
|
-
"
|
|
44626
|
-
)
|
|
44628
|
+
"y"
|
|
44629
|
+
),
|
|
44630
|
+
React.createElement("span", null, "/n)?")
|
|
44627
44631
|
),
|
|
44628
44632
|
this.state.reportStatus === "sending" && React.createElement(
|
|
44629
44633
|
"div",
|
|
@@ -44643,7 +44647,7 @@ class NineExceptionHook extends React.Component {
|
|
|
44643
44647
|
}
|
|
44644
44648
|
}
|
|
44645
44649
|
const NineMu = {
|
|
44646
|
-
version: "0.1.
|
|
44650
|
+
version: "0.1.352",
|
|
44647
44651
|
init: (config2) => {
|
|
44648
44652
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
44649
44653
|
}
|