@overmap-ai/core 1.0.60-forms-removal.7 → 1.0.60-forms-removal.8
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.
|
@@ -2601,6 +2601,9 @@ var __publicField = (obj, key, value) => {
|
|
|
2601
2601
|
}
|
|
2602
2602
|
});
|
|
2603
2603
|
const { setForms, setForm, addForm, addForms, updateForm, deleteForm } = formSlice.actions;
|
|
2604
|
+
const selectFormsMapping = (state) => {
|
|
2605
|
+
return state.formReducer.instances;
|
|
2606
|
+
};
|
|
2604
2607
|
const selectFilteredForms = restructureCreateSelectorWithArgs(
|
|
2605
2608
|
toolkit.createSelector(
|
|
2606
2609
|
[
|
|
@@ -2637,9 +2640,11 @@ var __publicField = (obj, key, value) => {
|
|
|
2637
2640
|
{ memoizeOptions: { equalityCheck: shallowEqual } }
|
|
2638
2641
|
)
|
|
2639
2642
|
);
|
|
2640
|
-
const selectForm = (
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
+
const selectForm = restructureCreateSelectorWithArgs(
|
|
2644
|
+
toolkit.createSelector([selectFormsMapping, (_, formId) => formId], (userForms, formId) => {
|
|
2645
|
+
return userForms[formId];
|
|
2646
|
+
})
|
|
2647
|
+
);
|
|
2643
2648
|
const selectFormMapping = (state) => {
|
|
2644
2649
|
return state.formReducer.instances;
|
|
2645
2650
|
};
|
|
@@ -7514,6 +7519,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7514
7519
|
exports2.selectFormSubmissionsOfForm = selectFormSubmissionsOfForm;
|
|
7515
7520
|
exports2.selectFormSubmissionsOfIssue = selectFormSubmissionsOfIssue;
|
|
7516
7521
|
exports2.selectFormsCount = selectFormsCount;
|
|
7522
|
+
exports2.selectFormsMapping = selectFormsMapping;
|
|
7517
7523
|
exports2.selectGeneralFormCount = selectGeneralFormCount;
|
|
7518
7524
|
exports2.selectHiddenAssetTypeIds = selectHiddenAssetTypeIds;
|
|
7519
7525
|
exports2.selectHiddenCategoryCount = selectHiddenCategoryCount;
|