@nine-lab/nine-mu 0.1.370 β†’ 0.1.372

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.370",
3
+ "version": "0.1.372",
4
4
  "description": "AI-Driven Full-Stack Code Fabrication Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/nine-mu.umd.js",
@@ -142,16 +142,15 @@ class NineExceptionHook extends React.Component {
142
142
  }
143
143
  }
144
144
 
145
- // ==========================================
146
- // 🎯 3. 핡심: μ‚¬μš©μžκ°€ ν•œ μ€„λ‘œ μ“°κ²Œ λ§Œλ“€ 톡합 λ§ˆμŠ€ν„° μ—”μ§„
147
- // ==========================================
148
145
  export function NineHook({ children, onCatch, fallback, styles, containerStyle }) {
146
+ // μ‚¬μš©μžλŠ” 무쑰건 이거 ν•˜λ‚˜λ§Œ μ“°λ©΄ 끝!
147
+ // λ‚΄λΆ€μ μœΌλ‘œ μƒνƒœ(ScreenProvider)λ₯Ό λ¨Όμ € μ£Όμž…ν•˜κ³ , κ·Έ μ•ˆμ—μ„œ μ—λŸ¬(NineExceptionHook)κ°€ μžμ‹λ“€μ„ κ°μ‹Έμ•ˆμ•„ λ³΄ν˜Έν•©λ‹ˆλ‹€.
149
148
  return React.createElement(
150
- NineExceptionHook, // ⭐ 1. μ—λŸ¬ λ°”μš΄λ”λ¦¬κ°€ μ΅œμƒμœ„μ—μ„œ μ² μ €ν•˜κ²Œ 전체λ₯Ό κ°μŒ‰λ‹ˆλ‹€.
151
- { onCatch, fallback, styles, containerStyle },
149
+ ScreenProvider,
150
+ null,
152
151
  React.createElement(
153
- ScreenProvider, // ⭐ 2. μƒνƒœ κ³΅κΈ‰μžλŠ” μ—λŸ¬ λ°”μš΄λ”λ¦¬ μ•ˆμ „λ§ μ•ˆμͺ½μ—μ„œ μ‹€ν–‰λ©λ‹ˆλ‹€.
154
- null,
152
+ NineExceptionHook,
153
+ { onCatch, fallback, styles, containerStyle },
155
154
  children
156
155
  )
157
156
  );
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 };