react-instantsearch-core 7.49.0 → 7.49.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.
@@ -9,4 +9,4 @@ Object.defineProperty(exports, "default", {
9
9
  return _default;
10
10
  }
11
11
  });
12
- var _default = '7.49.0';
12
+ var _default = '7.49.1';
@@ -1,2 +1,2 @@
1
- declare const _default: "7.49.0";
1
+ declare const _default: "7.49.1";
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
- var version = '7.49.0';
1
+ var version = '7.49.1';
2
2
 
3
3
  export { version as default };
@@ -1,4 +1,4 @@
1
- /*! React InstantSearch Core 7.49.0 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch */
1
+ /*! React InstantSearch Core 7.49.1 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
@@ -24,7 +24,7 @@
24
24
 
25
25
  var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
26
26
 
27
- var version$2 = '7.49.0';
27
+ var version$2 = '7.49.1';
28
28
 
29
29
  function _define_property(obj, key, value) {
30
30
  if (key in obj) {
@@ -9418,7 +9418,7 @@
9418
9418
  });
9419
9419
  }
9420
9420
 
9421
- var version = '4.116.0';
9421
+ var version = '4.117.0';
9422
9422
 
9423
9423
  var ANONYMOUS_TOKEN_COOKIE_KEY = '_ALGOLIA';
9424
9424
  function getCookie(name) {
@@ -15081,7 +15081,7 @@
15081
15081
  var hasValidatedEntryPoints = false;
15082
15082
  var agentId = 'agentId' in options ? options.agentId : undefined;
15083
15083
  // Collected here rather than by the tool that searched: that tool renders
15084
- // nothing while display-results presents its records, and a record has to
15084
+ // nothing while Grouped Results presents its records, and a record has to
15085
15085
  // outlive the render that produced it.
15086
15086
  var records = createChatRecordsStore();
15087
15087
  var collectRecords = function collectRecords() {
@@ -15113,28 +15113,6 @@
15113
15113
  var _findSuggestionsPart;
15114
15114
  return (_findSuggestionsPart = findSuggestionsPart(findLastAssistantMessage(messages))) === null || _findSuggestionsPart === void 0 ? void 0 : _findSuggestionsPart.data.suggestions;
15115
15115
  };
15116
- // "Still coming" has to be inferred: the turn is running and has no
15117
- // `data-suggestions` part yet. Expecting any at all needs evidence, or an
15118
- // agent that never sends them would sit under a placeholder forever.
15119
- var getSuggestionsStatus = function getSuggestionsStatus(messages) {
15120
- var _lastAssistantMessage_metadata;
15121
- var status = _chatInstance.status;
15122
- if (status !== 'submitted' && status !== 'streaming') {
15123
- return 'idle';
15124
- }
15125
- var lastAssistantMessage = findLastAssistantMessage(messages);
15126
- if (findSuggestionsPart(lastAssistantMessage)) {
15127
- return 'idle';
15128
- }
15129
- var declaresSuggestions = (lastAssistantMessage === null || lastAssistantMessage === void 0 ? void 0 : (_lastAssistantMessage_metadata = lastAssistantMessage.metadata) === null || _lastAssistantMessage_metadata === void 0 ? void 0 : _lastAssistantMessage_metadata.suggestionsEnabled) === true;
15130
- if (declaresSuggestions) {
15131
- return 'loading';
15132
- }
15133
- var hasSuggestionsHistory = messages.some(function(message) {
15134
- return message !== lastAssistantMessage && message.role === 'assistant' && Boolean(findSuggestionsPart(message));
15135
- });
15136
- return hasSuggestionsHistory ? 'loading' : 'idle';
15137
- };
15138
15116
  var setMessages = function setMessages(messagesParam) {
15139
15117
  if (typeof messagesParam === 'function') {
15140
15118
  messagesParam = messagesParam(_chatInstance.messages);
@@ -15622,7 +15600,6 @@
15622
15600
  '~isOpenStatePersistenceEnabled': normalizedPersistence.open,
15623
15601
  setMessages: setMessages,
15624
15602
  suggestions: getSuggestionsFromMessages(_chatInstance.messages),
15625
- suggestionsStatus: getSuggestionsStatus(_chatInstance.messages),
15626
15603
  clearMessages: clearMessages,
15627
15604
  tools: toolsWithAddToolResult,
15628
15605
  records: records,