@nine-lab/nine-mu 0.1.383 β 0.1.384
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 +11 -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 +9 -15
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.383"}/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.383"}/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.383"}/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.383"}/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.383"}/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
|
}
|
|
@@ -44685,9 +44685,12 @@ function NineHook({ menuUrl, views, error404, onCatch, fallback, styles, contain
|
|
|
44685
44685
|
return React.createElement(
|
|
44686
44686
|
ScreenProvider,
|
|
44687
44687
|
{ menuData },
|
|
44688
|
+
// π― μ΄ μ μ 컨ν
μ€νΈ 곡κΈμκ° κ°μΈλ λ²μλ₯Ό λν λνλλ€.
|
|
44688
44689
|
React.createElement(
|
|
44689
44690
|
NineExceptionHook,
|
|
44690
44691
|
{ onCatch, fallback, styles, containerStyle },
|
|
44692
|
+
// π‘ [λ μ΄μμ μ μ°μ± ν보]: Routes λ°κΉ₯μ μ»΄ν¬λνΈ(μ: LeftMenu)κ° μλ€λ©΄ μ¬κΈ°μ λ¨Όμ λΏλ €μ€λλ€.
|
|
44693
|
+
children,
|
|
44691
44694
|
React.createElement(
|
|
44692
44695
|
Suspense,
|
|
44693
44696
|
{ fallback: React.createElement("div", { style: { padding: "25px", color: "#666", fontFamily: "monospace" } }, ">> Loading component matrix...") },
|
|
@@ -44707,7 +44710,7 @@ function NineHook({ menuUrl, views, error404, onCatch, fallback, styles, contain
|
|
|
44707
44710
|
);
|
|
44708
44711
|
}
|
|
44709
44712
|
const NineMu = {
|
|
44710
|
-
version: "0.1.
|
|
44713
|
+
version: "0.1.383",
|
|
44711
44714
|
init: (config2) => {
|
|
44712
44715
|
trace$1.log("π οΈ Nine-Mu Engine initialized", config2);
|
|
44713
44716
|
}
|