@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.
@@ -4064,6 +4064,24 @@ var __publicField = (obj, key, value) => {
4064
4064
  }
4065
4065
  )
4066
4066
  );
4067
+ const selectFormSubmissionsByIssues = restructureCreateSelectorWithArgs(
4068
+ toolkit.createSelector(
4069
+ [selectFormSubmissions, (_state, issueIds) => issueIds],
4070
+ (submissions, issueIds) => {
4071
+ var _a2;
4072
+ const issueSubmissions = {};
4073
+ for (const issueId of issueIds) {
4074
+ issueSubmissions[issueId] = [];
4075
+ }
4076
+ for (const submission of submissions) {
4077
+ if (submission.issue && issueIds.includes(submission.issue)) {
4078
+ (_a2 = issueSubmissions[submission.issue]) == null ? void 0 : _a2.push(submission);
4079
+ }
4080
+ }
4081
+ return issueSubmissions;
4082
+ }
4083
+ )
4084
+ );
4067
4085
  const selectFormSubmissionsOfAsset = restructureCreateSelectorWithArgs(
4068
4086
  toolkit.createSelector(
4069
4087
  [selectFormSubmissions, (_state, assetId) => assetId],
@@ -8278,13 +8296,16 @@ var __publicField = (obj, key, value) => {
8278
8296
  queryParams: { conversation_id: conversationId }
8279
8297
  }).then((response) => {
8280
8298
  const conversation = store.getState().agentsReducer.conversations[conversationId];
8281
- if (!conversation) {
8299
+ if (!(conversation == null ? void 0 : conversation.offline_id)) {
8282
8300
  throw new Error("Conversation not found");
8283
8301
  }
8302
+ if (!Array.isArray(response)) {
8303
+ response = [response];
8304
+ }
8284
8305
  store.dispatch(
8285
8306
  updateConversation({
8286
- offline_id: conversationId,
8287
- tiptap_content: [...conversation.tiptap_content || [], response.response]
8307
+ ...conversation,
8308
+ tiptap_content: [...conversation.tiptap_content || [], ...response]
8288
8309
  })
8289
8310
  );
8290
8311
  });
@@ -13420,7 +13441,7 @@ var __publicField = (obj, key, value) => {
13420
13441
  severity,
13421
13442
  inputId,
13422
13443
  labelId,
13423
- label: showInputOnly ? label : "",
13444
+ label,
13424
13445
  image: showInputOnly ? void 0 : field.image,
13425
13446
  flexProps: { direction: "column", justify: "start", align: "start", gap: "1" },
13426
13447
  children: [
@@ -17075,6 +17096,7 @@ var __publicField = (obj, key, value) => {
17075
17096
  exports2.selectFormSubmissions = selectFormSubmissions;
17076
17097
  exports2.selectFormSubmissionsByAssets = selectFormSubmissionsByAssets;
17077
17098
  exports2.selectFormSubmissionsByFormRevisions = selectFormSubmissionsByFormRevisions;
17099
+ exports2.selectFormSubmissionsByIssues = selectFormSubmissionsByIssues;
17078
17100
  exports2.selectFormSubmissionsMapping = selectFormSubmissionsMapping;
17079
17101
  exports2.selectFormSubmissionsOfAsset = selectFormSubmissionsOfAsset;
17080
17102
  exports2.selectFormSubmissionsOfForm = selectFormSubmissionsOfForm;