@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/dist/nine-mu.js +14 -14
- 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 +6 -7
- package/src/index.js +2 -2
package/package.json
CHANGED
|
@@ -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
|
-
|
|
151
|
-
|
|
149
|
+
ScreenProvider,
|
|
150
|
+
null,
|
|
152
151
|
React.createElement(
|
|
153
|
-
|
|
154
|
-
|
|
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 };
|