react-instantsearch-core 7.36.0 → 7.37.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/dist/cjs/version.js
CHANGED
package/dist/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "7.
|
|
1
|
+
declare const _default: "7.37.0";
|
|
2
2
|
export default _default;
|
package/dist/es/version.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! React InstantSearch Core 7.
|
|
1
|
+
/*! React InstantSearch Core 7.37.0 | © 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.
|
|
27
|
+
var version$2 = '7.37.0';
|
|
28
28
|
|
|
29
29
|
function _define_property(obj, key, value) {
|
|
30
30
|
if (key in obj) {
|
|
@@ -10853,7 +10853,7 @@
|
|
|
10853
10853
|
};
|
|
10854
10854
|
}
|
|
10855
10855
|
|
|
10856
|
-
var version = '4.
|
|
10856
|
+
var version = '4.103.0';
|
|
10857
10857
|
|
|
10858
10858
|
var withUsage$r = createDocumentationMessageGenerator({
|
|
10859
10859
|
name: 'instantsearch'
|
|
@@ -13174,33 +13174,74 @@
|
|
|
13174
13174
|
}
|
|
13175
13175
|
break;
|
|
13176
13176
|
}
|
|
13177
|
-
case 'tool-error':
|
|
13177
|
+
case 'tool-input-error':
|
|
13178
13178
|
{
|
|
13179
|
+
var _chunk_input, _chunk_providerExecuted, _chunk_providerMetadata;
|
|
13179
13180
|
if (!currentMessage) break;
|
|
13181
|
+
delete toolRawInputByCallId[chunk.toolCallId];
|
|
13182
|
+
delete toolRawOutputByCallId[chunk.toolCallId];
|
|
13180
13183
|
var toolIndex3 = currentMessage.parts.findIndex(function(p) {
|
|
13181
13184
|
return 'toolCallId' in p && p.toolCallId === chunk.toolCallId;
|
|
13182
13185
|
});
|
|
13186
|
+
var existingPart3 = toolIndex3 >= 0 ? currentMessage.parts[toolIndex3] : null;
|
|
13187
|
+
var _ref5 = existingPart3 !== null && existingPart3 !== void 0 ? existingPart3 : {}, _ignoredOutput = _ref5.output, _ignoredRawOutput = _ref5.rawOutput, _ignoredPreliminary = _ref5.preliminary, carryOver = _object_without_properties(_ref5, [
|
|
13188
|
+
"output",
|
|
13189
|
+
"rawOutput",
|
|
13190
|
+
"preliminary"
|
|
13191
|
+
]);
|
|
13192
|
+
var nextToolPart2 = _object_spread_props(_object_spread({}, carryOver), {
|
|
13193
|
+
type: "tool-".concat(chunk.toolName),
|
|
13194
|
+
toolCallId: chunk.toolCallId,
|
|
13195
|
+
state: 'output-error',
|
|
13196
|
+
input: undefined,
|
|
13197
|
+
rawInput: (_chunk_input = chunk.input) !== null && _chunk_input !== void 0 ? _chunk_input : carryOver.rawInput,
|
|
13198
|
+
errorText: chunk.errorText,
|
|
13199
|
+
providerExecuted: (_chunk_providerExecuted = chunk.providerExecuted) !== null && _chunk_providerExecuted !== void 0 ? _chunk_providerExecuted : carryOver.providerExecuted,
|
|
13200
|
+
callProviderMetadata: (_chunk_providerMetadata = chunk.providerMetadata) !== null && _chunk_providerMetadata !== void 0 ? _chunk_providerMetadata : carryOver.callProviderMetadata
|
|
13201
|
+
});
|
|
13183
13202
|
if (toolIndex3 >= 0) {
|
|
13184
|
-
var _chunk_input;
|
|
13185
|
-
delete toolRawInputByCallId[chunk.toolCallId];
|
|
13186
|
-
delete toolRawOutputByCallId[chunk.toolCallId];
|
|
13187
13203
|
var updatedParts8 = _to_consumable_array(currentMessage.parts);
|
|
13188
|
-
|
|
13189
|
-
var _ignoredRawOutput = existingPart3.rawOutput, _ignoredPreliminary = existingPart3.preliminary, rest1 = _object_without_properties(existingPart3, [
|
|
13190
|
-
"rawOutput",
|
|
13191
|
-
"preliminary"
|
|
13192
|
-
]);
|
|
13193
|
-
updatedParts8[toolIndex3] = _object_spread_props(_object_spread({}, rest1), {
|
|
13194
|
-
state: 'output-error',
|
|
13195
|
-
errorText: chunk.errorText,
|
|
13196
|
-
input: (_chunk_input = chunk.input) !== null && _chunk_input !== void 0 ? _chunk_input : existingPart3.input,
|
|
13197
|
-
callProviderMetadata: chunk.callProviderMetadata
|
|
13198
|
-
});
|
|
13204
|
+
updatedParts8[toolIndex3] = nextToolPart2;
|
|
13199
13205
|
currentMessage = _object_spread_props(_object_spread({}, currentMessage), {
|
|
13200
13206
|
parts: updatedParts8
|
|
13201
13207
|
});
|
|
13202
|
-
|
|
13208
|
+
} else {
|
|
13209
|
+
currentMessage = _object_spread_props(_object_spread({}, currentMessage), {
|
|
13210
|
+
parts: _to_consumable_array(currentMessage.parts).concat([
|
|
13211
|
+
nextToolPart2
|
|
13212
|
+
])
|
|
13213
|
+
});
|
|
13203
13214
|
}
|
|
13215
|
+
_this.state.replaceMessage(currentMessageIndex, currentMessage);
|
|
13216
|
+
break;
|
|
13217
|
+
}
|
|
13218
|
+
case 'tool-output-error':
|
|
13219
|
+
{
|
|
13220
|
+
var _chunk_providerExecuted1, _chunk_providerMetadata1;
|
|
13221
|
+
if (!currentMessage) break;
|
|
13222
|
+
var toolIndex4 = currentMessage.parts.findIndex(function(p) {
|
|
13223
|
+
return 'toolCallId' in p && p.toolCallId === chunk.toolCallId;
|
|
13224
|
+
});
|
|
13225
|
+
if (toolIndex4 < 0) break;
|
|
13226
|
+
delete toolRawInputByCallId[chunk.toolCallId];
|
|
13227
|
+
delete toolRawOutputByCallId[chunk.toolCallId];
|
|
13228
|
+
var updatedParts9 = _to_consumable_array(currentMessage.parts);
|
|
13229
|
+
var existingPart4 = updatedParts9[toolIndex4];
|
|
13230
|
+
var _ignoredRawOutput1 = existingPart4.rawOutput, _ignoredPreliminary1 = existingPart4.preliminary, _ignoredOutput1 = existingPart4.output, rest1 = _object_without_properties(existingPart4, [
|
|
13231
|
+
"rawOutput",
|
|
13232
|
+
"preliminary",
|
|
13233
|
+
"output"
|
|
13234
|
+
]);
|
|
13235
|
+
updatedParts9[toolIndex4] = _object_spread_props(_object_spread({}, rest1), {
|
|
13236
|
+
state: 'output-error',
|
|
13237
|
+
errorText: chunk.errorText,
|
|
13238
|
+
providerExecuted: (_chunk_providerExecuted1 = chunk.providerExecuted) !== null && _chunk_providerExecuted1 !== void 0 ? _chunk_providerExecuted1 : rest1.providerExecuted,
|
|
13239
|
+
callProviderMetadata: (_chunk_providerMetadata1 = chunk.providerMetadata) !== null && _chunk_providerMetadata1 !== void 0 ? _chunk_providerMetadata1 : rest1.callProviderMetadata
|
|
13240
|
+
});
|
|
13241
|
+
currentMessage = _object_spread_props(_object_spread({}, currentMessage), {
|
|
13242
|
+
parts: updatedParts9
|
|
13243
|
+
});
|
|
13244
|
+
_this.state.replaceMessage(currentMessageIndex, currentMessage);
|
|
13204
13245
|
break;
|
|
13205
13246
|
}
|
|
13206
13247
|
case 'source-url':
|