@overmap-ai/core 1.0.38-component-fields.5 → 1.0.38-component-fields.7

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.
@@ -3247,6 +3247,24 @@ var __publicField = (obj, key, value) => {
3247
3247
  }
3248
3248
  )
3249
3249
  );
3250
+ const selectLatestRevisionsForComponentTypeForms = restructureCreateSelectorWithArgs(
3251
+ toolkit.createSelector(
3252
+ [
3253
+ selectUserFormMapping,
3254
+ selectRevisionMapping,
3255
+ (_state, componentTypeId) => componentTypeId
3256
+ ],
3257
+ (userForms, revisions, componentTypeId) => {
3258
+ const latestRevisions = [];
3259
+ for (const form of Object.values(userForms)) {
3260
+ if (form.component_type === componentTypeId) {
3261
+ latestRevisions.push(_selectLatestFormRevision(revisions, form.offline_id));
3262
+ }
3263
+ }
3264
+ return latestRevisions;
3265
+ }
3266
+ )
3267
+ );
3250
3268
  const selectLatestRevisionByFormId = toolkit.createSelector([selectRevisionMapping], (revisions) => {
3251
3269
  const latestRevisions = {};
3252
3270
  for (const revision of Object.values(revisions)) {
@@ -6235,19 +6253,19 @@ var __publicField = (obj, key, value) => {
6235
6253
  }
6236
6254
  return /* @__PURE__ */ jsxRuntime.jsx(OvermapContext.Provider, { value: null, children: ret });
6237
6255
  };
6238
- const description$2 = "_description_p31lm_1";
6239
- const floatingButtonContainer$2 = "_floatingButtonContainer_p31lm_5";
6240
- const FullScreenImageContainer$2 = "_FullScreenImageContainer_p31lm_12";
6241
- const TopBarContainer$2 = "_TopBarContainer_p31lm_22";
6242
- const fileName$2 = "_fileName_p31lm_30";
6243
- const longIconButton$2 = "_longIconButton_p31lm_35";
6244
- const previewImage$3 = "_previewImage_p31lm_41";
6245
- const FullScreenImage$2 = "_FullScreenImage_p31lm_12";
6246
- const tabsList = "_tabsList_p31lm_60";
6247
- const tabTrigger = "_tabTrigger_p31lm_68";
6248
- const patchfieldBorder = "_patchfieldBorder_p31lm_72";
6249
- const title = "_title_p31lm_72";
6250
- const error = "_error_p31lm_88";
6256
+ const description$2 = "_description_1w0fq_1";
6257
+ const floatingButtonContainer$2 = "_floatingButtonContainer_1w0fq_5";
6258
+ const FullScreenImageContainer$2 = "_FullScreenImageContainer_1w0fq_12";
6259
+ const TopBarContainer$2 = "_TopBarContainer_1w0fq_22";
6260
+ const fileName$2 = "_fileName_1w0fq_31";
6261
+ const longIconButton$2 = "_longIconButton_1w0fq_36";
6262
+ const previewImage$3 = "_previewImage_1w0fq_42";
6263
+ const FullScreenImage$2 = "_FullScreenImage_1w0fq_12";
6264
+ const tabsList = "_tabsList_1w0fq_61";
6265
+ const tabTrigger = "_tabTrigger_1w0fq_69";
6266
+ const patchfieldBorder = "_patchfieldBorder_1w0fq_73";
6267
+ const title = "_title_1w0fq_73";
6268
+ const error = "_error_1w0fq_89";
6251
6269
  const styles$7 = {
6252
6270
  description: description$2,
6253
6271
  floatingButtonContainer: floatingButtonContainer$2,
@@ -6361,14 +6379,14 @@ var __publicField = (obj, key, value) => {
6361
6379
  }
6362
6380
  __publicField(BaseField, "fieldTypeName");
6363
6381
  __publicField(BaseField, "fieldTypeDescription");
6364
- const description$1 = "_description_1kceu_1";
6365
- const floatingButtonContainer$1 = "_floatingButtonContainer_1kceu_5";
6366
- const FullScreenImageContainer$1 = "_FullScreenImageContainer_1kceu_12";
6367
- const TopBarContainer$1 = "_TopBarContainer_1kceu_22";
6368
- const fileName$1 = "_fileName_1kceu_30";
6369
- const longIconButton$1 = "_longIconButton_1kceu_35";
6370
- const previewImage$2 = "_previewImage_1kceu_41";
6371
- const FullScreenImage$1 = "_FullScreenImage_1kceu_12";
6382
+ const description$1 = "_description_10o76_1";
6383
+ const floatingButtonContainer$1 = "_floatingButtonContainer_10o76_5";
6384
+ const FullScreenImageContainer$1 = "_FullScreenImageContainer_10o76_12";
6385
+ const TopBarContainer$1 = "_TopBarContainer_10o76_22";
6386
+ const fileName$1 = "_fileName_10o76_31";
6387
+ const longIconButton$1 = "_longIconButton_10o76_36";
6388
+ const previewImage$2 = "_previewImage_10o76_42";
6389
+ const FullScreenImage$1 = "_FullScreenImage_10o76_12";
6372
6390
  const styles$6 = {
6373
6391
  description: description$1,
6374
6392
  floatingButtonContainer: floatingButtonContainer$1,
@@ -10745,21 +10763,21 @@ var __publicField = (obj, key, value) => {
10745
10763
  ] });
10746
10764
  });
