@legalplace/wizardx-core 4.42.10-nightly.20251125155131 → 4.42.10-nightly.20251125160107

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/App.js CHANGED
@@ -77,7 +77,7 @@ class WizardXCore extends React.Component {
77
77
  getStore().dispatch(resetStateAction());
78
78
  }
79
79
  render() {
80
- return (_jsx(Provider, { store: getStore(), children: _jsx(ConnectedRouter, { history: getHistory(), children: _jsxs(Switch, { children: [_jsx(Route, { path: "/p/:path", component: PluginRoute }), _jsx(Route, { path: getConfig().router.smartscriptPath, exact: true, strict: true, component: SmartScriptComponent }), _jsx(Route, { path: getConfig().router.wizardInstancePath, component: ViewComponent }), _jsx(Route, { path: getConfig().router.wizardPath, component: ViewComponent }), !window.location.href.includes("smartscript") && (_jsx(Route, { component: RedirectHandler }))] }) }) }));
80
+ return (_jsxs(Provider, { store: getStore(), children: [_jsx("h1", { children: "IAM APP" }), _jsx(ConnectedRouter, { history: getHistory(), children: _jsxs(Switch, { children: [_jsx(Route, { path: "/p/:path", component: PluginRoute }), _jsx(Route, { path: getConfig().router.smartscriptPath, exact: true, strict: true, component: SmartScriptComponent }), _jsx(Route, { path: getConfig().router.wizardInstancePath, component: ViewComponent }), _jsx(Route, { path: getConfig().router.wizardPath, component: ViewComponent }), !window.location.href.includes("smartscript") && (_jsx(Route, { component: RedirectHandler }))] }) })] }));
81
81
  }
82
82
  }
83
83
  export default WizardXCore;
@@ -83,11 +83,18 @@ export function loadPlugins(plugins) {
83
83
  }
84
84
  const store = getStore();
85
85
  Object.keys(plugins).forEach((key) => {
86
- promises.push(plugins[key]().then((plugin) => {
86
+ const pluginLoader = plugins[key];
87
+ if (typeof pluginLoader !== "function") {
88
+ console.warn(`Plugin "${key}" loader is not a function, skipping...`);
89
+ return;
90
+ }
91
+ promises.push(pluginLoader().then((plugin) => {
87
92
  if (plugin.redux) {
88
93
  pluginsStoreReducers = Object.assign(Object.assign({}, pluginsStoreReducers), { [key]: plugin.redux.reducer });
89
94
  pluginsSagas = [...pluginsSagas, ...plugin.redux.sagas];
90
95
  }
96
+ }).catch((error) => {
97
+ console.error(`Failed to load plugin "${key}":`, error);
91
98
  }));
92
99
  });
93
100
  return Promise.all(promises);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/wizardx-core",
3
- "version": "4.42.10-nightly.20251125155131",
3
+ "version": "4.42.10-nightly.20251125160107",
4
4
  "author": "Moncef Hammou (moncef@legalplace.fr)",
5
5
  "license": "MIT",
6
6
  "files": [