react-instantsearch 7.44.0 → 7.44.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,7 +9,7 @@ export declare function createDefaultTools<TObject extends RecordWithObjectID>(i
9
9
  type ItemComponent<TObject> = RecommendComponentProps<TObject>['itemComponent'];
10
10
  type UiProps = Pick<ChatUiProps, 'open' | 'headerProps' | 'messagesProps' | 'promptProps' | 'suggestionsProps' | 'headerComponent' | 'promptComponent' | 'suggestionsComponent' | 'layoutComponent' | 'sendMessage' | 'regenerate' | 'stop' | 'error'>;
11
11
  type UserHeaderProps = Omit<ChatUiProps['headerProps'], 'onClose'>;
12
- type UserMessagesProps<TUiMessage extends UIMessage = UIMessage> = Omit<ChatUiProps<TUiMessage>['messagesProps'], 'messages' | 'tools' | 'indexUiState' | 'setIndexUiState' | 'scrollRef' | 'contentRef' | 'messageComponent' | 'leadingComponent' | 'footerComponent' | 'suggestionsComponent' | 'translations' | 'classNames'>;
12
+ type UserMessagesProps<TUiMessage extends UIMessage = UIMessage> = Omit<ChatUiProps<TUiMessage>['messagesProps'], 'messages' | 'tools' | 'indexUiState' | 'setIndexUiState' | 'scrollRef' | 'contentRef' | 'onClose' | 'onReload' | 'messageComponent' | 'leadingComponent' | 'footerComponent' | 'suggestionsComponent' | 'translations' | 'classNames'>;
13
13
  type UserPromptProps = Omit<ChatUiProps['promptProps'], 'value' | 'onInput' | 'onSubmit' | 'headerComponent' | 'footerComponent'>;
14
14
  export type Tool = UserClientSideTool;
15
15
  export type Tools = UserClientSideTools;
@@ -1,4 +1,4 @@
1
- /*! React InstantSearch 7.44.0 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch */
1
+ /*! React InstantSearch 7.44.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.44.0';
27
+ var version$2 = '7.44.1';
28
28
 
29
29
  function _define_property(obj, key, value) {
30
30
  if (key in obj) {
@@ -9223,7 +9223,7 @@
9223
9223
  });
9224
9224
  }
9225
9225
 
9226
- var version = '4.111.0';
9226
+ var version = '4.111.1';
9227
9227
 
9228
9228
  var ANONYMOUS_TOKEN_COOKIE_KEY = '_ALGOLIA';
9229
9229
  function getCookie(name) {
@@ -22196,9 +22196,12 @@
22196
22196
  "stop",
22197
22197
  "error"
22198
22198
  ]);
22199
+ // React versions before 19 preserve unknown boolean attributes as numbers.
22200
+ var inert = open ? undefined : 1;
22199
22201
  return /*#__PURE__*/ createElement("div", _object_spread_props(_object_spread({}, rest), {
22200
22202
  className: cx('ais-Chat', 'ais-ChatOverlayLayout', maximized && 'ais-ChatOverlayLayout--maximized', classNames.root, className)
22201
22203
  }), /*#__PURE__*/ createElement("div", {
22204
+ inert: inert,
22202
22205
  className: cx('ais-Chat-container', open && 'ais-Chat-container--open', maximized && 'ais-Chat-container--maximized', classNames.container)
22203
22206
  }, headerComponent, messagesComponent, promptComponent));
22204
22207
  };
@@ -22584,6 +22587,8 @@
22584
22587
  "stop",
22585
22588
  "error"
22586
22589
  ]);
22590
+ // React versions before 19 preserve unknown boolean attributes as numbers.
22591
+ var inert = open ? undefined : 1;
22587
22592
  var element = typeof document !== 'undefined' ? parentElement ? document.querySelector(parentElement) : document.body : null;
22588
22593
  if (element) {
22589
22594
  if (open && !originalMargins.has(element)) {
@@ -22604,6 +22609,7 @@
22604
22609
  return /*#__PURE__*/ createElement("div", _object_spread_props(_object_spread({}, rest), {
22605
22610
  className: cx('ais-Chat', 'ais-ChatSidePanelLayout', maximized && 'ais-ChatSidePanelLayout--maximized', classNames.root, className)
22606
22611
  }), /*#__PURE__*/ createElement("div", {
22612
+ inert: inert,
22607
22613
  className: cx('ais-Chat-container', open && 'ais-Chat-container--open', maximized && 'ais-Chat-container--maximized', classNames.container)
22608
22614
  }, headerComponent, messagesComponent, promptComponent));
22609
22615
  };