@overmap-ai/core 1.0.50-document-attachments.0 → 1.0.50-document-attachments.1

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.
@@ -1661,6 +1661,9 @@ var __publicField = (obj, key, value) => {
1661
1661
  [selectComponentAttachmentMapping],
1662
1662
  (mapping) => Object.values(mapping)
1663
1663
  );
1664
+ const selectComponentAttachment = (attachmentId) => (state) => {
1665
+ return state.componentReducer.attachments[attachmentId];
1666
+ };
1664
1667
  const selectAttachmentsOfComponent = restructureCreateSelectorWithArgs(
1665
1668
  toolkit.createSelector(
1666
1669
  [selectAllComponentAttachments, (_state, componentId) => componentId],
@@ -2344,6 +2347,9 @@ var __publicField = (obj, key, value) => {
2344
2347
  }
2345
2348
  )
2346
2349
  );
2350
+ const selectIssueAttachment = (attachmentId) => (root) => {
2351
+ return root.issueReducer.attachments[attachmentId];
2352
+ };
2347
2353
  const selectAttachmentsOfIssueByType = restructureCreateSelectorWithArgs(
2348
2354
  toolkit.createSelector(
2349
2355
  [selectIssueAttachments, (_state, issueId) => issueId],
@@ -3992,6 +3998,9 @@ var __publicField = (obj, key, value) => {
3992
3998
  [selectDocumentAttachmentMapping],
3993
3999
  (mapping) => Object.values(mapping)
3994
4000
  );
4001
+ const selectDocumentAttachment = (attachmentId) => (state) => {
4002
+ return state.documentsReducer.attachments[attachmentId];
4003
+ };
3995
4004
  const selectAttachmentsOfDocument = restructureCreateSelectorWithArgs(
3996
4005
  toolkit.createSelector(
3997
4006
  [selectAllDocumentAttachments, (_state, documentId) => documentId],
@@ -15882,6 +15891,7 @@ var __publicField = (obj, key, value) => {
15882
15891
  exports2.selectCompletedStageIdsForComponent = selectCompletedStageIdsForComponent;
15883
15892
  exports2.selectCompletedStages = selectCompletedStages;
15884
15893
  exports2.selectComponent = selectComponent;
15894
+ exports2.selectComponentAttachment = selectComponentAttachment;
15885
15895
  exports2.selectComponentAttachmentMapping = selectComponentAttachmentMapping;
15886
15896
  exports2.selectComponentSubmissionMapping = selectComponentSubmissionMapping;
15887
15897
  exports2.selectComponentType = selectComponentType;
@@ -15902,6 +15912,7 @@ var __publicField = (obj, key, value) => {
15902
15912
  exports2.selectCurrentUser = selectCurrentUser;
15903
15913
  exports2.selectDeletedRequests = selectDeletedRequests;
15904
15914
  exports2.selectDocument = selectDocument;
15915
+ exports2.selectDocumentAttachment = selectDocumentAttachment;
15905
15916
  exports2.selectDocumentAttachmentMapping = selectDocumentAttachmentMapping;
15906
15917
  exports2.selectDocuments = selectDocuments;
15907
15918
  exports2.selectDocumentsMapping = selectDocumentsMapping;
@@ -15924,6 +15935,7 @@ var __publicField = (obj, key, value) => {
15924
15935
  exports2.selectIsLoading = selectIsLoading;
15925
15936
  exports2.selectIsLoggedIn = selectIsLoggedIn;
15926
15937
  exports2.selectIssue = selectIssue;
15938
+ exports2.selectIssueAttachment = selectIssueAttachment;
15927
15939
  exports2.selectIssueAttachmentMapping = selectIssueAttachmentMapping;
15928
15940
  exports2.selectIssueAttachments = selectIssueAttachments;
15929
15941
  exports2.selectIssueMapping = selectIssueMapping;