@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.
@@ -3251,6 +3251,24 @@ const selectFormsForComponentType = restructureCreateSelectorWithArgs(
3251
3251
  }
3252
3252
  )
3253
3253
  );
3254
+ const selectLatestRevisionsForComponentTypeForms = restructureCreateSelectorWithArgs(
3255
+ createSelector(
3256
+ [
3257
+ selectUserFormMapping,
3258
+ selectRevisionMapping,
3259
+ (_state, componentTypeId) => componentTypeId
3260
+ ],
3261
+ (userForms, revisions, componentTypeId) => {
3262
+ const latestRevisions = [];
3263
+ for (const form of Object.values(userForms)) {
3264
+ if (form.component_type === componentTypeId) {
3265
+ latestRevisions.push(_selectLatestFormRevision(revisions, form.offline_id));
3266
+ }
3267
+ }
3268
+ return latestRevisions;
3269
+ }
3270
+ )
3271
+ );
3254
3272
  const selectLatestRevisionByFormId = createSelector([selectRevisionMapping], (revisions) => {
3255
3273
  const latestRevisions = {};
3256
3274
  for (const revision of Object.values(revisions)) {
@@ -6239,19 +6257,19 @@ const OvermapProvider = (props) => {
6239
6257
  }
6240
6258
  return /* @__PURE__ */ jsx(OvermapContext.Provider, { value: null, children: ret });
6241
6259
  };
6242
- const description$2 = "_description_p31lm_1";
6243
- const floatingButtonContainer$2 = "_floatingButtonContainer_p31lm_5";
6244
- const FullScreenImageContainer$2 = "_FullScreenImageContainer_p31lm_12";
6245
- const TopBarContainer$2 = "_TopBarContainer_p31lm_22";
6246
- const fileName$2 = "_fileName_p31lm_30";
6247
- const longIconButton$2 = "_longIconButton_p31lm_35";
6248
- const previewImage$3 = "_previewImage_p31lm_41";
6249
- const FullScreenImage$2 = "_FullScreenImage_p31lm_12";
6250
- const tabsList = "_tabsList_p31lm_60";
6251
- const tabTrigger = "_tabTrigger_p31lm_68";
6252
- const patchfieldBorder = "_patchfieldBorder_p31lm_72";
6253
- const title = "_title_p31lm_72";
6254
- const error = "_error_p31lm_88";
6260
+ const description$2 = "_description_1w0fq_1";
6261
+ const floatingButtonContainer$2 = "_floatingButtonContainer_1w0fq_5";
6262
+ const FullScreenImageContainer$2 = "_FullScreenImageContainer_1w0fq_12";
6263
+ const TopBarContainer$2 = "_TopBarContainer_1w0fq_22";
6264
+ const fileName$2 = "_fileName_1w0fq_31";
6265
+ const longIconButton$2 = "_longIconButton_1w0fq_36";
6266
+ const previewImage$3 = "_previewImage_1w0fq_42";
6267
+ const FullScreenImage$2 = "_FullScreenImage_1w0fq_12";
6268
+ const tabsList = "_tabsList_1w0fq_61";
6269
+ const tabTrigger = "_tabTrigger_1w0fq_69";
6270
+ const patchfieldBorder = "_patchfieldBorder_1w0fq_73";
6271
+ const title = "_title_1w0fq_73";
6272
+ const error = "_error_1w0fq_89";
6255
6273
  const styles$7 = {
6256
6274
  description: description$2,
6257
6275
  floatingButtonContainer: floatingButtonContainer$2,
@@ -6365,14 +6383,14 @@ class BaseField extends BaseFormElement {
6365
6383
  }
6366
6384
  __publicField(BaseField, "fieldTypeName");
6367
6385
  __publicField(BaseField, "fieldTypeDescription");
6368
- const description$1 = "_description_1kceu_1";
6369
- const floatingButtonContainer$1 = "_floatingButtonContainer_1kceu_5";
6370
- const FullScreenImageContainer$1 = "_FullScreenImageContainer_1kceu_12";
6371
- const TopBarContainer$1 = "_TopBarContainer_1kceu_22";
6372
- const fileName$1 = "_fileName_1kceu_30";
6373
- const longIconButton$1 = "_longIconButton_1kceu_35";
6374
- const previewImage$2 = "_previewImage_1kceu_41";
6375
- const FullScreenImage$1 = "_FullScreenImage_1kceu_12";
6386
+ const description$1 = "_description_10o76_1";
6387
+ const floatingButtonContainer$1 = "_floatingButtonContainer_10o76_5";
6388
+ const FullScreenImageContainer$1 = "_FullScreenImageContainer_10o76_12";
6389
+ const TopBarContainer$1 = "_TopBarContainer_10o76_22";
6390
+ const fileName$1 = "_fileName_10o76_31";
6391
+ const longIconButton$1 = "_longIconButton_10o76_36";
6392
+ const previewImage$2 = "_previewImage_10o76_42";
6393
+ const FullScreenImage$1 = "_FullScreenImage_10o76_12";
6376
6394
  const styles$6 = {
6377
6395
  description: description$1,
6378
6396
  floatingButtonContainer: floatingButtonContainer$1,
@@ -10749,21 +10767,21 @@ const FieldActions = memo((props) => {
10749
10767
  ] });
10750
10768
  });
10751
10769
  FieldActions.displayName = "FieldActions";
10752
- const description = "_description_o5qyx_1";
10753
- const floatingButtonContainer = "_floatingButtonContainer_o5qyx_5";
10754
- const FullScreenImageContainer = "_FullScreenImageContainer_o5qyx_12";
10755
- const TopBarContainer = "_TopBarContainer_o5qyx_22";
10756
- const fileName = "_fileName_o5qyx_30";
10757
- const longIconButton = "_longIconButton_o5qyx_35";
10758
- const previewImage = "_previewImage_o5qyx_41";
10759
- const FullScreenImage = "_FullScreenImage_o5qyx_12";
10760
- const popoverInputsContainer = "_popoverInputsContainer_o5qyx_60";
10761
- const imageContainer = "_imageContainer_o5qyx_64";
10762
- const deleteImageButton = "_deleteImageButton_o5qyx_69";
10763
- const typeBadge = "_typeBadge_o5qyx_80";
10764
- const previewInput = "_previewInput_o5qyx_85";
10765
- const directInput = "_directInput_o5qyx_89";
10766
- const grow = "_grow_o5qyx_94";
10770
+ const description = "_description_6795p_1";
10771
+ const floatingButtonContainer = "_floatingButtonContainer_6795p_5";
10772
+ const FullScreenImageContainer = "_FullScreenImageContainer_6795p_12";
10773
+ const TopBarContainer = "_TopBarContainer_6795p_22";
10774
+ const fileName = "_fileName_6795p_31";
10775
+ const longIconButton = "_longIconButton_6795p_36";
10776
+ const previewImage = "_previewImage_6795p_42";
10777
+ const FullScreenImage = "_FullScreenImage_6795p_12";
10778
+ const popoverInputsContainer = "_popoverInputsContainer_6795p_61";
10779
+ const imageContainer = "_imageContainer_6795p_65";
10780
+ const deleteImageButton = "_deleteImageButton_6795p_70";
10781
+ const typeBadge = "_typeBadge_6795p_81";
10782
+ const previewInput = "_previewInput_6795p_86";
10783
+ const directInput = "_directInput_6795p_90";
10784
+ const grow = "_grow_6795p_95";
10767
10785
  const styles = {
10768
10786
  description,
10769
10787
  floatingButtonContainer,
@@ -12044,6 +12062,7 @@ export {
12044
12062
  selectLatestFormRevision,
12045
12063
  selectLatestRetryTime,
12046
12064
  selectLatestRevisionByFormId,
12065
+ selectLatestRevisionsForComponentTypeForms,
12047
12066
  selectMainWorkspace,
12048
12067
  selectMapStyle,
12049
12068
  selectNumberOfComponentTypesMatchingCaseInsensitiveName,