@nine-lab/nine-mu 0.1.383 β 0.1.385
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 +16 -8
- 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 +16 -14
package/dist/nine-mu.js
CHANGED
|
@@ -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.384"}/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.384"}/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.384"}/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.384"}/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.384"}/dist/css/nine-mu.css";
|
|
44372
44372
|
${customImport}
|
|
44373
44373
|
</style>
|
|
44374
44374
|
|
|
@@ -44652,7 +44652,7 @@ class NineExceptionHook extends React.Component {
|
|
|
44652
44652
|
return this.props.children;
|
|
44653
44653
|
}
|
|
44654
44654
|
}
|
|
44655
|
-
function NineHook({ menuUrl, views, error404, onCatch, fallback, styles, containerStyle }) {
|
|
44655
|
+
function NineHook({ children, menuUrl, views, error404, onCatch, fallback, styles, containerStyle }) {
|
|
44656
44656
|
const [menuData, setMenuData] = useState([]);
|
|
44657
44657
|
const fetchRoutes = async () => {
|
|
44658
44658
|
if (!menuUrl) return;
|
|
@@ -44662,7 +44662,7 @@ function NineHook({ menuUrl, views, error404, onCatch, fallback, styles, contain
|
|
|
44662
44662
|
const data = await response.json();
|
|
44663
44663
|
setMenuData((prev) => {
|
|
44664
44664
|
if (JSON.stringify(prev) === JSON.stringify(data)) return prev;
|
|
44665
|
-
console.log("π₯ [Nine-Library]
|
|
44665
|
+
console.log("π₯ [Nine-Library] routes.json λ³κ²½ κ°μ§ -> μ 체 μμ€ν
λκΈ°ν");
|
|
44666
44666
|
return data;
|
|
44667
44667
|
});
|
|
44668
44668
|
}
|
|
@@ -44681,6 +44681,13 @@ function NineHook({ menuUrl, views, error404, onCatch, fallback, styles, contain
|
|
|
44681
44681
|
clearInterval(intervalId);
|
|
44682
44682
|
};
|
|
44683
44683
|
}, [menuUrl]);
|
|
44684
|
+
if (!menuData || menuData.length === 0) {
|
|
44685
|
+
return React.createElement(
|
|
44686
|
+
"div",
|
|
44687
|
+
{ style: { padding: "25px", color: "#666", fontFamily: "monospace", background: "#121314", minHeight: "100vh" } },
|
|
44688
|
+
">> Initializing menu matrix telemetry..."
|
|
44689
|
+
);
|
|
44690
|
+
}
|
|
44684
44691
|
const dynamicRoutes = createDynamicRoutes(menuData, views, error404);
|
|
44685
44692
|
return React.createElement(
|
|
44686
44693
|
ScreenProvider,
|
|
@@ -44688,6 +44695,7 @@ function NineHook({ menuUrl, views, error404, onCatch, fallback, styles, contain
|
|
|
44688
44695
|
React.createElement(
|
|
44689
44696
|
NineExceptionHook,
|
|
44690
44697
|
{ onCatch, fallback, styles, containerStyle },
|
|
44698
|
+
children,
|
|
44691
44699
|
React.createElement(
|
|
44692
44700
|
Suspense,
|
|
44693
44701
|
{ fallback: React.createElement("div", { style: { padding: "25px", color: "#666", fontFamily: "monospace" } }, ">> Loading component matrix...") },
|
|
@@ -44707,7 +44715,7 @@ function NineHook({ menuUrl, views, error404, onCatch, fallback, styles, contain
|
|
|
44707
44715
|
);
|
|
44708
44716
|
}
|
|
44709
44717
|
const NineMu = {
|
|
44710
|
-
version: "0.1.
|
|
44718
|
+
version: "0.1.384",
|
|
44711
44719
|
init: (config2) => {
|
|
44712
44720
|
trace$1.log("π οΈ Nine-Mu Engine initialized", config2);
|
|
44713
44721
|
}
|