@frontegg/react-hooks 6.105.0-alpha.3 → 6.106.0
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.
|
@@ -6,7 +6,7 @@ import { FronteggAppInstance } from '@frontegg/types';
|
|
|
6
6
|
export declare class CustomComponentHolder {
|
|
7
7
|
private static components;
|
|
8
8
|
static set(name: string, element: any): void;
|
|
9
|
-
static get(name: string): FunctionComponent;
|
|
9
|
+
static get(name: string): FunctionComponent | null;
|
|
10
10
|
}
|
|
11
11
|
export declare const CustomComponentRegister: FC<{
|
|
12
12
|
app: FronteggAppInstance;
|
|
@@ -53,7 +53,7 @@ const Registerer = props => {
|
|
|
53
53
|
element.slot = themeKey;
|
|
54
54
|
(_app$loginBoxContaine2 = app.loginBoxContainer) == null ? void 0 : _app$loginBoxContaine2.appendChild(element);
|
|
55
55
|
}
|
|
56
|
-
const component = /*#__PURE__*/React.createElement(value, componentProps);
|
|
56
|
+
const component = value ? /*#__PURE__*/React.createElement(value, componentProps) : null;
|
|
57
57
|
return element && mounted ? /*#__PURE__*/_jsx(React.Fragment, {
|
|
58
58
|
children: /*#__PURE__*/ReactDOM.createPortal(component, element)
|
|
59
59
|
}) : /*#__PURE__*/_jsx(_Fragment, {});
|
package/index.js
CHANGED
|
@@ -61,7 +61,7 @@ const Registerer = props => {
|
|
|
61
61
|
element.slot = themeKey;
|
|
62
62
|
(_app$loginBoxContaine2 = app.loginBoxContainer) == null ? void 0 : _app$loginBoxContaine2.appendChild(element);
|
|
63
63
|
}
|
|
64
|
-
const component = /*#__PURE__*/_react.default.createElement(value, componentProps);
|
|
64
|
+
const component = value ? /*#__PURE__*/_react.default.createElement(value, componentProps) : null;
|
|
65
65
|
return element && mounted ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.default.Fragment, {
|
|
66
66
|
children: /*#__PURE__*/_reactDom.default.createPortal(component, element)
|
|
67
67
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {});
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/react-hooks",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.106.0",
|
|
4
4
|
"main": "./node/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Frontegg LTD",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/runtime": "^7.18.6",
|
|
9
|
-
"@frontegg/redux-store": "6.
|
|
10
|
-
"@frontegg/types": "6.
|
|
9
|
+
"@frontegg/redux-store": "6.106.0",
|
|
10
|
+
"@frontegg/types": "6.106.0",
|
|
11
11
|
"@types/react": "*",
|
|
12
12
|
"get-value": "^3.0.1",
|
|
13
13
|
"react-redux": "^7.x"
|