@nine-lab/nine-mu 0.1.369 β†’ 0.1.371

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nine-lab/nine-mu",
3
- "version": "0.1.369",
3
+ "version": "0.1.371",
4
4
  "description": "AI-Driven Full-Stack Code Fabrication Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/nine-mu.umd.js",
@@ -145,13 +145,22 @@ class NineExceptionHook extends React.Component {
145
145
  // ==========================================
146
146
  // 🎯 3. 핡심: μ‚¬μš©μžκ°€ ν•œ μ€„λ‘œ μ“°κ²Œ λ§Œλ“€ 톡합 λ§ˆμŠ€ν„° μ—”μ§„
147
147
  // ==========================================
148
+ // ⭐ κ°€μž₯ ν™•μ‹€ν•œ μ»¨ν…μŠ€νŠΈ λ‹€μ΄λ ‰νŠΈ μ£Όμž… 버전 (μ—λŸ¬ μ›μ²œ 차단)
148
149
  export function NineHook({ children, onCatch, fallback, styles, containerStyle }) {
150
+ const [activeView, setActiveView] = useState('list-wrapper');
151
+ const [selectedData, setSelectedData] = useState(null);
152
+
153
+ const goto = (selector, data) => {
154
+ setActiveView(selector);
155
+ if (data) setSelectedData(data);
156
+ };
157
+
149
158
  return React.createElement(
150
- ScreenProvider,
151
- null,
159
+ NineExceptionHook,
160
+ { onCatch, fallback, styles, containerStyle },
152
161
  React.createElement(
153
- NineExceptionHook,
154
- { onCatch, fallback, styles, containerStyle },
162
+ ScreenContext.Provider,
163
+ { value: { activeView, selectedData, goto } },
155
164
  children
156
165
  )
157
166
  );
package/src/index.js CHANGED
@@ -4,7 +4,7 @@ import { NineDiff } from './components/NineDiff.js';
4
4
  import { NineDiffPopup } from './components/NineDiffPopup.js';
5
5
  import { NineMenuDiffPopup } from './components/NineMenuDiffPopup.js';
6
6
  import './components/ChatMessage.js';
7
- import { NineHook } from './components/hook/NineHook.js';
7
+ import { NineHook, useScreen } from './components/hook/NineHook.js';
8
8
 
9
9
  /**
10
10
  * Nine-Mu μ—”μ§„ 메인 클래슀
@@ -20,4 +20,4 @@ export const NineMu = {
20
20
 
21
21
  // κΈ°λ³Έ export 및 μ»΄ν¬λ„ŒνŠΈ export
22
22
  export default NineMu;
23
- export { NineChat, NineDiff, NineDiffPopup, NineHook };
23
+ export { NineChat, NineDiff, NineDiffPopup, NineHook, useScreen };