@moneko/react 2.1.4 → 2.1.5

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/lib/activity.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export type ActivityMode = 'visible' | 'hidden';
3
3
  export interface ActivityProps {
4
4
  mode: ActivityMode;
package/lib/activity.js CHANGED
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import*as t from"react";let n="Activity"in t&&t.Activity||"unstable_Activity"in t&&t.unstable_Activity||null,r=e=>{let{mode:n,children:r}=e,l=t.useRef(null),u=t.useRef(null),i=t.useCallback(()=>{"function"==typeof u.current&&(u.current(),u.current=null,l.current=null)},[]);if(t.useEffect(()=>i,[i]),"hidden"===n){null===u.current&&(l.current=new Promise(e=>u.current=e));let e=l.current;if("use"in t&&"function"==typeof t.use)t.use(e);else throw e}return"visible"===n&&i(),r};export default(l=>n?e(n,{mode:l.mode,children:l.children}):e(t.Suspense,{fallback:null,children:e(r,{mode:l.mode,children:l.children})}));
1
+ import{jsx as e}from"react/jsx-runtime";import t from"react";let n="Activity"in t&&t.Activity||"unstable_Activity"in t&&t.unstable_Activity||null,r=e=>{let{mode:n,children:r}=e,l=t.useRef(null),u=t.useRef(null),i=t.useCallback(()=>{"function"==typeof u.current&&(u.current(),u.current=null,l.current=null)},[]);if(t.useEffect(()=>i,[i]),"hidden"===n){null===u.current&&(l.current=new Promise(e=>u.current=e));let e=l.current;if("use"in t&&"function"==typeof t.use)t.use(e);else throw e}return"visible"===n&&i(),r};export default(l=>n?e(n,{mode:l.mode,children:l.children}):e(t.Suspense,{fallback:null,children:e(r,{mode:l.mode,children:l.children})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneko/react",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "description": "react",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {