@burdenoff/fe-libs 2026.1115.1 → 2026.1115.3
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/shared/assistant/index.d.ts +1 -0
- package/dist/shared/assistant/ui/composer/AssistantMicMenu.js +64 -63
- package/dist/shared/assistant/ui/composer/AssistantModeMenu.js +105 -103
- package/dist/shared/assistant/ui/composer/menuRoom.d.ts +10 -0
- package/dist/shared/assistant/ui/composer/menuRoom.js +14 -0
- package/dist/shared/utils/gatewayFetchRewrite.js +37 -11
- package/dist/shared-assistant.js +184 -183
- package/package.json +1 -1
|
@@ -188,12 +188,29 @@ function B(e, t) {
|
|
|
188
188
|
function V() {
|
|
189
189
|
return typeof performance < "u" && performance.now() < u;
|
|
190
190
|
}
|
|
191
|
-
function H(e) {
|
|
191
|
+
async function H(e, t, n) {
|
|
192
|
+
let r = e.method.toUpperCase(), i = r !== "GET" && r !== "HEAD" && e.body !== null ? await e.arrayBuffer() : void 0, a = new Request(t, {
|
|
193
|
+
method: e.method,
|
|
194
|
+
headers: e.headers,
|
|
195
|
+
body: i,
|
|
196
|
+
keepalive: !0,
|
|
197
|
+
credentials: e.credentials,
|
|
198
|
+
mode: e.mode === "navigate" ? void 0 : e.mode,
|
|
199
|
+
cache: e.cache,
|
|
200
|
+
redirect: e.redirect,
|
|
201
|
+
referrer: e.referrer,
|
|
202
|
+
referrerPolicy: e.referrerPolicy,
|
|
203
|
+
integrity: e.integrity,
|
|
204
|
+
signal: e.signal
|
|
205
|
+
});
|
|
206
|
+
return n ? new Request(a, n) : a;
|
|
207
|
+
}
|
|
208
|
+
function U(e) {
|
|
192
209
|
let t = new Headers(e.headers), n = !1;
|
|
193
210
|
for (let e of v) t.has(e) && (t.delete(e), n = !0);
|
|
194
211
|
return n ? new Request(e, { headers: t }) : e;
|
|
195
212
|
}
|
|
196
|
-
function
|
|
213
|
+
function W(e, a) {
|
|
197
214
|
let l = r();
|
|
198
215
|
if (l) return l;
|
|
199
216
|
if (n()) {
|
|
@@ -204,7 +221,7 @@ function U(e, a) {
|
|
|
204
221
|
for (let e of d) if (u === e.hostname) return e.bases;
|
|
205
222
|
return a ?? c;
|
|
206
223
|
}
|
|
207
|
-
function
|
|
224
|
+
function G(e, t) {
|
|
208
225
|
let { globalBase: n, workspaceBase: r } = e;
|
|
209
226
|
if (!n || !r) return;
|
|
210
227
|
let i = P(e), a = globalThis.fetch.bind(globalThis), o = window.location.origin, s = /* @__PURE__ */ new Set([o, "https://gw-global.local.burdenoff.com"]), c = /* @__PURE__ */ new Set([o, "https://gw-wspace.local.burdenoff.com"]), u = (e) => /(?:^|\/)global\/graphql$/.test(e) ? "/global/graphql" : /(?:^|\/)workspaces\/graphql$/.test(e) ? "/workspaces/graphql" : "", d = (e) => {
|
|
@@ -214,7 +231,7 @@ function W(e, t) {
|
|
|
214
231
|
let n = /(?:^|\/)graphql$/.test(new URL(e.url).pathname);
|
|
215
232
|
if (i && n) return new Promise(() => void 0);
|
|
216
233
|
if (!(e.method.toUpperCase() === "POST" && n) || t || e.keepalive || e.cache === "no-store") return a(e);
|
|
217
|
-
let r = await e.clone().text(), o =
|
|
234
|
+
let r = await e.clone().text(), o = U(e.clone()), s = z(r);
|
|
218
235
|
if (!s?.length) return a(e);
|
|
219
236
|
let c = r.trimStart().startsWith("["), u = s.map((e) => R(o, e));
|
|
220
237
|
if (e.cache !== "reload" && e.cache !== "no-cache" && V() && u.every(Boolean)) {
|
|
@@ -237,16 +254,25 @@ function W(e, t) {
|
|
|
237
254
|
}, p = a, m = ((e, t) => {
|
|
238
255
|
if (e == null) return a(e, t);
|
|
239
256
|
let n = t?.keepalive === !0;
|
|
240
|
-
|
|
241
|
-
|
|
257
|
+
try {
|
|
258
|
+
if (e instanceof Request) return h(e, t, n);
|
|
259
|
+
let r = typeof e == "string" ? e : e.toString();
|
|
260
|
+
return f(new Request(d(r), t), n);
|
|
261
|
+
} catch (e) {
|
|
262
|
+
return Promise.reject(e);
|
|
263
|
+
}
|
|
264
|
+
}), h = (e, t, n) => {
|
|
265
|
+
let r = d(e.url), i = n || e.keepalive === !0;
|
|
266
|
+
if (r === e.url) return f(t ? new Request(e, t) : e, n);
|
|
267
|
+
if (!i) {
|
|
268
|
+
let i = new Request(r, e);
|
|
242
269
|
return f(t ? new Request(i, t) : i, n);
|
|
243
270
|
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
});
|
|
271
|
+
return H(e, r, t).then((e) => f(e, !0));
|
|
272
|
+
};
|
|
247
273
|
p.preconnect && (m.preconnect = p.preconnect), globalThis.fetch = m;
|
|
248
274
|
}
|
|
249
|
-
function
|
|
275
|
+
function K(e = "VITE_VERBOSE_CONSOLE") {
|
|
250
276
|
({
|
|
251
277
|
BASE_URL: "/",
|
|
252
278
|
DEV: !1,
|
|
@@ -255,4 +281,4 @@ function G(e = "VITE_VERBOSE_CONSOLE") {
|
|
|
255
281
|
SSR: !1
|
|
256
282
|
})[e] !== "true" && (console.log = () => {}, console.info = () => {}, console.debug = () => {});
|
|
257
283
|
}
|
|
258
|
-
export { x as clearGatewayGraphQLResponseCache,
|
|
284
|
+
export { x as clearGatewayGraphQLResponseCache, G as installGatewayFetchRewrite, W as resolveGatewayBases, K as suppressConsole };
|