@overmap-ai/core 1.0.53-add-agent-conversations.3 → 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.
package/dist/overmap-core.js
CHANGED
|
@@ -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,8 +4483,9 @@ const agentsSlice = createSlice({
|
|
|
4482
4483
|
});
|
|
4483
4484
|
const { setConversations, addConversation, setConversation } = agentsSlice.actions;
|
|
4484
4485
|
const selectConversationMapping = (state) => state.agentsReducer.conversations;
|
|
4485
|
-
const selectConversations =
|
|
4486
|
-
|
|
4486
|
+
const selectConversations = createSelector(
|
|
4487
|
+
[selectConversationMapping],
|
|
4488
|
+
(conversationMapping) => Object.values(conversationMapping)
|
|
4487
4489
|
);
|
|
4488
4490
|
const selectConversation = restructureCreateSelectorWithArgs(
|
|
4489
4491
|
createSelector(
|
|
@@ -16733,6 +16735,7 @@ export {
|
|
|
16733
16735
|
coordinatesToUrlText,
|
|
16734
16736
|
createOfflineAction,
|
|
16735
16737
|
createPointMarker,
|
|
16738
|
+
createSelectorWithArgs,
|
|
16736
16739
|
defaultBadgeColor,
|
|
16737
16740
|
defaultStore,
|
|
16738
16741
|
deleteComponentType,
|