@spotlightjs/overlay 2.4.0-next.3 → 2.4.0-next.4
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.
- package/dist/{index-f526f404.js → index-019c1b35.js} +42 -42
- package/dist/index-019c1b35.js.map +1 -0
- package/dist/{main-9dde9a86.js → main-fcd9d91e.js} +2 -2
- package/dist/{main-9dde9a86.js.map → main-fcd9d91e.js.map} +1 -1
- package/dist/sentry-spotlight.iife.js +7 -7
- package/dist/sentry-spotlight.iife.js.map +1 -1
- package/dist/sentry-spotlight.js +1 -1
- package/dist/src/integrations/sentry/data/sentryDataCache.d.ts +1 -1
- package/package.json +1 -1
- package/dist/index-f526f404.js.map +0 -1
|
@@ -2374,7 +2374,7 @@ class Np {
|
|
|
2374
2374
|
);
|
|
2375
2375
|
}
|
|
2376
2376
|
}
|
|
2377
|
-
const
|
|
2377
|
+
const se = new Np();
|
|
2378
2378
|
function pp(e) {
|
|
2379
2379
|
return e.type != "transaction";
|
|
2380
2380
|
}
|
|
@@ -2651,7 +2651,7 @@ const Bp = (e) => {
|
|
|
2651
2651
|
if (Yp(n))
|
|
2652
2652
|
return null;
|
|
2653
2653
|
const r = (s = (i = n.contexts) == null ? void 0 : i.trace) == null ? void 0 : s.trace_id;
|
|
2654
|
-
return r &&
|
|
2654
|
+
return r && se.trackLocalTrace(r), n;
|
|
2655
2655
|
},
|
|
2656
2656
|
afterAllSetup: (n) => {
|
|
2657
2657
|
Fp(n, t);
|
|
@@ -3062,9 +3062,9 @@ function Jp(e, t) {
|
|
|
3062
3062
|
return e;
|
|
3063
3063
|
}
|
|
3064
3064
|
const bi = ({ children: e }) => {
|
|
3065
|
-
const [t, n] = P.useReducer(Jp,
|
|
3065
|
+
const [t, n] = P.useReducer(Jp, se.getEvents());
|
|
3066
3066
|
P.useEffect(
|
|
3067
|
-
() =>
|
|
3067
|
+
() => se.subscribe("event", (i) => {
|
|
3068
3068
|
n({ action: "APPEND", e: i });
|
|
3069
3069
|
}),
|
|
3070
3070
|
[]
|
|
@@ -3075,10 +3075,10 @@ const bi = ({ children: e }) => {
|
|
|
3075
3075
|
};
|
|
3076
3076
|
return /* @__PURE__ */ T.jsx(jn.Provider, { value: r, children: e });
|
|
3077
3077
|
}, Hi = () => (P.useContext(jn), {
|
|
3078
|
-
isLocalToSession: (e) =>
|
|
3078
|
+
isLocalToSession: (e) => se.isTraceLocal(e)
|
|
3079
3079
|
}), Zp = () => {
|
|
3080
3080
|
P.useContext(jn);
|
|
3081
|
-
const e = Hi(), t =
|
|
3081
|
+
const e = Hi(), t = se.getEnvelopes(), n = t.filter(({ envelope: r }) => {
|
|
3082
3082
|
var s;
|
|
3083
3083
|
const { trace_id: i } = ((s = r[0]) == null ? void 0 : s.trace) || {};
|
|
3084
3084
|
return i ? e.isLocalToSession(i) !== !1 : !1;
|
|
@@ -3224,7 +3224,7 @@ function hl(e) {
|
|
|
3224
3224
|
}
|
|
3225
3225
|
);
|
|
3226
3226
|
}
|
|
3227
|
-
const oO = P.lazy(() => import("./main-
|
|
3227
|
+
const oO = P.lazy(() => import("./main-fcd9d91e.js").then((e) => e.m)), EO = () => {
|
|
3228
3228
|
};
|
|
3229
3229
|
function Eo({
|
|
3230
3230
|
data: e,
|
|
@@ -3310,7 +3310,7 @@ function lO({ data: e }) {
|
|
|
3310
3310
|
] });
|
|
3311
3311
|
}
|
|
3312
3312
|
function Zu() {
|
|
3313
|
-
const { eventId: e } = Mr(), t = Pa(), n = Hi(), [r, i] = Zp(), s = r.length - i.length, [a, o] = P.useState(!t.experiments["sentry:focus-local-events"]), E = e &&
|
|
3313
|
+
const { eventId: e } = Mr(), t = Pa(), n = Hi(), [r, i] = Zp(), s = r.length - i.length, [a, o] = P.useState(!t.experiments["sentry:focus-local-events"]), E = e && se.getEnvelopes().find(({ envelope: l }) => l[0].event_id === e) || null;
|
|
3314
3314
|
return r != null && r.length ? /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
|
|
3315
3315
|
s > 0 && !a && /* @__PURE__ */ T.jsx(
|
|
3316
3316
|
Da,
|
|
@@ -3367,7 +3367,7 @@ function uO() {
|
|
|
3367
3367
|
function Cl(e) {
|
|
3368
3368
|
return /* @__PURE__ */ T.jsx("div", { className: "divide-primary-900 border-primary-900 bg-primary-950 divide-y border-y", ...e });
|
|
3369
3369
|
}
|
|
3370
|
-
const Ll = () => (P.useContext(jn),
|
|
3370
|
+
const Ll = () => (P.useContext(jn), se.getEvents()), TO = ({
|
|
3371
3371
|
title: e,
|
|
3372
3372
|
titleId: t,
|
|
3373
3373
|
...n
|
|
@@ -3687,7 +3687,7 @@ function xO() {
|
|
|
3687
3687
|
const { eventId: e } = Mr(), [t, n] = P.useState("details");
|
|
3688
3688
|
if (!e)
|
|
3689
3689
|
return /* @__PURE__ */ T.jsx("p", { className: "text-primary-300 p-6", children: "Unknown event id" });
|
|
3690
|
-
const r =
|
|
3690
|
+
const r = se.getEventById(e);
|
|
3691
3691
|
if (!r)
|
|
3692
3692
|
return /* @__PURE__ */ T.jsx("p", { className: "text-primary-300 p-6", children: "Event not found." });
|
|
3693
3693
|
const i = [
|
|
@@ -3746,7 +3746,7 @@ function wO() {
|
|
|
3746
3746
|
}
|
|
3747
3747
|
const ga = () => {
|
|
3748
3748
|
P.useContext(jn);
|
|
3749
|
-
const e = Hi(), t =
|
|
3749
|
+
const e = Hi(), t = se.getTraces(), n = t.filter((s) => e.isLocalToSession(s.trace_id) !== !1), r = t.reduce((s, a) => [...s, ...a.spans], []), i = n.reduce((s, a) => [...s, ...a.spans], []);
|
|
3750
3750
|
return [r, i];
|
|
3751
3751
|
}, Ma = ({
|
|
3752
3752
|
title: e,
|
|
@@ -4890,7 +4890,7 @@ function uI() {
|
|
|
4890
4890
|
function TI() {
|
|
4891
4891
|
return /* @__PURE__ */ T.jsx(bi, { children: /* @__PURE__ */ T.jsx(pn, { children: /* @__PURE__ */ T.jsx(fe, { path: "/*", element: /* @__PURE__ */ T.jsx(uI, {}) }) }) });
|
|
4892
4892
|
}
|
|
4893
|
-
const AI = () => (P.useContext(jn),
|
|
4893
|
+
const AI = () => (P.useContext(jn), se.getSdks());
|
|
4894
4894
|
function cI() {
|
|
4895
4895
|
const e = AI();
|
|
4896
4896
|
return /* @__PURE__ */ T.jsx(T.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ T.jsx(Cl, { children: e.map((t) => /* @__PURE__ */ T.jsxs("div", { className: "flex items-center gap-x-4 px-6 py-2", children: [
|
|
@@ -4905,7 +4905,7 @@ function cI() {
|
|
|
4905
4905
|
function RI() {
|
|
4906
4906
|
return /* @__PURE__ */ T.jsx(bi, { children: /* @__PURE__ */ T.jsx(pn, { children: /* @__PURE__ */ T.jsx(fe, { path: "/", element: /* @__PURE__ */ T.jsx(cI, {}) }) }) });
|
|
4907
4907
|
}
|
|
4908
|
-
const SI = () => (P.useContext(jn),
|
|
4908
|
+
const SI = () => (P.useContext(jn), se.getTraces());
|
|
4909
4909
|
function fI(e) {
|
|
4910
4910
|
return [...new Set((e.transactions || []).map((t) => {
|
|
4911
4911
|
var n;
|
|
@@ -15853,7 +15853,7 @@ function s1({
|
|
|
15853
15853
|
totalTransactions: i
|
|
15854
15854
|
}) {
|
|
15855
15855
|
var l, u;
|
|
15856
|
-
const [s, a] = P.useState(50), o = Or(t.start_timestamp, t.timestamp), E =
|
|
15856
|
+
const [s, a] = P.useState(50), o = Or(t.start_timestamp, t.timestamp), E = se.getEventsByTrace(t.trace_id).filter((c) => c.type !== "transaction" && "exception" in c);
|
|
15857
15857
|
return /* @__PURE__ */ T.jsxs(hl, { backto: `/traces/${t.trace_id}`, children: [
|
|
15858
15858
|
/* @__PURE__ */ T.jsx(
|
|
15859
15859
|
_l,
|
|
@@ -16002,7 +16002,7 @@ function o1({ trace: e }) {
|
|
|
16002
16002
|
] });
|
|
16003
16003
|
}
|
|
16004
16004
|
function E1({ traceContext: e }) {
|
|
16005
|
-
const t = e.trace_id, n =
|
|
16005
|
+
const t = e.trace_id, n = se.getTraceById(t);
|
|
16006
16006
|
return /* @__PURE__ */ T.jsxs(hl, { backto: `/traces/${t}`, children: [
|
|
16007
16007
|
/* @__PURE__ */ T.jsx(
|
|
16008
16008
|
_l,
|
|
@@ -16045,14 +16045,14 @@ function co() {
|
|
|
16045
16045
|
const { traceId: e, spanId: t } = Mr(), { pathname: n } = Xn(), [r, i] = P.useState(50);
|
|
16046
16046
|
if (!e)
|
|
16047
16047
|
return /* @__PURE__ */ T.jsx("p", { className: "text-primary-300 p-6", children: "Unknown trace id" });
|
|
16048
|
-
const s =
|
|
16048
|
+
const s = se.getTraceById(e);
|
|
16049
16049
|
if (!s)
|
|
16050
16050
|
return /* @__PURE__ */ T.jsxs("p", { className: "text-primary-300 p-6", children: [
|
|
16051
16051
|
"Trace not found. Check for more",
|
|
16052
16052
|
" ",
|
|
16053
16053
|
/* @__PURE__ */ T.jsx(me, { to: "/traces", className: "underline", children: "traces" })
|
|
16054
16054
|
] });
|
|
16055
|
-
const a = t ?
|
|
16055
|
+
const a = t ? se.getSpanById(s.trace_id, t) : void 0, o = n === `/traces/${e}/info`, E = s.start_timestamp, l = s.timestamp - E;
|
|
16056
16056
|
return /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
|
|
16057
16057
|
/* @__PURE__ */ T.jsx(l1, { trace: s }),
|
|
16058
16058
|
/* @__PURE__ */ T.jsx("div", { className: "px-6 py-4", children: /* @__PURE__ */ T.jsxs("div", { className: "text-primary-300 flex flex-1 items-center gap-x-1", children: [
|
|
@@ -16111,12 +16111,12 @@ function T1(e = {}) {
|
|
|
16111
16111
|
name: "sentry",
|
|
16112
16112
|
forwardedContentType: [xT],
|
|
16113
16113
|
setup: ({ open: t }) => {
|
|
16114
|
-
e.retries == null && (e.retries = 3), e.sidecarUrl
|
|
16114
|
+
e.retries == null && (e.retries = 3), e.sidecarUrl ? se.setSidecarUrl(e.sidecarUrl) : "sidecarUrl" in e && se.setSidecarUrl(null), jR(e), e.openLastError && se.subscribe("event", (i) => {
|
|
16115
16115
|
i.exception && setTimeout(() => t(`/errors/${i.event_id}`), 0);
|
|
16116
16116
|
});
|
|
16117
16117
|
const n = (i) => {
|
|
16118
16118
|
const { event_id: s, event: a } = i.detail;
|
|
16119
|
-
ee("Sentry Event", s), a &&
|
|
16119
|
+
ee("Sentry Event", s), a && se.pushEvent(a).then(() => t(`/errors/${a.event_id}`));
|
|
16120
16120
|
};
|
|
16121
16121
|
Ai("sentry:showError", n);
|
|
16122
16122
|
const r = (i) => {
|
|
@@ -16131,12 +16131,12 @@ function T1(e = {}) {
|
|
|
16131
16131
|
},
|
|
16132
16132
|
processEvent: (t) => wT(t),
|
|
16133
16133
|
tabs: () => {
|
|
16134
|
-
const t =
|
|
16134
|
+
const t = se.getEvents().filter(
|
|
16135
16135
|
(r) => {
|
|
16136
16136
|
var i, s, a, o;
|
|
16137
|
-
return r.type != "transaction" && ((s = (i = r.contexts) == null ? void 0 : i.trace) != null && s.trace_id ?
|
|
16137
|
+
return r.type != "transaction" && ((s = (i = r.contexts) == null ? void 0 : i.trace) != null && s.trace_id ? se.isTraceLocal((o = (a = r.contexts) == null ? void 0 : a.trace) == null ? void 0 : o.trace_id) : null) !== !1;
|
|
16138
16138
|
}
|
|
16139
|
-
).length, n =
|
|
16139
|
+
).length, n = se.getTraces().filter((r) => se.isTraceLocal(r.trace_id) !== !1);
|
|
16140
16140
|
return [
|
|
16141
16141
|
{
|
|
16142
16142
|
id: "errors",
|
|
@@ -16173,7 +16173,7 @@ function T1(e = {}) {
|
|
|
16173
16173
|
];
|
|
16174
16174
|
},
|
|
16175
16175
|
reset: () => {
|
|
16176
|
-
|
|
16176
|
+
se.resetData();
|
|
16177
16177
|
}
|
|
16178
16178
|
};
|
|
16179
16179
|
}
|
|
@@ -16203,7 +16203,7 @@ function wT(e) {
|
|
|
16203
16203
|
o.type && typeof l == "object" && (l.type = o.type), s.push([o, l]);
|
|
16204
16204
|
}
|
|
16205
16205
|
const a = [i, s];
|
|
16206
|
-
return
|
|
16206
|
+
return se.pushEnvelope({ envelope: a, rawEnvelope: e }), {
|
|
16207
16207
|
event: a,
|
|
16208
16208
|
rawEvent: e
|
|
16209
16209
|
};
|
|
@@ -18471,7 +18471,7 @@ var YE = [], ar = -1;
|
|
|
18471
18471
|
function In(e) {
|
|
18472
18472
|
return { current: e };
|
|
18473
18473
|
}
|
|
18474
|
-
function
|
|
18474
|
+
function ae(e) {
|
|
18475
18475
|
0 > ar || (e.current = YE[ar], YE[ar] = null, ar--);
|
|
18476
18476
|
}
|
|
18477
18477
|
function ne(e, t) {
|
|
@@ -18494,7 +18494,7 @@ function ze(e) {
|
|
|
18494
18494
|
return e = e.childContextTypes, e != null;
|
|
18495
18495
|
}
|
|
18496
18496
|
function $s() {
|
|
18497
|
-
|
|
18497
|
+
ae(Ze), ae(He);
|
|
18498
18498
|
}
|
|
18499
18499
|
function AA(e, t, n) {
|
|
18500
18500
|
if (He.current !== dn)
|
|
@@ -18518,7 +18518,7 @@ function cA(e, t, n) {
|
|
|
18518
18518
|
var r = e.stateNode;
|
|
18519
18519
|
if (!r)
|
|
18520
18520
|
throw Error(H(169));
|
|
18521
|
-
n ? (e = XS(e, t, bn), r.__reactInternalMemoizedMergedChildContext = e,
|
|
18521
|
+
n ? (e = XS(e, t, bn), r.__reactInternalMemoizedMergedChildContext = e, ae(Ze), ae(He), ne(He, e)) : ae(Ze), ne(Ze, n);
|
|
18522
18522
|
}
|
|
18523
18523
|
var vt = null, Ha = !1, vo = !1;
|
|
18524
18524
|
function jS(e) {
|
|
@@ -18681,7 +18681,7 @@ function zl() {
|
|
|
18681
18681
|
}
|
|
18682
18682
|
function Ql(e) {
|
|
18683
18683
|
var t = ra.current;
|
|
18684
|
-
|
|
18684
|
+
ae(ra), e._currentValue = t;
|
|
18685
18685
|
}
|
|
18686
18686
|
function WE(e, t, n) {
|
|
18687
18687
|
for (; e !== null; ) {
|
|
@@ -19132,10 +19132,10 @@ function eu(e, t) {
|
|
|
19132
19132
|
default:
|
|
19133
19133
|
e = e === 8 ? t.parentNode : t, t = e.namespaceURI || null, e = e.tagName, t = CE(t, e);
|
|
19134
19134
|
}
|
|
19135
|
-
|
|
19135
|
+
ae(gt), ne(gt, t);
|
|
19136
19136
|
}
|
|
19137
19137
|
function Lr() {
|
|
19138
|
-
|
|
19138
|
+
ae(gt), ae(Ci), ae(Li);
|
|
19139
19139
|
}
|
|
19140
19140
|
function nf(e) {
|
|
19141
19141
|
yn(Li.current);
|
|
@@ -19143,7 +19143,7 @@ function nf(e) {
|
|
|
19143
19143
|
t !== n && (ne(Ci, e), ne(gt, n));
|
|
19144
19144
|
}
|
|
19145
19145
|
function tu(e) {
|
|
19146
|
-
Ci.current === e && (
|
|
19146
|
+
Ci.current === e && (ae(gt), ae(Ci));
|
|
19147
19147
|
}
|
|
19148
19148
|
var le = In(0);
|
|
19149
19149
|
function aa(e) {
|
|
@@ -20022,7 +20022,7 @@ function zL(e, t, n) {
|
|
|
20022
20022
|
case 1:
|
|
20023
20023
|
return ze(t.type) && $s(), xe(t), null;
|
|
20024
20024
|
case 3:
|
|
20025
|
-
return r = t.stateNode, Lr(),
|
|
20025
|
+
return r = t.stateNode, Lr(), ae(Ze), ae(He), nu(), r.pendingContext && (r.context = r.pendingContext, r.pendingContext = null), (e === null || e.child === null) && (ls(t) ? t.flags |= 4 : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, St !== null && (al(St), St = null))), qE(e, t), xe(t), null;
|
|
20026
20026
|
case 5:
|
|
20027
20027
|
tu(t);
|
|
20028
20028
|
var i = yn(Li.current);
|
|
@@ -20212,7 +20212,7 @@ function zL(e, t, n) {
|
|
|
20212
20212
|
}
|
|
20213
20213
|
return xe(t), null;
|
|
20214
20214
|
case 13:
|
|
20215
|
-
if (
|
|
20215
|
+
if (ae(le), r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
|
|
20216
20216
|
if (oe && et !== null && t.mode & 1 && !(t.flags & 128))
|
|
20217
20217
|
ZS(), hr(), t.flags |= 98560, s = !1;
|
|
20218
20218
|
else if (s = ls(t), r !== null && r.dehydrated !== null) {
|
|
@@ -20238,7 +20238,7 @@ function zL(e, t, n) {
|
|
|
20238
20238
|
case 17:
|
|
20239
20239
|
return ze(t.type) && $s(), xe(t), null;
|
|
20240
20240
|
case 19:
|
|
20241
|
-
if (
|
|
20241
|
+
if (ae(le), s = t.memoizedState, s === null)
|
|
20242
20242
|
return xe(t), null;
|
|
20243
20243
|
if (r = (t.flags & 128) !== 0, a = s.rendering, a === null)
|
|
20244
20244
|
if (r)
|
|
@@ -20280,18 +20280,18 @@ function QL(e, t) {
|
|
|
20280
20280
|
case 1:
|
|
20281
20281
|
return ze(t.type) && $s(), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
|
|
20282
20282
|
case 3:
|
|
20283
|
-
return Lr(),
|
|
20283
|
+
return Lr(), ae(Ze), ae(He), nu(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
|
|
20284
20284
|
case 5:
|
|
20285
20285
|
return tu(t), null;
|
|
20286
20286
|
case 13:
|
|
20287
|
-
if (
|
|
20287
|
+
if (ae(le), e = t.memoizedState, e !== null && e.dehydrated !== null) {
|
|
20288
20288
|
if (t.alternate === null)
|
|
20289
20289
|
throw Error(H(340));
|
|
20290
20290
|
hr();
|
|
20291
20291
|
}
|
|
20292
20292
|
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
|
|
20293
20293
|
case 19:
|
|
20294
|
-
return
|
|
20294
|
+
return ae(le), null;
|
|
20295
20295
|
case 4:
|
|
20296
20296
|
return Lr(), null;
|
|
20297
20297
|
case 10:
|
|
@@ -21193,7 +21193,7 @@ function Yn(e) {
|
|
|
21193
21193
|
}
|
|
21194
21194
|
}
|
|
21195
21195
|
function cu() {
|
|
21196
|
-
$e = Tr.current,
|
|
21196
|
+
$e = Tr.current, ae(Tr);
|
|
21197
21197
|
}
|
|
21198
21198
|
function Un(e, t) {
|
|
21199
21199
|
e.finishedWork = null, e.finishedLanes = 0;
|
|
@@ -21206,7 +21206,7 @@ function Un(e, t) {
|
|
|
21206
21206
|
r = r.type.childContextTypes, r != null && $s();
|
|
21207
21207
|
break;
|
|
21208
21208
|
case 3:
|
|
21209
|
-
Lr(),
|
|
21209
|
+
Lr(), ae(Ze), ae(He), nu();
|
|
21210
21210
|
break;
|
|
21211
21211
|
case 5:
|
|
21212
21212
|
tu(r);
|
|
@@ -21215,10 +21215,10 @@ function Un(e, t) {
|
|
|
21215
21215
|
Lr();
|
|
21216
21216
|
break;
|
|
21217
21217
|
case 13:
|
|
21218
|
-
|
|
21218
|
+
ae(le);
|
|
21219
21219
|
break;
|
|
21220
21220
|
case 19:
|
|
21221
|
-
|
|
21221
|
+
ae(le);
|
|
21222
21222
|
break;
|
|
21223
21223
|
case 10:
|
|
21224
21224
|
Ql(r.type._context);
|
|
@@ -27252,4 +27252,4 @@ export {
|
|
|
27252
27252
|
lR as t,
|
|
27253
27253
|
zP as v
|
|
27254
27254
|
};
|
|
27255
|
-
//# sourceMappingURL=index-
|
|
27255
|
+
//# sourceMappingURL=index-019c1b35.js.map
|