@nivaro/react 0.3.59 → 0.3.60
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.
|
|
12
|
+
const Ue = "nivaro-react@0.3.60", 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" };
|
|
@@ -3777,6 +3777,7 @@ function Sc({
|
|
|
3777
3777
|
}
|
|
3778
3778
|
return /* @__PURE__ */ a("span", { className: "block truncate", children: String(n) });
|
|
3779
3779
|
}
|
|
3780
|
+
const Ki = de(/* @__PURE__ */ new Map());
|
|
3780
3781
|
if (ws || !L && mn)
|
|
3781
3782
|
return /* @__PURE__ */ a("div", { className: "py-3 text-center text-[12px] text-slate-400", children: /* @__PURE__ */ a(Tn, { className: "h-4 w-4 animate-spin inline" }) });
|
|
3782
3783
|
const Jr = (f == null ? void 0 : f.rowId) === "new", st = cn && Ae === "original" && !q, At = (st ? 1 : 0) + (ie && (X || L || P) ? 1 : 0) + (T ? 1 : 0) + (L || P ? 1 : 0) + Me.length + 1, er = st ? "select" : ie && (X || P) ? "reorder" : T ? "num" : P ? "status" : "data", tr = (e) => {
|
|
@@ -3808,7 +3809,7 @@ function Sc({
|
|
|
3808
3809
|
}), D.forEach((n, t) => {
|
|
3809
3810
|
e.push({ key: `pending:${t}`, kind: "pending", row: n, idx: t });
|
|
3810
3811
|
})), e;
|
|
3811
|
-
},
|
|
3812
|
+
}, Pi = st ? nr().map((e) => e.key) : [], cl = Pi.length > 0 && Pi.every((e) => Rt.has(e)), ul = st ? nr().filter((e) => Rt.has(e.key)) : [], fl = () => {
|
|
3812
3813
|
var t;
|
|
3813
3814
|
const e = Ge.current;
|
|
3814
3815
|
if (!e) return !1;
|
|
@@ -3845,16 +3846,15 @@ function Sc({
|
|
|
3845
3846
|
};
|
|
3846
3847
|
rs.current = ml;
|
|
3847
3848
|
async function pl(e) {
|
|
3848
|
-
const n =
|
|
3849
|
+
const n = Ki.current;
|
|
3849
3850
|
await Ao(
|
|
3850
3851
|
e,
|
|
3851
3852
|
nr().filter((t) => Rt.has(t.key)),
|
|
3852
3853
|
{ clearSelection: !0, noun: "row", baseOf: (t) => n.get(t) }
|
|
3853
|
-
),
|
|
3854
|
+
), Ki.current = /* @__PURE__ */ new Map();
|
|
3854
3855
|
}
|
|
3855
|
-
const Pi = de(/* @__PURE__ */ new Map());
|
|
3856
3856
|
function hl() {
|
|
3857
|
-
|
|
3857
|
+
Ki.current = L || q ? /* @__PURE__ */ new Map() : od(
|
|
3858
3858
|
wt,
|
|
3859
3859
|
[...Rt].filter((e) => !e.startsWith("pending:"))
|
|
3860
3860
|
), ss(!0);
|
|
@@ -5007,7 +5007,7 @@ function Sc({
|
|
|
5007
5007
|
"aria-label": "Select all rows",
|
|
5008
5008
|
className: "accent-nvr-cyan",
|
|
5009
5009
|
checked: cl,
|
|
5010
|
-
onChange: (e) => fr(e.target.checked ? new Set(
|
|
5010
|
+
onChange: (e) => fr(e.target.checked ? new Set(Pi) : /* @__PURE__ */ new Set())
|
|
5011
5011
|
}
|
|
5012
5012
|
) }),
|
|
5013
5013
|
ie && (X || L || P) && /* @__PURE__ */ a("th", { className: "w-6" }),
|