@gram-ai/elements 1.33.1 → 1.33.2
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/elements.cjs +1 -1
- package/dist/elements.js +1 -1
- package/dist/{index-BqBo07H_.cjs → index-BCV7Zf9E.cjs} +3 -3
- package/dist/index-BCV7Zf9E.cjs.map +1 -0
- package/dist/{index-Dn0_JCoN.js → index-reVrRxP1.js} +19 -15
- package/dist/index-reVrRxP1.js.map +1 -0
- package/dist/{profiler-Ce0O8-iW.cjs → profiler-B3tfiOx4.cjs} +2 -2
- package/dist/{profiler-Ce0O8-iW.cjs.map → profiler-B3tfiOx4.cjs.map} +1 -1
- package/dist/{profiler-DtaHTumy.js → profiler-noho3NG9.js} +2 -2
- package/dist/{profiler-DtaHTumy.js.map → profiler-noho3NG9.js.map} +1 -1
- package/dist/{startRecording-Cpeh1_CL.cjs → startRecording-7Oy6wM18.cjs} +2 -2
- package/dist/{startRecording-Cpeh1_CL.cjs.map → startRecording-7Oy6wM18.cjs.map} +1 -1
- package/dist/{startRecording-DjP64hyw.js → startRecording-mkmig-2n.js} +2 -2
- package/dist/{startRecording-DjP64hyw.js.map → startRecording-mkmig-2n.js.map} +1 -1
- package/package.json +1 -1
- package/src/hooks/useAuth.ts +13 -1
- package/dist/index-BqBo07H_.cjs.map +0 -1
- package/dist/index-Dn0_JCoN.js.map +0 -1
|
@@ -22169,7 +22169,7 @@ async function Rj(e = Pj) {
|
|
|
22169
22169
|
async function Pj() {
|
|
22170
22170
|
return (await import(
|
|
22171
22171
|
/* webpackChunkName: "recorder" */
|
|
22172
|
-
"./startRecording-
|
|
22172
|
+
"./startRecording-mkmig-2n.js"
|
|
22173
22173
|
)).startRecording;
|
|
22174
22174
|
}
|
|
22175
22175
|
function zj() {
|
|
@@ -22205,7 +22205,7 @@ async function Mj(e = Uj) {
|
|
|
22205
22205
|
async function Uj() {
|
|
22206
22206
|
return (await import(
|
|
22207
22207
|
/* webpackChunkName: "profiler" */
|
|
22208
|
-
"./profiler-
|
|
22208
|
+
"./profiler-noho3NG9.js"
|
|
22209
22209
|
)).createRumProfiler;
|
|
22210
22210
|
}
|
|
22211
22211
|
function jj() {
|
|
@@ -33398,45 +33398,49 @@ const Zl = ({
|
|
|
33398
33398
|
const a = Zp()?.isReplay ?? !1, n = Ym(), o = je(() => (t?.url || "" || "https://app.getgram.ai").replace(/\/+$/, ""), [t?.url]), i = je(() => a ? null : vZ(t) ? SZ(t.dangerousApiKey, o) : sT(t) ? () => Promise.resolve(t.session) : bZ(t) ? t.session : lT(t) ? () => Promise.resolve(t.sessionToken) : yZ(t) ? t.sessionFn : kZ, [t, a, o]), s = xZ({
|
|
33399
33399
|
getSession: i,
|
|
33400
33400
|
projectSlug: e
|
|
33401
|
-
}), l = !wZ(t) && !a, c = Re(async () => {
|
|
33402
|
-
const
|
|
33401
|
+
}), l = !wZ(t) && !a, c = t?.headers ?? {}, u = Re(async () => {
|
|
33402
|
+
const d = cT(e), m = n.getQueryData(d);
|
|
33403
33403
|
if (!l || !i)
|
|
33404
33404
|
return {
|
|
33405
|
+
...c,
|
|
33405
33406
|
"Gram-Project": e,
|
|
33406
|
-
...
|
|
33407
|
+
...m && { "Gram-Chat-Session": m }
|
|
33407
33408
|
};
|
|
33408
|
-
const
|
|
33409
|
+
const f = m ? _Z(m) : null, h = f !== null && Date.now() >= f * 1e3 - 3e4 ? 0 : 1 / 0;
|
|
33409
33410
|
try {
|
|
33410
|
-
const
|
|
33411
|
-
queryKey:
|
|
33411
|
+
const v = await n.fetchQuery({
|
|
33412
|
+
queryKey: d,
|
|
33412
33413
|
queryFn: () => i({ projectSlug: e }),
|
|
33413
|
-
staleTime:
|
|
33414
|
+
staleTime: h
|
|
33414
33415
|
});
|
|
33415
33416
|
return {
|
|
33417
|
+
...c,
|
|
33416
33418
|
"Gram-Project": e,
|
|
33417
|
-
...
|
|
33419
|
+
...v && { "Gram-Chat-Session": v }
|
|
33418
33420
|
};
|
|
33419
33421
|
} catch {
|
|
33420
33422
|
return {
|
|
33423
|
+
...c,
|
|
33421
33424
|
"Gram-Project": e,
|
|
33422
|
-
...
|
|
33425
|
+
...m && { "Gram-Chat-Session": m }
|
|
33423
33426
|
};
|
|
33424
33427
|
}
|
|
33425
|
-
}, [l, i, e, n]);
|
|
33428
|
+
}, [l, i, e, n, c]);
|
|
33426
33429
|
return a ? {
|
|
33427
33430
|
headers: {},
|
|
33428
33431
|
isLoading: !1,
|
|
33429
33432
|
ensureValidHeaders: async () => ({})
|
|
33430
33433
|
} : s ? {
|
|
33431
33434
|
headers: {
|
|
33435
|
+
...c,
|
|
33432
33436
|
"Gram-Project": e,
|
|
33433
33437
|
"Gram-Chat-Session": s
|
|
33434
33438
|
},
|
|
33435
33439
|
isLoading: !1,
|
|
33436
|
-
ensureValidHeaders:
|
|
33440
|
+
ensureValidHeaders: u
|
|
33437
33441
|
} : {
|
|
33438
33442
|
isLoading: !0,
|
|
33439
|
-
ensureValidHeaders:
|
|
33443
|
+
ensureValidHeaders: u
|
|
33440
33444
|
};
|
|
33441
33445
|
}, uT = vs(null), IZ = ({
|
|
33442
33446
|
children: e
|
|
@@ -38148,4 +38152,4 @@ export {
|
|
|
38148
38152
|
qe as y,
|
|
38149
38153
|
EG as z
|
|
38150
38154
|
};
|
|
38151
|
-
//# sourceMappingURL=index-
|
|
38155
|
+
//# sourceMappingURL=index-reVrRxP1.js.map
|