stream-chat-react 12.6.0 → 12.6.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.
@@ -1689,10 +1689,10 @@ var require_Parser = __commonJS({
1689
1689
  if (!this.consumeWhitespace()) {
1690
1690
  this.error("Invalid XML declaration");
1691
1691
  }
1692
- let version2 = Boolean(scanner.consumeStringFast("version")) && this.consumeEqual() && this.consumeSystemLiteral();
1693
- if (version2 === false) {
1692
+ let version = Boolean(scanner.consumeStringFast("version")) && this.consumeEqual() && this.consumeSystemLiteral();
1693
+ if (version === false) {
1694
1694
  this.error("XML version is missing or invalid");
1695
- } else if (!/^1\.[0-9]+$/.test(version2)) {
1695
+ } else if (!/^1\.[0-9]+$/.test(version)) {
1696
1696
  this.error("Invalid character in version number");
1697
1697
  }
1698
1698
  if (this.consumeWhitespace()) {
@@ -54504,11 +54504,6 @@ var import_react254 = __toESM(require("react"));
54504
54504
 
54505
54505
  // src/components/Chat/hooks/useChat.ts
54506
54506
  var import_react251 = require("react");
54507
-
54508
- // src/version.ts
54509
- var version = "0.0.0-development";
54510
-
54511
- // src/components/Chat/hooks/useChat.ts
54512
54507
  var useChat = ({
54513
54508
  client,
54514
54509
  defaultLanguage = "en",
@@ -54539,7 +54534,7 @@ var useChat = ({
54539
54534
  if (!client) return;
54540
54535
  const userAgent = client.getUserAgent();
54541
54536
  if (!userAgent.includes("stream-chat-react")) {
54542
- client.setUserAgent(`stream-chat-react-${version}-${userAgent}`);
54537
+ client.setUserAgent(`stream-chat-react-12.6.1-${userAgent}`);
54543
54538
  }
54544
54539
  client.threads.registerSubscriptions();
54545
54540
  client.polls.registerSubscriptions();