@overmap-ai/core 1.0.63-form-submission-drafts.4 → 1.0.63-form-submission-drafts.6
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.
|
@@ -999,6 +999,17 @@ var __publicField = (obj, key, value) => {
|
|
|
999
999
|
const selectAsset = (assetId) => (state) => {
|
|
1000
1000
|
return state.assetReducer.instances[assetId];
|
|
1001
1001
|
};
|
|
1002
|
+
const selectAssetsByIds = restructureCreateSelectorWithArgs(
|
|
1003
|
+
toolkit.createSelector([selectAssetsMapping, (_, assetIds) => assetIds], (assetsMapping, assetIds) => {
|
|
1004
|
+
const assets = [];
|
|
1005
|
+
for (const assetId of assetIds) {
|
|
1006
|
+
const asset = assetsMapping[assetId];
|
|
1007
|
+
if (asset)
|
|
1008
|
+
assets.push(asset);
|
|
1009
|
+
}
|
|
1010
|
+
return assets;
|
|
1011
|
+
})
|
|
1012
|
+
);
|
|
1002
1013
|
const selectAssetToAssetTypeMapping = toolkit.createSelector(
|
|
1003
1014
|
[selectAssets, selectAssetTypesMapping],
|
|
1004
1015
|
(assets, assetTypeMapping) => {
|
|
@@ -7825,6 +7836,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7825
7836
|
exports2.selectAssetTypesFromIds = selectAssetTypesFromIds;
|
|
7826
7837
|
exports2.selectAssetTypesMapping = selectAssetTypesMapping;
|
|
7827
7838
|
exports2.selectAssets = selectAssets;
|
|
7839
|
+
exports2.selectAssetsByIds = selectAssetsByIds;
|
|
7828
7840
|
exports2.selectAssetsMapping = selectAssetsMapping;
|
|
7829
7841
|
exports2.selectAssetsOfAssetType = selectAssetsOfAssetType;
|
|
7830
7842
|
exports2.selectAttachedFormSubmissionsOfAsset = selectAttachedFormSubmissionsOfAsset;
|