@overmap-ai/core 1.0.53-add-agent-conversations.2 → 1.0.53-add-agent-conversations.4

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.
@@ -964,6 +964,7 @@ function truncate(str, maxLength) {
964
964
  return subString.slice(0, subString.lastIndexOf(" ")) + "…";
965
965
  }
966
966
  const restructureCreateSelectorWithArgs = (selector) => (args) => (state) => selector(state, args);
967
+ const createSelectorWithArgs = restructureCreateSelectorWithArgs;
967
968
  function onlyUniqueOfflineIds(value, index2, self2) {
968
969
  return self2.findIndex((v) => v.offline_id === value.offline_id) === index2;
969
970
  }
@@ -4482,6 +4483,10 @@ const agentsSlice = createSlice({
4482
4483
  });
4483
4484
  const { setConversations, addConversation, setConversation } = agentsSlice.actions;
4484
4485
  const selectConversationMapping = (state) => state.agentsReducer.conversations;
4486
+ const selectConversations = createSelector(
4487
+ [selectConversationMapping],
4488
+ (conversationMapping) => Object.values(conversationMapping)
4489
+ );
4485
4490
  const selectConversation = restructureCreateSelectorWithArgs(
4486
4491
  createSelector(
4487
4492
  [selectConversationMapping, (_state, conversationId) => conversationId],
@@ -16730,6 +16735,7 @@ export {
16730
16735
  coordinatesToUrlText,
16731
16736
  createOfflineAction,
16732
16737
  createPointMarker,
16738
+ createSelectorWithArgs,
16733
16739
  defaultBadgeColor,
16734
16740
  defaultStore,
16735
16741
  deleteComponentType,
@@ -16946,6 +16952,7 @@ export {
16946
16952
  selectComponentsMapping,
16947
16953
  selectConversation,
16948
16954
  selectConversationMapping,
16955
+ selectConversations,
16949
16956
  selectCreateProjectType,
16950
16957
  selectCurrentUser,
16951
16958
  selectDeletedRequests,