@evlop/commons 1.0.317 → 1.0.318
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/cjs/src/components/RenderInBackground.d.ts +1 -1
- package/dist/cjs/src/components/RenderInBackground.d.ts.map +1 -1
- package/dist/cjs/src/components/RenderInBackground.js +1 -1
- package/dist/cjs/src/components/RenderInBackground.js.map +1 -1
- package/dist/esm/src/components/RenderInBackground.d.ts +1 -1
- package/dist/esm/src/components/RenderInBackground.d.ts.map +1 -1
- package/dist/esm/src/components/RenderInBackground.js +2 -2
- package/dist/esm/src/components/RenderInBackground.js.map +1 -1
- package/dist/types/src/components/RenderInBackground.d.ts +1 -1
- package/dist/types/src/components/RenderInBackground.d.ts.map +1 -1
- package/package.json +1 -1
@@ -3,6 +3,6 @@ interface RenderInBackgroundProps {
|
|
3
3
|
children: React.ReactNode;
|
4
4
|
fallback?: React.ReactNode;
|
5
5
|
}
|
6
|
-
export declare const RenderInBackground: ({ children, fallback }: RenderInBackgroundProps) =>
|
6
|
+
export declare const RenderInBackground: ({ children, fallback }: RenderInBackgroundProps) => React.ReactNode;
|
7
7
|
export {};
|
8
8
|
//# sourceMappingURL=RenderInBackground.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RenderInBackground.d.ts","sourceRoot":"","sources":["../../../../src/components/RenderInBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAK9E,UAAU,uBAAuB;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,eAAO,MAAM,kBAAkB,GAAI,wBAGhC,uBAAuB,
|
1
|
+
{"version":3,"file":"RenderInBackground.d.ts","sourceRoot":"","sources":["../../../../src/components/RenderInBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAK9E,UAAU,uBAAuB;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,eAAO,MAAM,kBAAkB,GAAI,wBAGhC,uBAAuB,oBAczB,CAAA"}
|
@@ -50,7 +50,7 @@ const RenderInBackground = ({ children, fallback = defaultFallback }) => {
|
|
50
50
|
if (!isReady) {
|
51
51
|
return fallback;
|
52
52
|
}
|
53
|
-
return
|
53
|
+
return children;
|
54
54
|
};
|
55
55
|
exports.RenderInBackground = RenderInBackground;
|
56
56
|
//# sourceMappingURL=RenderInBackground.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RenderInBackground.js","sourceRoot":"","sources":["../../../../src/components/RenderInBackground.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA8E;AAC9E,sEAA8C;AAE9C,MAAM,eAAe,GAAG,8BAAC,wBAAc,OAAG,CAAC;AAOpC,MAAM,kBAAkB,GAAG,CAAC,EAC/B,QAAQ,EACR,QAAQ,GAAG,eAAe,EACJ,EAAE,EAAE;IAC1B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAE9C,IAAA,iBAAS,EAAC,GAAG,EAAE;QACX,IAAA,uBAAe,EAAC,GAAG,EAAE;YACjB,UAAU,CAAC,IAAI,CAAC,CAAC;QACrB,CAAC,CAAC,CAAC;IACP,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED,OAAO,
|
1
|
+
{"version":3,"file":"RenderInBackground.js","sourceRoot":"","sources":["../../../../src/components/RenderInBackground.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA8E;AAC9E,sEAA8C;AAE9C,MAAM,eAAe,GAAG,8BAAC,wBAAc,OAAG,CAAC;AAOpC,MAAM,kBAAkB,GAAG,CAAC,EAC/B,QAAQ,EACR,QAAQ,GAAG,eAAe,EACJ,EAAE,EAAE;IAC1B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAE9C,IAAA,iBAAS,EAAC,GAAG,EAAE;QACX,IAAA,uBAAe,EAAC,GAAG,EAAE;YACjB,UAAU,CAAC,IAAI,CAAC,CAAC;QACrB,CAAC,CAAC,CAAC;IACP,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAA;AAjBY,QAAA,kBAAkB,sBAiB9B"}
|
@@ -3,6 +3,6 @@ interface RenderInBackgroundProps {
|
|
3
3
|
children: React.ReactNode;
|
4
4
|
fallback?: React.ReactNode;
|
5
5
|
}
|
6
|
-
export declare const RenderInBackground: ({ children, fallback }: RenderInBackgroundProps) =>
|
6
|
+
export declare const RenderInBackground: ({ children, fallback }: RenderInBackgroundProps) => React.ReactNode;
|
7
7
|
export {};
|
8
8
|
//# sourceMappingURL=RenderInBackground.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RenderInBackground.d.ts","sourceRoot":"","sources":["../../../../src/components/RenderInBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAK9E,UAAU,uBAAuB;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,eAAO,MAAM,kBAAkB,GAAI,wBAGhC,uBAAuB,
|
1
|
+
{"version":3,"file":"RenderInBackground.d.ts","sourceRoot":"","sources":["../../../../src/components/RenderInBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAK9E,UAAU,uBAAuB;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,eAAO,MAAM,kBAAkB,GAAI,wBAGhC,uBAAuB,oBAczB,CAAA"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import React, {
|
1
|
+
import React, { useEffect, useState, startTransition } from 'react';
|
2
2
|
import EmptyComponent from './EmptyComponent';
|
3
3
|
const defaultFallback = React.createElement(EmptyComponent, null);
|
4
4
|
export const RenderInBackground = ({ children, fallback = defaultFallback }) => {
|
@@ -11,6 +11,6 @@ export const RenderInBackground = ({ children, fallback = defaultFallback }) =>
|
|
11
11
|
if (!isReady) {
|
12
12
|
return fallback;
|
13
13
|
}
|
14
|
-
return
|
14
|
+
return children;
|
15
15
|
};
|
16
16
|
//# sourceMappingURL=RenderInBackground.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RenderInBackground.js","sourceRoot":"","sources":["../../../../src/components/RenderInBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"RenderInBackground.js","sourceRoot":"","sources":["../../../../src/components/RenderInBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAY,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,MAAM,eAAe,GAAG,oBAAC,cAAc,OAAG,CAAC;AAO3C,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAC/B,QAAQ,EACR,QAAQ,GAAG,eAAe,EACJ,EAAE,EAAE;IAC1B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,SAAS,CAAC,GAAG,EAAE;QACX,eAAe,CAAC,GAAG,EAAE;YACjB,UAAU,CAAC,IAAI,CAAC,CAAC;QACrB,CAAC,CAAC,CAAC;IACP,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAA"}
|
@@ -3,6 +3,6 @@ interface RenderInBackgroundProps {
|
|
3
3
|
children: React.ReactNode;
|
4
4
|
fallback?: React.ReactNode;
|
5
5
|
}
|
6
|
-
export declare const RenderInBackground: ({ children, fallback }: RenderInBackgroundProps) =>
|
6
|
+
export declare const RenderInBackground: ({ children, fallback }: RenderInBackgroundProps) => React.ReactNode;
|
7
7
|
export {};
|
8
8
|
//# sourceMappingURL=RenderInBackground.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RenderInBackground.d.ts","sourceRoot":"","sources":["../../../../src/components/RenderInBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAK9E,UAAU,uBAAuB;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,eAAO,MAAM,kBAAkB,GAAI,wBAGhC,uBAAuB,
|
1
|
+
{"version":3,"file":"RenderInBackground.d.ts","sourceRoot":"","sources":["../../../../src/components/RenderInBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAK9E,UAAU,uBAAuB;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,eAAO,MAAM,kBAAkB,GAAI,wBAGhC,uBAAuB,oBAczB,CAAA"}
|