@headless-adminapp/app 0.0.17-alpha.18 → 0.0.17-alpha.19
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 +2 -2
- package/store/ComponentStore.js +4 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@headless-adminapp/app",
|
|
3
|
-
"version": "0.0.17-alpha.
|
|
3
|
+
"version": "0.0.17-alpha.19",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"react-hook-form": "7.52.2",
|
|
40
40
|
"yup": "^1.4.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "89b5dcafe7018f95dd77861003216f4fa365d15f"
|
|
43
43
|
}
|
package/store/ComponentStore.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ComponentStore = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
4
|
class ComponentStore {
|
|
6
5
|
constructor() {
|
|
7
6
|
this.components = {};
|
|
@@ -11,13 +10,10 @@ class ComponentStore {
|
|
|
11
10
|
}
|
|
12
11
|
getComponent(name) {
|
|
13
12
|
const self = this;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const Component = self.components[name];
|
|
19
|
-
return (0, jsx_runtime_1.jsx)(Component, Object.assign({}, props));
|
|
20
|
-
};
|
|
13
|
+
if (!self.components[name]) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
return self.components[name];
|
|
21
17
|
}
|
|
22
18
|
}
|
|
23
19
|
exports.ComponentStore = ComponentStore;
|