@overmap-ai/core 1.0.57-project-view-only-flag.0 → 1.0.58-asset-description.0
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/LICENSE +1 -0
- package/dist/overmap-core.js +26 -4
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +26 -4
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/services/AgentService.d.ts +2 -21
- package/dist/store/slices/formSubmissionSlice.d.ts +1 -0
- package/dist/typings/models/components.d.ts +1 -0
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
UNLICENSED (ALL RIGHTS RESERVED)
|
package/dist/overmap-core.js
CHANGED
|
@@ -4074,6 +4074,24 @@ const selectFormSubmissionsOfIssue = restructureCreateSelectorWithArgs(
|
|
|
4074
4074
|
}
|
|
4075
4075
|
)
|
|
4076
4076
|
);
|
|
4077
|
+
const selectFormSubmissionsByIssues = restructureCreateSelectorWithArgs(
|
|
4078
|
+
createSelector(
|
|
4079
|
+
[selectFormSubmissions, (_state, issueIds) => issueIds],
|
|
4080
|
+
(submissions, issueIds) => {
|
|
4081
|
+
var _a2;
|
|
4082
|
+
const issueSubmissions = {};
|
|
4083
|
+
for (const issueId of issueIds) {
|
|
4084
|
+
issueSubmissions[issueId] = [];
|
|
4085
|
+
}
|
|
4086
|
+
for (const submission of submissions) {
|
|
4087
|
+
if (submission.issue && issueIds.includes(submission.issue)) {
|
|
4088
|
+
(_a2 = issueSubmissions[submission.issue]) == null ? void 0 : _a2.push(submission);
|
|
4089
|
+
}
|
|
4090
|
+
}
|
|
4091
|
+
return issueSubmissions;
|
|
4092
|
+
}
|
|
4093
|
+
)
|
|
4094
|
+
);
|
|
4077
4095
|
const selectFormSubmissionsOfAsset = restructureCreateSelectorWithArgs(
|
|
4078
4096
|
createSelector(
|
|
4079
4097
|
[selectFormSubmissions, (_state, assetId) => assetId],
|
|
@@ -8288,13 +8306,16 @@ class AgentService extends BaseApiService {
|
|
|
8288
8306
|
queryParams: { conversation_id: conversationId }
|
|
8289
8307
|
}).then((response) => {
|
|
8290
8308
|
const conversation = store.getState().agentsReducer.conversations[conversationId];
|
|
8291
|
-
if (!conversation) {
|
|
8309
|
+
if (!(conversation == null ? void 0 : conversation.offline_id)) {
|
|
8292
8310
|
throw new Error("Conversation not found");
|
|
8293
8311
|
}
|
|
8312
|
+
if (!Array.isArray(response)) {
|
|
8313
|
+
response = [response];
|
|
8314
|
+
}
|
|
8294
8315
|
store.dispatch(
|
|
8295
8316
|
updateConversation({
|
|
8296
|
-
|
|
8297
|
-
tiptap_content: [...conversation.tiptap_content || [], response
|
|
8317
|
+
...conversation,
|
|
8318
|
+
tiptap_content: [...conversation.tiptap_content || [], ...response]
|
|
8298
8319
|
})
|
|
8299
8320
|
);
|
|
8300
8321
|
});
|
|
@@ -13430,7 +13451,7 @@ const QrInput = memo((props) => {
|
|
|
13430
13451
|
severity,
|
|
13431
13452
|
inputId,
|
|
13432
13453
|
labelId,
|
|
13433
|
-
label
|
|
13454
|
+
label,
|
|
13434
13455
|
image: showInputOnly ? void 0 : field.image,
|
|
13435
13456
|
flexProps: { direction: "column", justify: "start", align: "start", gap: "1" },
|
|
13436
13457
|
children: [
|
|
@@ -17086,6 +17107,7 @@ export {
|
|
|
17086
17107
|
selectFormSubmissions,
|
|
17087
17108
|
selectFormSubmissionsByAssets,
|
|
17088
17109
|
selectFormSubmissionsByFormRevisions,
|
|
17110
|
+
selectFormSubmissionsByIssues,
|
|
17089
17111
|
selectFormSubmissionsMapping,
|
|
17090
17112
|
selectFormSubmissionsOfAsset,
|
|
17091
17113
|
selectFormSubmissionsOfForm,
|