@burdenoff/fe-libs 2026.1021.6 → 2026.1021.8
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/chrome/AccountSwitcher.js +7 -7
- package/dist/chrome/AutoBreadcrumbs.js +3 -3
- package/dist/chrome/Breadcrumbs.js +24 -24
- package/dist/chrome/ContextSwitcher.js +7 -7
- package/dist/chrome/DynamicFooter.js +3 -3
- package/dist/chrome/HeaderThemeSwitcher.js +14 -14
- package/dist/chrome/LanguagePickerSheet.js +7 -7
- package/dist/chrome/NativeTopBar.js +4 -4
- package/dist/chrome/NavCustomizeDialog.js +12 -12
- package/dist/chrome/ProductPickerSheet.js +7 -7
- package/dist/chrome/SideNavigation.js +17 -17
- package/dist/chrome/Sidebar.js +34 -34
- package/dist/chrome/Tabs.js +20 -20
- package/dist/chrome/ThemePreferences.js +188 -188
- package/dist/shared/assistant/ui/AssistantChatArea.js +4 -4
- package/dist/shared/components/ContextConversationWidget.js +7 -7
- package/dist/shared/components/QuotaUpgradeBridge.js +13 -13
- package/dist/shared/pages/AiPage.js +6 -6
- package/dist/shared/providers/AppShellProvider.d.ts +13 -0
- package/dist/shared/providers/AppShellProvider.js +196 -193
- package/dist/shared/providers/shell/ProfileI18nBridge.js +11 -11
- package/dist/shared/tours/catalogs.d.ts +21 -0
- package/dist/shared/tours/catalogs.js +981 -0
- package/dist/shared/tours/index.d.ts +3 -1
- package/dist/shared/tours/routeCatalog.d.ts +28 -0
- package/dist/shared/tours/routeCatalog.js +103 -918
- package/dist/shared/tours/useTourRouteCatalog.d.ts +14 -0
- package/dist/shared/tours/useTourRouteCatalog.js +13 -0
- package/dist/shared-hooks-shell.js +7 -7
- package/dist/shared-providers-shell.js +6 -6
- package/dist/shared-tours.js +7 -5
- package/dist/shared.js +12 -10
- package/dist/ui/branded-splash.d.ts +25 -2
- package/dist/ui/branded-splash.js +48 -31
- package/dist/ui/cta-overflow-menu.js +17 -17
- package/dist/ui/guidance.js +19 -19
- package/dist/ui/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,47 +3,48 @@ import { isShellLessRoute as t } from "../config/shellRoutes.js";
|
|
|
3
3
|
import { readActiveContextValueWithUrlPrecedence as n } from "./shell/ActiveContextStorage.js";
|
|
4
4
|
import { BACKEND_ERROR_EVENT as r, CONNECTION_STATUS_EVENT as i, dispatchBackendErrorEvent as a, isBackendErrorDisplay as o, shouldToastBackendError as s } from "../utils/backendErrors.js";
|
|
5
5
|
import { SESSION_EXPIRED_EVENT as c, graphqlFetch as l } from "../graphql/fetch.js";
|
|
6
|
-
import { attemptTokenRefresh as u, clearAuthSessionStorage as
|
|
7
|
-
import { AppShellContextProvider as
|
|
8
|
-
import { AuthProvider as
|
|
9
|
-
import { ActiveContextProvider as
|
|
10
|
-
import { LogManager as
|
|
11
|
-
import { ConsoleTransport as
|
|
12
|
-
import { ThemeProvider as
|
|
13
|
-
import { ErrorFallback as
|
|
14
|
-
import { m as
|
|
15
|
-
import { PWAInstallBanner as
|
|
16
|
-
import { FeatureFlagsProvider as
|
|
17
|
-
import { FeatureFlagProvider as
|
|
18
|
-
import { GlobalUiProvider as
|
|
19
|
-
import { ShellUiProvider as
|
|
20
|
-
import { ContextManagerProvider as
|
|
21
|
-
import { AuthTokenProvider as
|
|
22
|
-
import { MultiGatewayProvider as
|
|
23
|
-
import { G as
|
|
24
|
-
import { ProfileI18nBridge as
|
|
6
|
+
import { attemptTokenRefresh as u, clearAuthSessionStorage as d, getSharedTokenRefreshRefs as f, isAuthNetworkError as p } from "../utils/authErrorHandling.js";
|
|
7
|
+
import { AppShellContextProvider as m } from "./shell/AppShellContext.js";
|
|
8
|
+
import { AuthProvider as h } from "./shell/AuthProvider.js";
|
|
9
|
+
import { ActiveContextProvider as g } from "./shell/ActiveContextProvider.js";
|
|
10
|
+
import { LogManager as _ } from "../logger/LogManager.js";
|
|
11
|
+
import { ConsoleTransport as ee } from "../logger/ConsoleTransport.js";
|
|
12
|
+
import { ThemeProvider as v } from "./shell/ThemeProvider.js";
|
|
13
|
+
import { ErrorFallback as te } from "../components/ErrorFallback.js";
|
|
14
|
+
import { m as y } from "../../node_modules/react-error-boundary/dist/react-error-boundary.js";
|
|
15
|
+
import { PWAInstallBanner as b } from "../components/PWAInstallBanner.js";
|
|
16
|
+
import { FeatureFlagsProvider as x } from "./shell/FeatureFlagsProvider.js";
|
|
17
|
+
import { FeatureFlagProvider as S } from "../feature-flags/FeatureFlagProvider.js";
|
|
18
|
+
import { GlobalUiProvider as C } from "./shell/GlobalUiProvider.js";
|
|
19
|
+
import { ShellUiProvider as w } from "./shell/ShellUiProvider.js";
|
|
20
|
+
import { ContextManagerProvider as ne } from "./shell/ContextManagerProvider.js";
|
|
21
|
+
import { AuthTokenProvider as re } from "./shell/AuthTokenProvider.js";
|
|
22
|
+
import { MultiGatewayProvider as ie } from "./shell/MultiGatewayProvider.js";
|
|
23
|
+
import { G as T, Q as ae, j as oe, w as se } from "../../node_modules/web-vitals/dist/web-vitals.js";
|
|
24
|
+
import { ProfileI18nBridge as ce } from "./shell/ProfileI18nBridge.js";
|
|
25
25
|
import { ProfileGeographyBridge as le } from "./shell/ProfileGeographyBridge.js";
|
|
26
|
-
import { DesktopUpdateToast as
|
|
27
|
-
import { DevtoolsSink as
|
|
28
|
-
import { BroadcastChannelSink as
|
|
29
|
-
import { BackendAuditSink as
|
|
30
|
-
import { AnalyticsConsentBanner as
|
|
31
|
-
import { OtelBrowserSink as
|
|
32
|
-
import { EventBusProvider as
|
|
33
|
-
import { useReferralAttribution as
|
|
34
|
-
import { usePushDeviceRegistration as
|
|
35
|
-
import { TourPermissionsBoundary as
|
|
36
|
-
import { resolveBrowserDirectionMode as
|
|
37
|
-
import { TourPlayerProvider as
|
|
38
|
-
import { ToursProvider as
|
|
39
|
-
import { TourInitializer as
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
26
|
+
import { DesktopUpdateToast as E } from "../components/DesktopUpdateToast.js";
|
|
27
|
+
import { DevtoolsSink as D } from "../events/sinks/DevtoolsSink.js";
|
|
28
|
+
import { BroadcastChannelSink as O } from "../events/sinks/BroadcastChannelSink.js";
|
|
29
|
+
import { BackendAuditSink as k } from "../events/sinks/BackendAuditSink.js";
|
|
30
|
+
import { AnalyticsConsentBanner as A, RybbitSink as j } from "../events/sinks/RybbitSink.js";
|
|
31
|
+
import { OtelBrowserSink as M } from "../events/sinks/OtelBrowserSink.js";
|
|
32
|
+
import { EventBusProvider as ue, useEventBus as N } from "../../shared-events.js";
|
|
33
|
+
import { useReferralAttribution as P } from "../hooks/useReferralAttribution.js";
|
|
34
|
+
import { usePushDeviceRegistration as F } from "../hooks/usePushDeviceRegistration.js";
|
|
35
|
+
import { TourPermissionsBoundary as I } from "../tours/TourPermissionsBoundary.js";
|
|
36
|
+
import { resolveBrowserDirectionMode as de } from "./shell/directionMode.js";
|
|
37
|
+
import { TourPlayerProvider as L } from "../tours/TourPlayerProvider.js";
|
|
38
|
+
import { ToursProvider as R, useToursContext as z } from "../tours/ToursContext.js";
|
|
39
|
+
import { TourInitializer as B } from "../tours/TourInitializer.js";
|
|
40
|
+
import { useRegisterTourRouteCatalog as fe } from "../tours/useTourRouteCatalog.js";
|
|
41
|
+
import { Suspense as V, useCallback as H, useEffect as U, useMemo as W, useRef as G, useState as pe } from "react";
|
|
42
|
+
import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
|
|
43
|
+
import { BrowserRouter as me, useLocation as Y } from "react-router";
|
|
44
|
+
import { Toaster as X, toast as Z } from "sonner";
|
|
44
45
|
import { MutationCache as he, QueryCache as ge, QueryClient as _e, QueryClientProvider as ve } from "@tanstack/react-query";
|
|
45
46
|
//#region src/shared/providers/AppShellProvider.tsx
|
|
46
|
-
var
|
|
47
|
+
var Q = {
|
|
47
48
|
artistrybase: { prod: "cfbecacb6002" },
|
|
48
49
|
atheletebridge: { prod: "c34c6ead7aa8" },
|
|
49
50
|
adaptercloud: {},
|
|
@@ -110,8 +111,8 @@ function Te() {
|
|
|
110
111
|
SSR: !1
|
|
111
112
|
};
|
|
112
113
|
}
|
|
113
|
-
function
|
|
114
|
-
let r = Ce(n.VITE_DEPLOY_ENV ?? n.MODE), i = we(n, r), a =
|
|
114
|
+
function Ee(t, n) {
|
|
115
|
+
let r = Ce(n.VITE_DEPLOY_ENV ?? n.MODE), i = we(n, r), a = Q[t] ?? Q[e(t)], o = r === "prod" ? a?.prod : a?.nonProd, s = n.VITE_RYBBIT_SITE_ID || o, c = n.VITE_BACKEND_AUDIT_ENDPOINT || (n.PROD ? "/api/fe-events" : void 0);
|
|
115
116
|
return {
|
|
116
117
|
enabled: i,
|
|
117
118
|
appVersion: n.VITE_APP_VERSION || "0.0.0",
|
|
@@ -137,17 +138,17 @@ function Q(t, n) {
|
|
|
137
138
|
}
|
|
138
139
|
};
|
|
139
140
|
}
|
|
140
|
-
function
|
|
141
|
-
let { trackProgress: a, recordStepCompletion: o, trackEvent: s, progressScopeKey: c } =
|
|
142
|
-
return /* @__PURE__ */
|
|
141
|
+
function De({ children: e, enablePWA: t, toasterPosition: n, productName: r, brandInitial: i }) {
|
|
142
|
+
let { trackProgress: a, recordStepCompletion: o, trackEvent: s, progressScopeKey: c } = z(), l = H((e, t) => e.steps?.[t], []);
|
|
143
|
+
return /* @__PURE__ */ J(L, {
|
|
143
144
|
scopeKey: c,
|
|
144
|
-
onTourStart:
|
|
145
|
+
onTourStart: H((e) => {
|
|
145
146
|
a(e.id, "started"), s("TOUR_STARTED", e.id);
|
|
146
147
|
}, [s, a]),
|
|
147
|
-
onTourComplete:
|
|
148
|
+
onTourComplete: H((e) => {
|
|
148
149
|
a(e.id, "completed"), s("TOUR_COMPLETED", e.id);
|
|
149
150
|
}, [s, a]),
|
|
150
|
-
onTourSkip:
|
|
151
|
+
onTourSkip: H((e, t) => {
|
|
151
152
|
let n = l(e, t);
|
|
152
153
|
a(e.id, "skipped"), s("TOUR_SKIPPED", e.id, {
|
|
153
154
|
stepId: n?.id,
|
|
@@ -158,14 +159,14 @@ function Ee({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
|
|
|
158
159
|
s,
|
|
159
160
|
a
|
|
160
161
|
]),
|
|
161
|
-
onStepChange:
|
|
162
|
+
onStepChange: H((e, t) => {
|
|
162
163
|
let n = l(e, t);
|
|
163
164
|
n && s("STEP_VIEWED", e.id, {
|
|
164
165
|
stepId: n.id,
|
|
165
166
|
stepOrder: n.stepOrder
|
|
166
167
|
});
|
|
167
168
|
}, [l, s]),
|
|
168
|
-
onStepComplete:
|
|
169
|
+
onStepComplete: H((e, t) => {
|
|
169
170
|
let n = l(e, t);
|
|
170
171
|
n && (o(e.id, n.id), s("STEP_COMPLETED", e.id, {
|
|
171
172
|
stepId: n.id,
|
|
@@ -177,20 +178,20 @@ function Ee({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
|
|
|
177
178
|
s
|
|
178
179
|
]),
|
|
179
180
|
children: [
|
|
180
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ q(B, {}),
|
|
181
182
|
e,
|
|
182
|
-
/* @__PURE__ */
|
|
183
|
-
/* @__PURE__ */
|
|
184
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ q(Oe, {}),
|
|
184
|
+
/* @__PURE__ */ q(Ae, {}),
|
|
185
|
+
/* @__PURE__ */ q(X, {
|
|
185
186
|
position: n,
|
|
186
187
|
richColors: !0,
|
|
187
188
|
closeButton: !0,
|
|
188
189
|
style: be
|
|
189
190
|
}),
|
|
190
|
-
/* @__PURE__ */
|
|
191
|
-
t && /* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ q(E, {}),
|
|
192
|
+
t && /* @__PURE__ */ q(V, {
|
|
192
193
|
fallback: null,
|
|
193
|
-
children: /* @__PURE__ */
|
|
194
|
+
children: /* @__PURE__ */ q(b, {
|
|
194
195
|
productName: r,
|
|
195
196
|
brandInitial: i
|
|
196
197
|
})
|
|
@@ -198,9 +199,9 @@ function Ee({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
|
|
|
198
199
|
]
|
|
199
200
|
});
|
|
200
201
|
}
|
|
201
|
-
function
|
|
202
|
-
let e =
|
|
203
|
-
return
|
|
202
|
+
function Oe() {
|
|
203
|
+
let e = G(null);
|
|
204
|
+
return U(() => {
|
|
204
205
|
let t = (t) => {
|
|
205
206
|
let n = t instanceof CustomEvent && o(t.detail) ? t.detail : null;
|
|
206
207
|
if (!s(n)) return;
|
|
@@ -209,33 +210,33 @@ function De() {
|
|
|
209
210
|
a?.key === r && i - a.shownAt < xe || (e.current = {
|
|
210
211
|
key: r,
|
|
211
212
|
shownAt: i
|
|
212
|
-
},
|
|
213
|
+
}, Z.error(n.message, { duration: 7e3 }));
|
|
213
214
|
};
|
|
214
215
|
return window.addEventListener(r, t), () => window.removeEventListener(r, t);
|
|
215
216
|
}, []), null;
|
|
216
217
|
}
|
|
217
|
-
var $ = "burdenoff-connection-status",
|
|
218
|
-
function
|
|
219
|
-
let e =
|
|
220
|
-
return
|
|
218
|
+
var $ = "burdenoff-connection-status", ke = 1500;
|
|
219
|
+
function Ae() {
|
|
220
|
+
let e = G(null), t = G(!1);
|
|
221
|
+
return U(() => {
|
|
221
222
|
let n = () => {
|
|
222
|
-
t.current || (t.current = !0,
|
|
223
|
+
t.current || (t.current = !0, Z.error("Connection lost. Trying to reconnect…", {
|
|
223
224
|
id: $,
|
|
224
225
|
duration: Infinity
|
|
225
226
|
}));
|
|
226
227
|
}, r = () => {
|
|
227
228
|
t.current || e.current || (e.current = setTimeout(() => {
|
|
228
229
|
e.current = null, n();
|
|
229
|
-
},
|
|
230
|
+
}, ke));
|
|
230
231
|
}, a = (n) => {
|
|
231
232
|
if (e.current &&= (clearTimeout(e.current), null), !t.current) {
|
|
232
|
-
|
|
233
|
+
Z.dismiss($);
|
|
233
234
|
return;
|
|
234
235
|
}
|
|
235
|
-
t.current = !1, n ?
|
|
236
|
+
t.current = !1, n ? Z.success("Back online", {
|
|
236
237
|
id: $,
|
|
237
238
|
duration: 2500
|
|
238
|
-
}) :
|
|
239
|
+
}) : Z.dismiss($);
|
|
239
240
|
}, o = (e) => {
|
|
240
241
|
if (!(e instanceof CustomEvent)) return;
|
|
241
242
|
let t = e.detail;
|
|
@@ -248,42 +249,42 @@ function ke() {
|
|
|
248
249
|
};
|
|
249
250
|
}, []), null;
|
|
250
251
|
}
|
|
251
|
-
function
|
|
252
|
-
return
|
|
252
|
+
function je() {
|
|
253
|
+
return F(), null;
|
|
253
254
|
}
|
|
254
|
-
function
|
|
255
|
-
let
|
|
256
|
-
|
|
257
|
-
let
|
|
258
|
-
return /* @__PURE__ */
|
|
255
|
+
function Me({ children: e, i18nProductId: t, platformI18nProductId: n, directionMode: r, fallbackTranslations: i, defaultBrand: a, defaultMode: o, defaultDensity: s, defaultTypography: c, defaultGlass: l, productName: u, brandInitial: d, enablePWA: f, toasterPosition: p, tourPageIdFromPath: m, enableWorkspaceTourPermissions: h }) {
|
|
256
|
+
let g = Y();
|
|
257
|
+
P();
|
|
258
|
+
let _ = g.pathname.startsWith("/devportal") || g.pathname.startsWith("/organizations") || g.pathname.startsWith("/workspaces");
|
|
259
|
+
return /* @__PURE__ */ J(v, {
|
|
259
260
|
defaultBrand: a,
|
|
260
261
|
defaultMode: o,
|
|
261
262
|
defaultDensity: s,
|
|
262
263
|
defaultTypography: c,
|
|
263
264
|
defaultGlass: l,
|
|
264
|
-
children: [/* @__PURE__ */
|
|
265
|
+
children: [/* @__PURE__ */ q(Ne, {}), /* @__PURE__ */ q(ce, {
|
|
265
266
|
i18nProductId: t,
|
|
266
267
|
platformI18nProductId: n,
|
|
267
268
|
directionMode: r,
|
|
268
269
|
fallbackTranslations: i,
|
|
269
|
-
children: /* @__PURE__ */
|
|
270
|
+
children: /* @__PURE__ */ q(le, { children: /* @__PURE__ */ q(x, { children: /* @__PURE__ */ q(S, {
|
|
270
271
|
workspaceId: null,
|
|
271
272
|
gateway: "global",
|
|
272
273
|
defaultEnabled: !0,
|
|
273
|
-
children: /* @__PURE__ */
|
|
274
|
+
children: /* @__PURE__ */ q(C, { children: /* @__PURE__ */ q(w, { children: /* @__PURE__ */ q(y, {
|
|
274
275
|
fallback: null,
|
|
275
|
-
children: /* @__PURE__ */
|
|
276
|
-
enabled:
|
|
277
|
-
children: /* @__PURE__ */
|
|
278
|
-
requireWorkspace:
|
|
279
|
-
disabled:
|
|
280
|
-
getPageIdFromPath:
|
|
281
|
-
children: /* @__PURE__ */
|
|
282
|
-
enablePWA:
|
|
283
|
-
toasterPosition:
|
|
276
|
+
children: /* @__PURE__ */ q(I, {
|
|
277
|
+
enabled: h && !_,
|
|
278
|
+
children: /* @__PURE__ */ q(R, {
|
|
279
|
+
requireWorkspace: h,
|
|
280
|
+
disabled: _,
|
|
281
|
+
getPageIdFromPath: m,
|
|
282
|
+
children: /* @__PURE__ */ J(De, {
|
|
283
|
+
enablePWA: f,
|
|
284
|
+
toasterPosition: p,
|
|
284
285
|
productName: u,
|
|
285
|
-
brandInitial:
|
|
286
|
-
children: [/* @__PURE__ */
|
|
286
|
+
brandInitial: d,
|
|
287
|
+
children: [/* @__PURE__ */ q(je, {}), e]
|
|
287
288
|
})
|
|
288
289
|
})
|
|
289
290
|
})
|
|
@@ -292,9 +293,9 @@ function je({ children: e, i18nProductId: t, platformI18nProductId: n, direction
|
|
|
292
293
|
})]
|
|
293
294
|
});
|
|
294
295
|
}
|
|
295
|
-
function
|
|
296
|
-
let e =
|
|
297
|
-
return
|
|
296
|
+
function Ne() {
|
|
297
|
+
let e = Y();
|
|
298
|
+
return U(() => {
|
|
298
299
|
e.hash || requestAnimationFrame(() => {
|
|
299
300
|
window.scrollTo({
|
|
300
301
|
top: 0,
|
|
@@ -312,7 +313,7 @@ function Me() {
|
|
|
312
313
|
e.hash
|
|
313
314
|
]), null;
|
|
314
315
|
}
|
|
315
|
-
function
|
|
316
|
+
function Pe(e) {
|
|
316
317
|
if (e instanceof Error) return e.message;
|
|
317
318
|
if (typeof e == "string") return e;
|
|
318
319
|
try {
|
|
@@ -321,9 +322,9 @@ function Ne(e) {
|
|
|
321
322
|
return String(e);
|
|
322
323
|
}
|
|
323
324
|
}
|
|
324
|
-
function
|
|
325
|
-
let e =
|
|
326
|
-
return
|
|
325
|
+
function Fe() {
|
|
326
|
+
let e = N(), t = Y(), n = G(void 0), r = G(void 0), i = G(null);
|
|
327
|
+
return U(() => {
|
|
327
328
|
let a = `${t.pathname}${t.search}${t.hash}`;
|
|
328
329
|
if (r.current !== a) return i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
329
330
|
i.current = null;
|
|
@@ -343,7 +344,7 @@ function Pe() {
|
|
|
343
344
|
t.hash,
|
|
344
345
|
t.pathname,
|
|
345
346
|
t.search
|
|
346
|
-
]),
|
|
347
|
+
]), U(() => {
|
|
347
348
|
let t = (t) => {
|
|
348
349
|
e.emit("error.runtime.caught", {
|
|
349
350
|
message: t.message || "Runtime error",
|
|
@@ -353,34 +354,34 @@ function Pe() {
|
|
|
353
354
|
errorName: t.error instanceof Error ? t.error.name : void 0
|
|
354
355
|
});
|
|
355
356
|
}, n = (t) => {
|
|
356
|
-
e.emit("error.unhandledrejection", { reason:
|
|
357
|
+
e.emit("error.unhandledrejection", { reason: Pe(t.reason) });
|
|
357
358
|
};
|
|
358
359
|
return window.addEventListener("error", t), window.addEventListener("unhandledrejection", n), () => {
|
|
359
360
|
window.removeEventListener("error", t), window.removeEventListener("unhandledrejection", n);
|
|
360
361
|
};
|
|
361
|
-
}, [e]),
|
|
362
|
-
|
|
362
|
+
}, [e]), U(() => {
|
|
363
|
+
T((t) => {
|
|
363
364
|
e.emit("perf.lcp.measured", {
|
|
364
365
|
metric: "LCP",
|
|
365
366
|
value: t.value,
|
|
366
367
|
id: t.id,
|
|
367
368
|
rating: t.rating
|
|
368
369
|
});
|
|
369
|
-
}),
|
|
370
|
+
}), se((t) => {
|
|
370
371
|
e.emit("perf.cls.measured", {
|
|
371
372
|
metric: "CLS",
|
|
372
373
|
value: t.value,
|
|
373
374
|
id: t.id,
|
|
374
375
|
rating: t.rating
|
|
375
376
|
});
|
|
376
|
-
}),
|
|
377
|
+
}), oe((t) => {
|
|
377
378
|
e.emit("perf.inp.measured", {
|
|
378
379
|
metric: "INP",
|
|
379
380
|
value: t.value,
|
|
380
381
|
id: t.id,
|
|
381
382
|
rating: t.rating
|
|
382
383
|
});
|
|
383
|
-
}),
|
|
384
|
+
}), ae((t) => {
|
|
384
385
|
e.emit("perf.ttfb.measured", {
|
|
385
386
|
metric: "TTFB",
|
|
386
387
|
value: t.value,
|
|
@@ -390,23 +391,23 @@ function Pe() {
|
|
|
390
391
|
});
|
|
391
392
|
}, [e]), null;
|
|
392
393
|
}
|
|
393
|
-
function
|
|
394
|
-
let { pathname: a } =
|
|
395
|
-
return /* @__PURE__ */
|
|
396
|
-
/* @__PURE__ */
|
|
397
|
-
r && !o ? /* @__PURE__ */
|
|
398
|
-
e.enabled === !1 ? null : /* @__PURE__ */
|
|
399
|
-
e.devtools ? /* @__PURE__ */
|
|
400
|
-
e.broadcast === !1 ? null : /* @__PURE__ */
|
|
401
|
-
e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */
|
|
402
|
-
e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */
|
|
394
|
+
function Ie({ config: e, productSlug: n, privacyConsent: r, consentRouteDenylist: i }) {
|
|
395
|
+
let { pathname: a } = Y(), o = t(a) || i?.(a) === !0;
|
|
396
|
+
return /* @__PURE__ */ J(K, { children: [
|
|
397
|
+
/* @__PURE__ */ q(Fe, {}),
|
|
398
|
+
r && !o ? /* @__PURE__ */ q(A, { productName: n }) : null,
|
|
399
|
+
e.enabled === !1 ? null : /* @__PURE__ */ J(K, { children: [
|
|
400
|
+
e.devtools ? /* @__PURE__ */ q(D, { enabled: !0 }) : null,
|
|
401
|
+
e.broadcast === !1 ? null : /* @__PURE__ */ q(O, {}),
|
|
402
|
+
e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */ q(k, { endpoint: e.backendAudit.endpoint }) : null,
|
|
403
|
+
e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */ q(j, {
|
|
403
404
|
siteId: e.rybbit.siteId,
|
|
404
405
|
scriptUrl: e.rybbit.scriptUrl,
|
|
405
406
|
allowlist: e.rybbit.allowlist,
|
|
406
407
|
identifyOn: e.rybbit.identifyOn,
|
|
407
408
|
rename: e.rybbit.rename
|
|
408
409
|
}) : null,
|
|
409
|
-
e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */
|
|
410
|
+
e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ q(M, {
|
|
410
411
|
endpoint: e.otel.endpoint,
|
|
411
412
|
serviceName: e.otel.serviceName ?? `${n}-app`,
|
|
412
413
|
flushInterval: e.otel.flushInterval
|
|
@@ -414,23 +415,25 @@ function Fe({ config: e, productSlug: n, privacyConsent: r, consentRouteDenylist
|
|
|
414
415
|
] })
|
|
415
416
|
] });
|
|
416
417
|
}
|
|
417
|
-
function
|
|
418
|
-
let { productName: o, productSlug: s = o.toLowerCase().replace(/\s+/g, ""), tagline:
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
418
|
+
function Le({ config: e, children: r, clearAuthStore: i }) {
|
|
419
|
+
let { productName: o, productSlug: s = o.toLowerCase().replace(/\s+/g, ""), tagline: v = "", domain: b, i18nProductId: x, platformI18nProductId: S, rtl: C, gatewayUrls: w, authBridge: T, defaultBrand: ae = "default", defaultMode: oe, defaultDensity: se, defaultTypography: ce, defaultGlass: le, enablePWA: E = !0, brandInitial: D = o.charAt(0), defaultGateway: O = "workspace", enableSubscriptions: k = !0, fallbackTranslations: A, queryClientOptions: j, toasterPosition: M = "bottom-right", observability: N, privacyConsent: P = !1, consentRouteDenylist: F, tourPageIdFromPath: I, tourRouteCatalog: L, enableWorkspaceTourPermissions: R = !1 } = e;
|
|
420
|
+
fe(s, L);
|
|
421
|
+
let [z] = pe(() => de({
|
|
422
|
+
enabled: C?.enabled,
|
|
423
|
+
allowPreview: C?.preview
|
|
424
|
+
})), B = W(() => N ?? Ee(s, Te()), [N, s]), V = W(() => ({
|
|
422
425
|
productName: o,
|
|
423
426
|
productSlug: s,
|
|
424
|
-
brandInitial:
|
|
425
|
-
tagline:
|
|
426
|
-
domain:
|
|
427
|
+
brandInitial: D,
|
|
428
|
+
tagline: v,
|
|
429
|
+
domain: b
|
|
427
430
|
}), [
|
|
428
431
|
o,
|
|
429
432
|
s,
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
]),
|
|
433
|
+
D,
|
|
434
|
+
v,
|
|
435
|
+
b
|
|
436
|
+
]), K = G(!1), Y = G(!!T?.url), X = H((e) => {
|
|
434
437
|
if (!e?.force && (() => {
|
|
435
438
|
try {
|
|
436
439
|
let e = sessionStorage.getItem("bf-active-profile");
|
|
@@ -440,25 +443,25 @@ function Ie({ config: e, children: r, clearAuthStore: i }) {
|
|
|
440
443
|
} catch {
|
|
441
444
|
return !1;
|
|
442
445
|
}
|
|
443
|
-
})() ||
|
|
444
|
-
|
|
446
|
+
})() || Y.current || K.current) return;
|
|
447
|
+
K.current = !0, d(i);
|
|
445
448
|
let n = `${window.location.pathname}${window.location.search}`, r = `/auth/login?reason=session-expired&returnTo=${encodeURIComponent(n)}`, a = /^\/vibecontrols\/(share|deck)\//.test(window.location.pathname);
|
|
446
449
|
if (window.location.pathname.startsWith("/auth/") || t(window.location.pathname) || a) {
|
|
447
|
-
|
|
450
|
+
K.current = !1;
|
|
448
451
|
return;
|
|
449
452
|
}
|
|
450
453
|
window.location.replace(r);
|
|
451
|
-
}, [i]),
|
|
452
|
-
globalBaseUrl:
|
|
453
|
-
...
|
|
454
|
-
}), [
|
|
455
|
-
window.location.pathname.startsWith("/auth/") || await
|
|
456
|
-
}, [
|
|
457
|
-
|
|
458
|
-
}, [
|
|
454
|
+
}, [i]), Z = W(() => ({
|
|
455
|
+
globalBaseUrl: w.globalBaseUrl,
|
|
456
|
+
...f()
|
|
457
|
+
}), [w.globalBaseUrl]), Q = H(async () => u(Z), [Z]), ye = H(async () => {
|
|
458
|
+
window.location.pathname.startsWith("/auth/") || await Q() || X({ force: !0 });
|
|
459
|
+
}, [Q, X]), be = H(async (e) => {
|
|
460
|
+
p(e) ? await Q() || X({ force: !0 }) : console.error("[Network] Backend unreachable:", e.message);
|
|
461
|
+
}, [Q, X]), xe = H(async (e) => {
|
|
459
462
|
let t = await l({
|
|
460
463
|
gateway: "global",
|
|
461
|
-
baseUrl:
|
|
464
|
+
baseUrl: w.globalBaseUrl,
|
|
462
465
|
authToken: "",
|
|
463
466
|
query: "mutation RefreshToken($token: String!) {\n refreshToken(token: $token) {\n accessToken\n refreshToken\n expiresIn\n }\n }",
|
|
464
467
|
variables: { token: e }
|
|
@@ -470,7 +473,7 @@ function Ie({ config: e, children: r, clearAuthStore: i }) {
|
|
|
470
473
|
refreshToken: n.refreshToken,
|
|
471
474
|
expiresAt: n.expiresIn ? Date.now() + n.expiresIn * 1e3 : void 0
|
|
472
475
|
};
|
|
473
|
-
}, [
|
|
476
|
+
}, [w.globalBaseUrl]), Se = H(() => n("organization"), []), Ce = W(() => {
|
|
474
477
|
let e = new _e({
|
|
475
478
|
queryCache: new ge({ onError: (e) => {
|
|
476
479
|
a(e);
|
|
@@ -484,81 +487,81 @@ function Ie({ config: e, children: r, clearAuthStore: i }) {
|
|
|
484
487
|
}
|
|
485
488
|
}),
|
|
486
489
|
defaultOptions: { queries: {
|
|
487
|
-
staleTime:
|
|
488
|
-
retry:
|
|
489
|
-
refetchOnWindowFocus:
|
|
490
|
+
staleTime: j?.staleTime ?? 300 * 1e3,
|
|
491
|
+
retry: j?.retry ?? 2,
|
|
492
|
+
refetchOnWindowFocus: j?.refetchOnWindowFocus ?? !1
|
|
490
493
|
} }
|
|
491
494
|
});
|
|
492
495
|
return e;
|
|
493
|
-
}, [
|
|
494
|
-
return
|
|
496
|
+
}, [j]);
|
|
497
|
+
return U(() => {
|
|
495
498
|
let e = () => {
|
|
496
|
-
|
|
499
|
+
X({ force: !0 });
|
|
497
500
|
};
|
|
498
501
|
return window.addEventListener(c, e), () => {
|
|
499
502
|
window.removeEventListener(c, e);
|
|
500
503
|
};
|
|
501
|
-
}, [
|
|
502
|
-
let e =
|
|
503
|
-
e.getLogger("shell") || e.getLogger("shell").addTransport(new
|
|
504
|
-
}, []), /* @__PURE__ */
|
|
505
|
-
value:
|
|
506
|
-
children: /* @__PURE__ */
|
|
504
|
+
}, [X]), U(() => {
|
|
505
|
+
let e = _.getInstance();
|
|
506
|
+
e.getLogger("shell") || e.getLogger("shell").addTransport(new ee());
|
|
507
|
+
}, []), /* @__PURE__ */ q(m, {
|
|
508
|
+
value: V,
|
|
509
|
+
children: /* @__PURE__ */ q(ue, {
|
|
507
510
|
appName: s,
|
|
508
|
-
appVersion:
|
|
509
|
-
appEnv:
|
|
511
|
+
appVersion: B.appVersion,
|
|
512
|
+
appEnv: B.appEnv,
|
|
510
513
|
sourceMfe: s,
|
|
511
|
-
children: /* @__PURE__ */
|
|
512
|
-
FallbackComponent:
|
|
513
|
-
children: /* @__PURE__ */
|
|
514
|
-
config:
|
|
514
|
+
children: /* @__PURE__ */ q(y, {
|
|
515
|
+
FallbackComponent: te,
|
|
516
|
+
children: /* @__PURE__ */ J(me, { children: [/* @__PURE__ */ q(Ie, {
|
|
517
|
+
config: B,
|
|
515
518
|
productSlug: s,
|
|
516
|
-
privacyConsent:
|
|
517
|
-
consentRouteDenylist:
|
|
518
|
-
}), /* @__PURE__ */
|
|
519
|
-
client:
|
|
520
|
-
children: /* @__PURE__ */
|
|
521
|
-
workspaceBaseUrl:
|
|
522
|
-
globalBaseUrl:
|
|
523
|
-
organizationId:
|
|
519
|
+
privacyConsent: P,
|
|
520
|
+
consentRouteDenylist: F
|
|
521
|
+
}), /* @__PURE__ */ q(ve, {
|
|
522
|
+
client: Ce,
|
|
523
|
+
children: /* @__PURE__ */ q(re, { children: /* @__PURE__ */ q(ie, {
|
|
524
|
+
workspaceBaseUrl: w.workspaceBaseUrl,
|
|
525
|
+
globalBaseUrl: w.globalBaseUrl,
|
|
526
|
+
organizationId: Se,
|
|
524
527
|
productSlug: s,
|
|
525
|
-
defaultGateway:
|
|
526
|
-
enableSubscriptions:
|
|
527
|
-
onAuthError:
|
|
528
|
-
onNetworkError:
|
|
529
|
-
onRefreshToken:
|
|
530
|
-
children: /* @__PURE__ */
|
|
531
|
-
bridgeUrl:
|
|
532
|
-
bridgeAllowedOrigins:
|
|
533
|
-
bridgeDebug:
|
|
534
|
-
onRefreshToken:
|
|
528
|
+
defaultGateway: O,
|
|
529
|
+
enableSubscriptions: k,
|
|
530
|
+
onAuthError: ye,
|
|
531
|
+
onNetworkError: be,
|
|
532
|
+
onRefreshToken: Q,
|
|
533
|
+
children: /* @__PURE__ */ q(h, {
|
|
534
|
+
bridgeUrl: T?.url,
|
|
535
|
+
bridgeAllowedOrigins: T?.allowedOrigins,
|
|
536
|
+
bridgeDebug: T?.debug,
|
|
537
|
+
onRefreshToken: xe,
|
|
535
538
|
onBridgeReady: () => {
|
|
536
|
-
|
|
539
|
+
Y.current = !1;
|
|
537
540
|
},
|
|
538
541
|
onSessionExpiringSoon: () => {
|
|
539
542
|
console.warn("[Auth] Session will expire in 5 minutes");
|
|
540
543
|
},
|
|
541
544
|
onTokenExpired: () => {
|
|
542
|
-
|
|
545
|
+
X();
|
|
543
546
|
},
|
|
544
|
-
children: /* @__PURE__ */
|
|
547
|
+
children: /* @__PURE__ */ q(g, {
|
|
545
548
|
syncToUrl: !0,
|
|
546
|
-
children: /* @__PURE__ */
|
|
547
|
-
i18nProductId:
|
|
548
|
-
platformI18nProductId:
|
|
549
|
-
directionMode:
|
|
550
|
-
fallbackTranslations:
|
|
551
|
-
defaultBrand:
|
|
552
|
-
defaultMode:
|
|
553
|
-
defaultDensity:
|
|
554
|
-
defaultTypography:
|
|
549
|
+
children: /* @__PURE__ */ q(ne, { children: /* @__PURE__ */ q(Me, {
|
|
550
|
+
i18nProductId: x,
|
|
551
|
+
platformI18nProductId: S,
|
|
552
|
+
directionMode: z,
|
|
553
|
+
fallbackTranslations: A,
|
|
554
|
+
defaultBrand: ae,
|
|
555
|
+
defaultMode: oe,
|
|
556
|
+
defaultDensity: se,
|
|
557
|
+
defaultTypography: ce,
|
|
555
558
|
defaultGlass: le,
|
|
556
559
|
productName: o,
|
|
557
|
-
brandInitial:
|
|
558
|
-
enablePWA:
|
|
559
|
-
toasterPosition:
|
|
560
|
-
tourPageIdFromPath:
|
|
561
|
-
enableWorkspaceTourPermissions:
|
|
560
|
+
brandInitial: D,
|
|
561
|
+
enablePWA: E,
|
|
562
|
+
toasterPosition: M,
|
|
563
|
+
tourPageIdFromPath: I,
|
|
564
|
+
enableWorkspaceTourPermissions: R,
|
|
562
565
|
children: r
|
|
563
566
|
}) })
|
|
564
567
|
})
|
|
@@ -570,4 +573,4 @@ function Ie({ config: e, children: r, clearAuthStore: i }) {
|
|
|
570
573
|
});
|
|
571
574
|
}
|
|
572
575
|
//#endregion
|
|
573
|
-
export {
|
|
576
|
+
export { Le as AppShellProvider, Ee as resolveAppShellObservabilityConfig };
|