@overmap-ai/core 1.0.38-component-fields.7 → 1.0.38-component-fields.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.
|
@@ -3265,6 +3265,28 @@ var __publicField = (obj, key, value) => {
|
|
|
3265
3265
|
}
|
|
3266
3266
|
)
|
|
3267
3267
|
);
|
|
3268
|
+
const selectLatestRevisionsFromComponentTypeIds = restructureCreateSelectorWithArgs(
|
|
3269
|
+
toolkit.createSelector(
|
|
3270
|
+
[
|
|
3271
|
+
selectUserFormMapping,
|
|
3272
|
+
selectRevisionMapping,
|
|
3273
|
+
(_state, componentTypeIds) => componentTypeIds
|
|
3274
|
+
],
|
|
3275
|
+
(userForms, revisions, componentTypeIds) => {
|
|
3276
|
+
const componentTypeIdsSet = new Set(componentTypeIds);
|
|
3277
|
+
const ret = {};
|
|
3278
|
+
for (const form of Object.values(userForms)) {
|
|
3279
|
+
if (form.component_type && componentTypeIdsSet.has(form.component_type)) {
|
|
3280
|
+
if (!ret[form.component_type]) {
|
|
3281
|
+
ret[form.component_type] = [];
|
|
3282
|
+
}
|
|
3283
|
+
ret[form.component_type].push(_selectLatestFormRevision(revisions, form.offline_id));
|
|
3284
|
+
}
|
|
3285
|
+
}
|
|
3286
|
+
return ret;
|
|
3287
|
+
}
|
|
3288
|
+
)
|
|
3289
|
+
);
|
|
3268
3290
|
const selectLatestRevisionByFormId = toolkit.createSelector([selectRevisionMapping], (revisions) => {
|
|
3269
3291
|
const latestRevisions = {};
|
|
3270
3292
|
for (const revision of Object.values(revisions)) {
|
|
@@ -12058,6 +12080,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12058
12080
|
exports2.selectLatestRetryTime = selectLatestRetryTime;
|
|
12059
12081
|
exports2.selectLatestRevisionByFormId = selectLatestRevisionByFormId;
|
|
12060
12082
|
exports2.selectLatestRevisionsForComponentTypeForms = selectLatestRevisionsForComponentTypeForms;
|
|
12083
|
+
exports2.selectLatestRevisionsFromComponentTypeIds = selectLatestRevisionsFromComponentTypeIds;
|
|
12061
12084
|
exports2.selectMainWorkspace = selectMainWorkspace;
|
|
12062
12085
|
exports2.selectMapStyle = selectMapStyle;
|
|
12063
12086
|
exports2.selectNumberOfComponentTypesMatchingCaseInsensitiveName = selectNumberOfComponentTypesMatchingCaseInsensitiveName;
|