procode-lowcode-core 1.0.2 → 1.0.4
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/index.esm.js +12 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/types/ApplicationStart/helper/setupStoreAction.d.ts +1 -1
- package/dist/types/Store/commonStore.d.ts +2 -2
- package/package.json +1 -1
- package/src/ApplicationStart/ScreenInitializer.tsx +4 -2
- package/src/ApplicationStart/helper/setupStoreAction.ts +3 -2
- package/src/Constant.ts +1 -1
- package/src/Store/commonStore.ts +5 -1
- package/src/Store/createStore.ts +5 -2
package/dist/index.js
CHANGED
|
@@ -19332,11 +19332,12 @@ const mergeScreenDataDto = (viewModel, screenData) => {
|
|
|
19332
19332
|
return viewModel;
|
|
19333
19333
|
};
|
|
19334
19334
|
|
|
19335
|
-
const setupStoreAction = (dispatch, eventService) => {
|
|
19335
|
+
const setupStoreAction = (dispatch, eventService, store) => {
|
|
19336
19336
|
const actions = {
|
|
19337
19337
|
[eventServiceType.DATASTATE_ACTION]: appActions,
|
|
19338
19338
|
[eventServiceType.UI_SCHEMA_ACTION]: metaDataActions,
|
|
19339
19339
|
[eventServiceType.DISPATCH_STORE]: dispatch,
|
|
19340
|
+
[eventServiceType.DATASTATE]: () => store.getState().app.viewModel,
|
|
19340
19341
|
};
|
|
19341
19342
|
Object.entries(actions).forEach(([eventType, action]) => {
|
|
19342
19343
|
eventService === null || eventService === void 0 ? void 0 : eventService.subscribe(eventType, () => action);
|
|
@@ -19666,6 +19667,7 @@ const ScreenInitializer = (props) => {
|
|
|
19666
19667
|
const location = reactRouterDom.useLocation();
|
|
19667
19668
|
const params = reactRouterDom.useParams();
|
|
19668
19669
|
const dispatch = reactRedux.useDispatch();
|
|
19670
|
+
const store = reactRedux.useStore();
|
|
19669
19671
|
const saveMeta = (uiMetaData) => {
|
|
19670
19672
|
dispatch(metaDataActions.save(uiMetaData));
|
|
19671
19673
|
};
|
|
@@ -19688,7 +19690,7 @@ const ScreenInitializer = (props) => {
|
|
|
19688
19690
|
.getAdapterProvider()) === null || _a === void 0 ? void 0 : _a.setUpScreenAdapter((_b = props.uiMetaData) === null || _b === void 0 ? void 0 : _b.screenId, props.eventService);
|
|
19689
19691
|
}, [(_a = props.uiMetaData) === null || _a === void 0 ? void 0 : _a.screenId]);
|
|
19690
19692
|
const initializeScreen = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
19691
|
-
setupStoreAction(dispatch, props.eventService);
|
|
19693
|
+
setupStoreAction(dispatch, props.eventService, store);
|
|
19692
19694
|
saveMeta(props.uiMetaData);
|
|
19693
19695
|
enableHeader();
|
|
19694
19696
|
enableFooter();
|
|
@@ -19837,6 +19839,9 @@ const commonStore = toolkit.configureStore({
|
|
|
19837
19839
|
reducer: {
|
|
19838
19840
|
commonData: commonDataReducer,
|
|
19839
19841
|
},
|
|
19842
|
+
middleware: (getDefaultMiddleware) => getDefaultMiddleware({
|
|
19843
|
+
serializableCheck: false
|
|
19844
|
+
})
|
|
19840
19845
|
});
|
|
19841
19846
|
|
|
19842
19847
|
const createStore = () => {
|
|
@@ -19847,7 +19852,10 @@ const createStore = () => {
|
|
|
19847
19852
|
app: appReducer,
|
|
19848
19853
|
metaData: metaDataReducer,
|
|
19849
19854
|
},
|
|
19850
|
-
middleware: (getDefaultMiddleware) => getDefaultMiddleware({
|
|
19855
|
+
middleware: (getDefaultMiddleware) => getDefaultMiddleware({
|
|
19856
|
+
thunk: false,
|
|
19857
|
+
serializableCheck: false
|
|
19858
|
+
})
|
|
19851
19859
|
.concat(saga)
|
|
19852
19860
|
.concat(syncStoresMiddleware(commonStore)),
|
|
19853
19861
|
}),
|