stream-chat-react 14.0.0 → 14.0.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.
@@ -25,7 +25,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
25
25
  const jsxRuntime = require("react/jsx-runtime");
26
26
  const React = require("react");
27
27
  const Picker = require("@emoji-mart/react");
28
- const WithAudioPlayback = require("./WithAudioPlayback.d26afa91.js");
28
+ const WithAudioPlayback = require("./WithAudioPlayback.ba05c770.js");
29
29
  const mergeWith = require("lodash.mergewith");
30
30
  const streamChat = require("stream-chat");
31
31
  const isShadowRoot = (node) => !!node.host;
package/dist/cjs/index.js CHANGED
@@ -5,7 +5,7 @@ const clsx = require("clsx");
5
5
  const nanoid = require("nanoid");
6
6
  const React = require("react");
7
7
  const audioProcessing = require("./audioProcessing.56e5db9d.js");
8
- const WithAudioPlayback = require("./WithAudioPlayback.d26afa91.js");
8
+ const WithAudioPlayback = require("./WithAudioPlayback.ba05c770.js");
9
9
  const streamChat = require("stream-chat");
10
10
  const sanitizeUrl = require("@braintree/sanitize-url");
11
11
  const throttle = require("lodash.throttle");
@@ -19444,7 +19444,7 @@ const ThreadHeader = (props) => {
19444
19444
  const replyCount = threadInstance ? replyCountThreadInstance : thread ? thread.reply_count ?? 0 : 0;
19445
19445
  const threadDisplayName = overrideTitle ?? channelDisplayTitle ?? displayNameFromParentMessage(thread) ?? void 0;
19446
19446
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "str-chat__thread-header", children: [
19447
- activeChatView === "threads" && HeaderStartContent && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "str-chat__thread-header__start", children: /* @__PURE__ */ jsxRuntime.jsx(HeaderStartContent, {}) }),
19447
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "str-chat__thread-header__start", children: activeChatView === "threads" && HeaderStartContent && /* @__PURE__ */ jsxRuntime.jsx(HeaderStartContent, {}) }),
19448
19448
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "str-chat__thread-header-details", children: [
19449
19449
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "str-chat__thread-header-title", children: t("Thread") }),
19450
19450
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -20473,6 +20473,7 @@ const ReactionSelectorWithButton = ({
20473
20473
  {
20474
20474
  dialogManagerId: dialogManager?.id,
20475
20475
  id: dialogId2,
20476
+ offset: 8,
20476
20477
  placement: isMyMessage() ? "top-end" : "top-start",
20477
20478
  referenceElement: buttonRef.current,
20478
20479
  trapFocus: true,
@@ -21536,7 +21537,6 @@ const MessageActions = ({
21536
21537
  /* @__PURE__ */ jsxRuntime.jsx(
21537
21538
  ContextMenuComponent,
21538
21539
  {
21539
- allowFlip: false,
21540
21540
  backLabel: t("Back"),
21541
21541
  className: clsx("str-chat__message-actions-box", {
21542
21542
  "str-chat__message-actions-box--hidden": dropdownReactionSelectorDialogIsOpen,
@@ -28528,7 +28528,7 @@ const useChat = ({
28528
28528
  };
28529
28529
  React.useEffect(() => {
28530
28530
  if (!client) return;
28531
- const version = "14.0.0";
28531
+ const version = "14.0.1";
28532
28532
  const userAgent = client.getUserAgent();
28533
28533
  if (!userAgent.includes("stream-chat-react")) {
28534
28534
  client.setUserAgent(`stream-chat-react-${version}-${userAgent}`);