@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.
- package/dist/overmap-core.js +12 -0
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +12 -0
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/store/slices/componentSlice.d.ts +1 -0
- package/dist/store/slices/documentSlice.d.ts +2 -1
- package/dist/store/slices/issueSlice.d.ts +1 -0
- package/package.json +1 -1
package/dist/overmap-core.js
CHANGED
|
@@ -1670,6 +1670,9 @@ const selectAllComponentAttachments = createSelector(
|
|
|
1670
1670
|
[selectComponentAttachmentMapping],
|
|
1671
1671
|
(mapping) => Object.values(mapping)
|
|
1672
1672
|
);
|
|
1673
|
+
const selectComponentAttachment = (attachmentId) => (state) => {
|
|
1674
|
+
return state.componentReducer.attachments[attachmentId];
|
|
1675
|
+
};
|
|
1673
1676
|
const selectAttachmentsOfComponent = restructureCreateSelectorWithArgs(
|
|
1674
1677
|
createSelector(
|
|
1675
1678
|
[selectAllComponentAttachments, (_state, componentId) => componentId],
|
|
@@ -2353,6 +2356,9 @@ const selectAttachmentsOfIssue = restructureCreateSelectorWithArgs(
|
|
|
2353
2356
|
}
|
|
2354
2357
|
)
|
|
2355
2358
|
);
|
|
2359
|
+
const selectIssueAttachment = (attachmentId) => (root) => {
|
|
2360
|
+
return root.issueReducer.attachments[attachmentId];
|
|
2361
|
+
};
|
|
2356
2362
|
const selectAttachmentsOfIssueByType = restructureCreateSelectorWithArgs(
|
|
2357
2363
|
createSelector(
|
|
2358
2364
|
[selectIssueAttachments, (_state, issueId) => issueId],
|
|
@@ -4001,6 +4007,9 @@ const selectAllDocumentAttachments = createSelector(
|
|
|
4001
4007
|
[selectDocumentAttachmentMapping],
|
|
4002
4008
|
(mapping) => Object.values(mapping)
|
|
4003
4009
|
);
|
|
4010
|
+
const selectDocumentAttachment = (attachmentId) => (state) => {
|
|
4011
|
+
return state.documentsReducer.attachments[attachmentId];
|
|
4012
|
+
};
|
|
4004
4013
|
const selectAttachmentsOfDocument = restructureCreateSelectorWithArgs(
|
|
4005
4014
|
createSelector(
|
|
4006
4015
|
[selectAllDocumentAttachments, (_state, documentId) => documentId],
|
|
@@ -15892,6 +15901,7 @@ export {
|
|
|
15892
15901
|
selectCompletedStageIdsForComponent,
|
|
15893
15902
|
selectCompletedStages,
|
|
15894
15903
|
selectComponent,
|
|
15904
|
+
selectComponentAttachment,
|
|
15895
15905
|
selectComponentAttachmentMapping,
|
|
15896
15906
|
selectComponentSubmissionMapping,
|
|
15897
15907
|
selectComponentType,
|
|
@@ -15912,6 +15922,7 @@ export {
|
|
|
15912
15922
|
selectCurrentUser,
|
|
15913
15923
|
selectDeletedRequests,
|
|
15914
15924
|
selectDocument,
|
|
15925
|
+
selectDocumentAttachment,
|
|
15915
15926
|
selectDocumentAttachmentMapping,
|
|
15916
15927
|
selectDocuments,
|
|
15917
15928
|
selectDocumentsMapping,
|
|
@@ -15934,6 +15945,7 @@ export {
|
|
|
15934
15945
|
selectIsLoading,
|
|
15935
15946
|
selectIsLoggedIn,
|
|
15936
15947
|
selectIssue,
|
|
15948
|
+
selectIssueAttachment,
|
|
15937
15949
|
selectIssueAttachmentMapping,
|
|
15938
15950
|
selectIssueAttachments,
|
|
15939
15951
|
selectIssueMapping,
|