@nine-lab/nine-mu 0.1.379 → 0.1.381
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 +25 -9
- 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/hook/NineHook.js +27 -3
package/dist/nine-mu.js
CHANGED
|
@@ -11,7 +11,7 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
11
11
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
12
12
|
var _owner, _collectedFiles, _NotificationHandler_instances, handleLoggingMessage_fn, _collectModifySource, _openDiffPopup, _openRouteDiffPopup, _generateSource, _generateMenu, _mcpClient, _onAction, _onStatus, _onMessage, _owner2, _routeUrl, _chatHistory, _notiHandler, _NineChatManager_instances, connect_fn, updateStatus_fn, callTool_fn, _getSourcePath, _service, _packageName, _routesPath, _connectorUrl, _manager, _config, _$nineChatMessage, _NineChat_instances, initInteractions_fn, initActions_fn, render_fn, _sourceGenHandler, _asisEditorView, _tobeEditorView, _asisEditorEl, _tobeEditorEl, _isDirty, _initialAsisSrc, _initialTobeSrc, _languageCompartment, _isScrollSyncActive, _initCodeMirror, _checkDirtyState, _setupScrollSync, _applyDiffDecorations, _dialog, _tabContainer, _fileList, _host, _NineDiffPopup_instances, renderScaffolding_fn, handleConfirmAll_fn, handleCancel_fn, _dialog2, _diffView, _asisBackup, _host2, _NineMenuDiffPopup_instances, render_fn2, handleConfirm_fn, handleCancel_fn2, _message, _data, _unique, _init, _message2, _init2, _progressData, _progressElements, _animationIntervals, _ProgressMessage_instances, updateCurrentActiveProgress_fn, renderProgress_fn, updateProgressItemVisuals_fn, startAnimation_fn, updateProgressItem_fn, _renderer, _init3;
|
|
13
13
|
import { trace as trace$1, api, nine as nine$1 } from "@nine-lab/nine-util";
|
|
14
|
-
import React, { createContext, Suspense, useContext,
|
|
14
|
+
import React, { createContext, useState, Suspense, useContext, lazy } from "react";
|
|
15
15
|
import { Routes, Route } from "react-router-dom";
|
|
16
16
|
class Trace extends trace$1.constructor {
|
|
17
17
|
constructor() {
|
|
@@ -17539,7 +17539,7 @@ render_fn = function() {
|
|
|
17539
17539
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
17540
17540
|
this.shadowRoot.innerHTML = `
|
|
17541
17541
|
<style>
|
|
17542
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
17542
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.380"}/dist/css/nine-mu.css";
|
|
17543
17543
|
${customImport}
|
|
17544
17544
|
</style>
|
|
17545
17545
|
<div class="wrapper">
|
|
@@ -43789,7 +43789,7 @@ class NineDiff extends HTMLElement {
|
|
|
43789
43789
|
const customImport = nine.cssPath ? `@import "${nine.cssPath}/nine-mu.css";` : "";
|
|
43790
43790
|
this.shadowRoot.innerHTML = `
|
|
43791
43791
|
<style>
|
|
43792
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43792
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.380"}/dist/css/nine-mu.css";
|
|
43793
43793
|
${customImport}
|
|
43794
43794
|
</style>
|
|
43795
43795
|
|
|
@@ -43929,7 +43929,7 @@ renderScaffolding_fn = function() {
|
|
|
43929
43929
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
43930
43930
|
this.shadowRoot.innerHTML = `
|
|
43931
43931
|
<style>
|
|
43932
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43932
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.380"}/dist/css/nine-mu.css";
|
|
43933
43933
|
${customImport}
|
|
43934
43934
|
</style>
|
|
43935
43935
|
|
|
@@ -44038,7 +44038,7 @@ render_fn2 = function() {
|
|
|
44038
44038
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
44039
44039
|
this.shadowRoot.innerHTML = `
|
|
44040
44040
|
<style>
|
|
44041
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44041
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.380"}/dist/css/nine-mu.css";
|
|
44042
44042
|
${customImport}
|
|
44043
44043
|
</style>
|
|
44044
44044
|
|
|
@@ -44368,7 +44368,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44368
44368
|
const customImport = nine.cssPath ? `@import "${nine.cssPath}/nine-mu.css";` : "";
|
|
44369
44369
|
this.shadowRoot.innerHTML = `
|
|
44370
44370
|
<style>
|
|
44371
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44371
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.380"}/dist/css/nine-mu.css";
|
|
44372
44372
|
${customImport}
|
|
44373
44373
|
</style>
|
|
44374
44374
|
|
|
@@ -44652,11 +44652,27 @@ class NineExceptionHook extends React.Component {
|
|
|
44652
44652
|
return this.props.children;
|
|
44653
44653
|
}
|
|
44654
44654
|
}
|
|
44655
|
-
function NineHook({
|
|
44655
|
+
function NineHook({ menuUrl, views, error404, onCatch, fallback, styles, containerStyle }) {
|
|
44656
|
+
const [menuData, setMenuData] = useState([]);
|
|
44657
|
+
useEffect(() => {
|
|
44658
|
+
if (!menuUrl) return;
|
|
44659
|
+
const fetchRoutes = async () => {
|
|
44660
|
+
try {
|
|
44661
|
+
const response = await fetch(`${menuUrl}?t=${Date.now()}`);
|
|
44662
|
+
if (response.ok) {
|
|
44663
|
+
const data = await response.json();
|
|
44664
|
+
setMenuData(data);
|
|
44665
|
+
}
|
|
44666
|
+
} catch (e) {
|
|
44667
|
+
console.error("[Nine-Library] 런타임 메뉴 동기화 실패:", e);
|
|
44668
|
+
}
|
|
44669
|
+
};
|
|
44670
|
+
fetchRoutes();
|
|
44671
|
+
}, [menuUrl]);
|
|
44656
44672
|
const dynamicRoutes = createDynamicRoutes(menuData, views, error404);
|
|
44657
44673
|
return React.createElement(
|
|
44658
44674
|
ScreenProvider,
|
|
44659
|
-
|
|
44675
|
+
{ menuData },
|
|
44660
44676
|
React.createElement(
|
|
44661
44677
|
NineExceptionHook,
|
|
44662
44678
|
{ onCatch, fallback, styles, containerStyle },
|
|
@@ -44679,7 +44695,7 @@ function NineHook({ menuData, views, error404, onCatch, fallback, styles, contai
|
|
|
44679
44695
|
);
|
|
44680
44696
|
}
|
|
44681
44697
|
const NineMu = {
|
|
44682
|
-
version: "0.1.
|
|
44698
|
+
version: "0.1.380",
|
|
44683
44699
|
init: (config2) => {
|
|
44684
44700
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
44685
44701
|
}
|