@legalplace/wizardx-core 4.42.10-nightly.20251126144127 → 4.42.10-nightly.20251126151952
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/PluginLoader.js +6 -0
- package/package.json +1 -1
package/dist/PluginLoader.js
CHANGED
|
@@ -9,7 +9,11 @@ export const PluginLoader = (props) => {
|
|
|
9
9
|
const { anchor } = props;
|
|
10
10
|
const plugins = getStore().getState().pluginsStore;
|
|
11
11
|
let Plugins = [];
|
|
12
|
+
console.log("PluginLoader", plugins);
|
|
13
|
+
console.log("anchor", anchor);
|
|
12
14
|
if (!plugins || !plugins.config || !Array.isArray(plugins.config)) {
|
|
15
|
+
``;
|
|
16
|
+
console.log("No plugins found");
|
|
13
17
|
return _jsx(_Fragment, {});
|
|
14
18
|
}
|
|
15
19
|
const matchedPlugins = plugins.config.filter((p) => {
|
|
@@ -19,11 +23,13 @@ export const PluginLoader = (props) => {
|
|
|
19
23
|
if (p.anchor[i] !== anchor[i] && p.anchor[i] !== "*")
|
|
20
24
|
return false;
|
|
21
25
|
}
|
|
26
|
+
console.log("Matched plugin", p);
|
|
22
27
|
return true;
|
|
23
28
|
});
|
|
24
29
|
if (matchedPlugins.length > 0) {
|
|
25
30
|
Plugins = matchedPlugins.map((p, i) => (_jsx(p.component, Object.assign({}, (props.props || {})), i)));
|
|
26
31
|
}
|
|
32
|
+
console.log("Plugins", Plugins);
|
|
27
33
|
return _jsx(_Fragment, { children: Plugins });
|
|
28
34
|
};
|
|
29
35
|
export function replaceComponent(replacerName, OriginalComponent, componentName) {
|