@nivaro/react 0.3.16 → 0.3.17

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 @@ import { noteReplayEvent as _e, createReplayCheckoutState as De } from "../share
9
9
  import { emitReplayTap as Te, setReplayRecorderMode as N, registerReplayCapture as qe, clipEndOffset as Le, withClipKind as Pe } from "../shared/lib/replay-capture.js";
10
10
  import { instrumentConsole as Ne, instrumentRequests as Fe, redactSecrets as Me } from "../shared/lib/replay-context.js";
11
11
  import { instrumentSocket as Oe } from "../shared/lib/replay-socket.js";
12
- const Ue = "nivaro-react@0.3.16", j = 1e4, We = 150, He = 3e3, Ke = 600, $e = (n) => `nvr_replay_resume${n ? `:${n}` : ""}`, G = () => typeof navigator > "u" || navigator.onLine !== !1;
12
+ const Ue = "nivaro-react@0.3.17", j = 1e4, We = 150, He = 3e3, Ke = 600, $e = (n) => `nvr_replay_resume${n ? `:${n}` : ""}`, G = () => typeof navigator > "u" || navigator.onLine !== !1;
13
13
  function Be(n) {
14
14
  return typeof n.url != "string" || typeof fetch != "function" ? null : (f, a) => {
15
15
  const u = typeof n.getToken == "function" ? n.getToken() : void 0, d = { "Content-Type": "application/json" };
@@ -4431,7 +4431,7 @@ ${r.join(`
4431
4431
  const l = a.indexOf("."), d = a.slice(0, l), c = a.slice(l + 1);
4432
4432
  te.invalidateQueries({ queryKey: ["o2m-rows", d, c, e] });
4433
4433
  }
4434
- if (An(new Map(Qi.current)), ni.current.clear(), oo(/* @__PURE__ */ new Map()), te.invalidateQueries({ queryKey: ["item", o] }), te.invalidateQueries({ queryKey: ["m2m-items"] }), Ag(te, o, String(e)), Tg(te, o, String(e)), fs && dn && Pn({ itemId: String(e), silent: !0 }).then(() => {
4434
+ if (An(new Map(Qi.current)), ni.current.clear(), oo(/* @__PURE__ */ new Map()), te.invalidateQueries({ queryKey: ["item", o] }), te.invalidateQueries({ queryKey: ["m2m-items"] }), Ag(te, o, String(e)), te.invalidateQueries({ queryKey: ["last-touch", o, String(e)] }), Tg(te, o, String(e)), fs && dn && Pn({ itemId: String(e), silent: !0 }).then(() => {
4435
4435
  te.invalidateQueries({ queryKey: ["m2m-items"] });
4436
4436
  }), m && Ui.current) {
4437
4437
  const a = Ui.current;
@@ -789,7 +789,7 @@ function we({
789
789
  /* @__PURE__ */ t(
790
790
  "a",
791
791
  {
792
- href: `${r}/files/${n.id}?download=1`,
792
+ href: `${r}/files/${n.id}?download=1&chat_message=${a.message.id}`,
793
793
  className: "inline-flex items-center gap-1 hover:underline",
794
794
  target: "_blank",
795
795
  rel: "noreferrer",
@@ -864,7 +864,7 @@ function we({
864
864
  /* @__PURE__ */ t(
865
865
  "a",
866
866
  {
867
- href: `${r}/files/${x.id}?download=1`,
867
+ href: `${r}/files/${x.id}?download=1&chat_message=${a.message.id}`,
868
868
  className: "inline-flex items-center gap-1 hover:underline",
869
869
  target: "_blank",
870
870
  rel: "noreferrer",