react-instantsearch-core 7.33.0 → 7.33.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.
package/dist/cjs/version.js
CHANGED
package/dist/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "7.33.
|
|
1
|
+
declare const _default: "7.33.1";
|
|
2
2
|
export default _default;
|
package/dist/es/version.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! React InstantSearch Core 7.33.
|
|
1
|
+
/*! React InstantSearch Core 7.33.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.33.
|
|
27
|
+
var version$2 = '7.33.1';
|
|
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.99.0';
|
|
10857
10857
|
|
|
10858
10858
|
var withUsage$q = createDocumentationMessageGenerator({
|
|
10859
10859
|
name: 'instantsearch'
|
|
@@ -14005,47 +14005,15 @@
|
|
|
14005
14005
|
message
|
|
14006
14006
|
].concat(_to_consumable_array(rest)));
|
|
14007
14007
|
}
|
|
14008
|
-
|
|
14009
|
-
|
|
14010
|
-
|
|
14011
|
-
serializedContext = JSON.stringify(resolvedContext);
|
|
14012
|
-
} catch (unused) {
|
|
14013
|
-
var _chatInstance3;
|
|
14014
|
-
return (_chatInstance3 = _chatInstance).sendMessage.apply(_chatInstance3, [
|
|
14015
|
-
message
|
|
14016
|
-
].concat(_to_consumable_array(rest)));
|
|
14017
|
-
}
|
|
14018
|
-
var contextTextPart = {
|
|
14019
|
-
type: 'text',
|
|
14020
|
-
text: '<context>'.concat(serializedContext).concat('</context>')
|
|
14021
|
-
};
|
|
14022
|
-
if ('parts' in message && message.parts) {
|
|
14023
|
-
var _chatInstance4;
|
|
14024
|
-
return (_chatInstance4 = _chatInstance).sendMessage.apply(_chatInstance4, [
|
|
14025
|
-
_object_spread_props(_object_spread({}, message), {
|
|
14026
|
-
parts: [
|
|
14027
|
-
contextTextPart
|
|
14028
|
-
].concat(_to_consumable_array(message.parts)),
|
|
14029
|
-
text: undefined,
|
|
14030
|
-
files: undefined
|
|
14031
|
-
})
|
|
14032
|
-
].concat(_to_consumable_array(rest)));
|
|
14033
|
-
}
|
|
14034
|
-
var textContent = 'text' in message && message.text ? message.text : '';
|
|
14008
|
+
// Resolve once per send; let the server validate the payload and
|
|
14009
|
+
// surface any contract violations.
|
|
14010
|
+
var turnContext = typeof context === 'function' ? context() : context;
|
|
14035
14011
|
return (_chatInstance1 = _chatInstance).sendMessage.apply(_chatInstance1, [
|
|
14036
|
-
{
|
|
14037
|
-
|
|
14038
|
-
|
|
14039
|
-
|
|
14040
|
-
|
|
14041
|
-
text: textContent
|
|
14042
|
-
}
|
|
14043
|
-
],
|
|
14044
|
-
metadata: message.metadata,
|
|
14045
|
-
messageId: message.messageId,
|
|
14046
|
-
files: undefined,
|
|
14047
|
-
text: undefined
|
|
14048
|
-
}
|
|
14012
|
+
_object_spread_props(_object_spread({}, message), {
|
|
14013
|
+
metadata: _object_spread_props(_object_spread({}, message.metadata), {
|
|
14014
|
+
turnContext: turnContext
|
|
14015
|
+
})
|
|
14016
|
+
})
|
|
14049
14017
|
].concat(_to_consumable_array(rest)));
|
|
14050
14018
|
};
|
|
14051
14019
|
return {
|
|
@@ -17453,7 +17421,7 @@
|
|
|
17453
17421
|
var unmountFn = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : noop;
|
|
17454
17422
|
checkRendering(renderFn, withUsage$2());
|
|
17455
17423
|
return function(widgetParams) {
|
|
17456
|
-
var _ref = widgetParams || {}, facetName = _ref.facetName, limit = _ref.limit, threshold = _ref.threshold, fallbackParameters = _ref.fallbackParameters,
|
|
17424
|
+
var _ref = widgetParams || {}, facetName = _ref.facetName, limit = _ref.limit, threshold = _ref.threshold, fallbackParameters = _ref.fallbackParameters, _ref_escapeHTML = _ref.escapeHTML, escapeHTML = _ref_escapeHTML === void 0 ? true : _ref_escapeHTML, _ref_transformItems = _ref.transformItems, transformItems = _ref_transformItems === void 0 ? function(items) {
|
|
17457
17425
|
return items;
|
|
17458
17426
|
} : _ref_transformItems;
|
|
17459
17427
|
if (!facetName) {
|
|
@@ -17521,7 +17489,6 @@
|
|
|
17521
17489
|
maxRecommendations: limit,
|
|
17522
17490
|
threshold: threshold,
|
|
17523
17491
|
fallbackParameters: fallbackParameters ? _object_spread({}, fallbackParameters, escapeHTML ? TAG_PLACEHOLDER : {}) : undefined,
|
|
17524
|
-
queryParameters: _object_spread({}, queryParameters, escapeHTML ? TAG_PLACEHOLDER : {}),
|
|
17525
17492
|
$$id: this.$$id
|
|
17526
17493
|
});
|
|
17527
17494
|
}
|