10747
10765
  FieldActions.displayName = "FieldActions";
10748
- const description = "_description_o5qyx_1";
10749
- const floatingButtonContainer = "_floatingButtonContainer_o5qyx_5";
10750
- const FullScreenImageContainer = "_FullScreenImageContainer_o5qyx_12";
10751
- const TopBarContainer = "_TopBarContainer_o5qyx_22";
10752
- const fileName = "_fileName_o5qyx_30";
10753
- const longIconButton = "_longIconButton_o5qyx_35";
10754
- const previewImage = "_previewImage_o5qyx_41";
10755
- const FullScreenImage = "_FullScreenImage_o5qyx_12";
10756
- const popoverInputsContainer = "_popoverInputsContainer_o5qyx_60";
10757
- const imageContainer = "_imageContainer_o5qyx_64";
10758
- const deleteImageButton = "_deleteImageButton_o5qyx_69";
10759
- const typeBadge = "_typeBadge_o5qyx_80";
10760
- const previewInput = "_previewInput_o5qyx_85";
10761
- const directInput = "_directInput_o5qyx_89";
10762
- const grow = "_grow_o5qyx_94";
10766
+ const description = "_description_6795p_1";
10767
+ const floatingButtonContainer = "_floatingButtonContainer_6795p_5";
10768
+ const FullScreenImageContainer = "_FullScreenImageContainer_6795p_12";
10769
+ const TopBarContainer = "_TopBarContainer_6795p_22";
10770
+ const fileName = "_fileName_6795p_31";
10771
+ const longIconButton = "_longIconButton_6795p_36";
10772
+ const previewImage = "_previewImage_6795p_42";
10773
+ const FullScreenImage = "_FullScreenImage_6795p_12";
10774
+ const popoverInputsContainer = "_popoverInputsContainer_6795p_61";
10775
+ const imageContainer = "_imageContainer_6795p_65";
10776
+ const deleteImageButton = "_deleteImageButton_6795p_70";
10777
+ const typeBadge = "_typeBadge_6795p_81";
10778
+ const previewInput = "_previewInput_6795p_86";
10779
+ const directInput = "_directInput_6795p_90";
10780
+ const grow = "_grow_6795p_95";
10763
10781
  const styles = {
10764
10782
  description,
10765
10783
  floatingButtonContainer,
@@ -12039,6 +12057,7 @@ var __publicField = (obj, key, value) => {
12039
12057
  exports2.selectLatestFormRevision = selectLatestFormRevision;
12040
12058
  exports2.selectLatestRetryTime = selectLatestRetryTime;
12041
12059
  exports2.selectLatestRevisionByFormId = selectLatestRevisionByFormId;
12060
+ exports2.selectLatestRevisionsForComponentTypeForms = selectLatestRevisionsForComponentTypeForms;
12042
12061
  exports2.selectMainWorkspace = selectMainWorkspace;
12043
12062
  exports2.selectMapStyle = selectMapStyle;
12044
12063
  exports2.selectNumberOfComponentTypesMatchingCaseInsensitiveName = selectNumberOfComponentTypesMatchingCaseInsensitiveName;