@burdenoff/fe-libs 2026.1003.4 → 2026.1004.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.
Files changed (49) hide show
  1. package/dist/shared/graphql/client.d.ts.map +1 -1
  2. package/dist/shared/graphql/client.js +153 -140
  3. package/dist/shared/providers/AppShellProvider.d.ts +2 -0
  4. package/dist/shared/providers/AppShellProvider.d.ts.map +1 -1
  5. package/dist/shared/providers/AppShellProvider.js +154 -147
  6. package/dist/shared/providers/shell/MultiGatewayProvider.d.ts.map +1 -1
  7. package/dist/shared/providers/shell/MultiGatewayProvider.js +6 -0
  8. package/dist/shared/tours/TourPermissionsBoundary.d.ts +7 -0
  9. package/dist/shared/tours/TourPermissionsBoundary.d.ts.map +1 -0
  10. package/dist/shared/tours/TourPermissionsBoundary.js +17 -0
  11. package/dist/shared/tours/TourPlayerProvider.d.ts +1 -1
  12. package/dist/shared/tours/TourPlayerProvider.d.ts.map +1 -1
  13. package/dist/shared/tours/TourPlayerProvider.js +52 -51
  14. package/dist/shared/tours/TourTrigger.js +30 -26
  15. package/dist/shared/tours/ToursContext.d.ts +4 -1
  16. package/dist/shared/tours/ToursContext.d.ts.map +1 -1
  17. package/dist/shared/tours/ToursContext.js +100 -80
  18. package/dist/shared/tours/permissions.d.ts +9 -0
  19. package/dist/shared/tours/permissions.d.ts.map +1 -0
  20. package/dist/shared/tours/permissions.js +7 -0
  21. package/dist/shared/tours/progress.d.ts +6 -1
  22. package/dist/shared/tours/progress.d.ts.map +1 -1
  23. package/dist/shared/tours/progress.js +11 -1
  24. package/dist/shared/tours/routeCatalog.d.ts.map +1 -1
  25. package/dist/shared/tours/routeCatalog.js +51 -0
  26. package/dist/shared/tours/tourTrigger/DesktopTourDropdown.d.ts +2 -0
  27. package/dist/shared/tours/tourTrigger/DesktopTourDropdown.d.ts.map +1 -1
  28. package/dist/shared/tours/tourTrigger/DesktopTourDropdown.js +32 -31
  29. package/dist/shared/tours/tourTrigger/MobileTourSheet.d.ts +2 -0
  30. package/dist/shared/tours/tourTrigger/MobileTourSheet.d.ts.map +1 -1
  31. package/dist/shared/tours/tourTrigger/MobileTourSheet.js +42 -41
  32. package/dist/shared/tours/tourTrigger/TourLoadError.d.ts +4 -0
  33. package/dist/shared/tours/tourTrigger/TourLoadError.d.ts.map +1 -0
  34. package/dist/shared/tours/tourTrigger/TourLoadError.js +21 -0
  35. package/dist/shared/tours/toursContext/gql.d.ts.map +1 -1
  36. package/dist/shared/tours/toursContext/gql.js +2 -0
  37. package/dist/shared/tours/toursContext/progressWriteQueue.d.ts +6 -0
  38. package/dist/shared/tours/toursContext/progressWriteQueue.d.ts.map +1 -0
  39. package/dist/shared/tours/toursContext/progressWriteQueue.js +19 -0
  40. package/dist/shared/tours/toursContext/useTourMutations.d.ts.map +1 -1
  41. package/dist/shared/tours/toursContext/useTourMutations.js +155 -73
  42. package/dist/shared/tours/types.d.ts +4 -0
  43. package/dist/shared/tours/types.d.ts.map +1 -1
  44. package/dist/shared/tours/useTourPlayer.d.ts +1 -0
  45. package/dist/shared/tours/useTourPlayer.d.ts.map +1 -1
  46. package/dist/shared/tours/useTourPlayer.js +152 -141
  47. package/dist/shared-tours.js +9 -9
  48. package/dist/shared.js +9 -9
  49. package/package.json +2 -2
@@ -5,43 +5,44 @@ import { BACKEND_ERROR_EVENT as r, CONNECTION_STATUS_EVENT as i, dispatchBackend
5
5
  import { SESSION_EXPIRED_EVENT as c, graphqlFetch as l } from "../graphql/fetch.js";
6
6
  import { attemptTokenRefresh as u, clearAuthSessionStorage as d, getSharedTokenRefreshRefs as f, isAuthNetworkError as p } from "../utils/authErrorHandling.js";
7
7
  import { AppShellContextProvider as m } from "./shell/AppShellContext.js";
8
- import { AuthProvider as ee } from "./shell/AuthProvider.js";
9
- import { ActiveContextProvider as te } from "./shell/ActiveContextProvider.js";
10
- import { LogManager as ne } from "../logger/LogManager.js";
11
- import { ConsoleTransport as re } from "../logger/ConsoleTransport.js";
12
- import { ThemeProvider as h } from "./shell/ThemeProvider.js";
13
- import { ErrorFallback as ie } from "../components/ErrorFallback.js";
14
- import { m as g } from "../../node_modules/react-error-boundary/dist/react-error-boundary.js";
15
- import { PWAInstallBanner as _ } from "../components/PWAInstallBanner.js";
16
- import { FeatureFlagsProvider as v } from "./shell/FeatureFlagsProvider.js";
17
- import { FeatureFlagProvider as y } from "../feature-flags/FeatureFlagProvider.js";
18
- import { GlobalUiProvider as b } from "./shell/GlobalUiProvider.js";
19
- import { ShellUiProvider as ae } from "./shell/ShellUiProvider.js";
20
- import { ContextManagerProvider as oe } from "./shell/ContextManagerProvider.js";
21
- import { AuthTokenProvider as se } from "./shell/AuthTokenProvider.js";
22
- import { MultiGatewayProvider as ce } from "./shell/MultiGatewayProvider.js";
23
- import { G as x, Q as S, j as C, w } from "../../node_modules/web-vitals/dist/web-vitals.js";
24
- import { ProfileI18nBridge as T } from "./shell/ProfileI18nBridge.js";
8
+ import { AuthProvider as h } from "./shell/AuthProvider.js";
9
+ import { ActiveContextProvider as ee } from "./shell/ActiveContextProvider.js";
10
+ import { LogManager as te } from "../logger/LogManager.js";
11
+ import { ConsoleTransport as ne } from "../logger/ConsoleTransport.js";
12
+ import { ThemeProvider as g } from "./shell/ThemeProvider.js";
13
+ import { ErrorFallback as re } from "../components/ErrorFallback.js";
14
+ import { m as _ } from "../../node_modules/react-error-boundary/dist/react-error-boundary.js";
15
+ import { PWAInstallBanner as v } from "../components/PWAInstallBanner.js";
16
+ import { FeatureFlagsProvider as y } from "./shell/FeatureFlagsProvider.js";
17
+ import { FeatureFlagProvider as b } from "../feature-flags/FeatureFlagProvider.js";
18
+ import { GlobalUiProvider as x } from "./shell/GlobalUiProvider.js";
19
+ import { ShellUiProvider as S } from "./shell/ShellUiProvider.js";
20
+ import { ContextManagerProvider as ie } from "./shell/ContextManagerProvider.js";
21
+ import { AuthTokenProvider as ae } from "./shell/AuthTokenProvider.js";
22
+ import { MultiGatewayProvider as oe } from "./shell/MultiGatewayProvider.js";
23
+ import { G as C, Q as w, j as T, 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 E } from "./shell/ProfileGeographyBridge.js";
26
- import { DesktopUpdateToast as D } from "../components/DesktopUpdateToast.js";
27
- import { DevtoolsSink as O } from "../events/sinks/DevtoolsSink.js";
28
- import { BroadcastChannelSink as k } from "../events/sinks/BroadcastChannelSink.js";
29
- import { BackendAuditSink as A } from "../events/sinks/BackendAuditSink.js";
30
- import { AnalyticsConsentBanner as j, RybbitSink as M } from "../events/sinks/RybbitSink.js";
31
- import { OtelBrowserSink as N } from "../events/sinks/OtelBrowserSink.js";
32
- import { EventBusProvider as le, useEventBus as P } from "../../shared-events.js";
33
- import { useReferralAttribution as F } from "../hooks/useReferralAttribution.js";
34
- import { usePushDeviceRegistration as I } from "../hooks/usePushDeviceRegistration.js";
26
+ import { DesktopUpdateToast as le } 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";
35
36
  import { TourPlayerProvider as L } from "../tours/TourPlayerProvider.js";
36
37
  import { ToursProvider as R, useToursContext as z } from "../tours/ToursContext.js";
37
38
  import { TourInitializer as B } from "../tours/TourInitializer.js";
38
39
  import { Suspense as V, useCallback as H, useEffect as U, useMemo as W, useRef as G } from "react";
39
40
  import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
40
- import { BrowserRouter as ue, useLocation as Y } from "react-router";
41
- import { Toaster as de, toast as X } from "sonner";
41
+ import { BrowserRouter as de, useLocation as Y } from "react-router";
42
+ import { Toaster as X, toast as Z } from "sonner";
42
43
  import { MutationCache as fe, QueryCache as pe, QueryClient as me, QueryClientProvider as he } from "@tanstack/react-query";
43
44
  //#region src/shared/providers/AppShellProvider.tsx
44
- var Z = {
45
+ var Q = {
45
46
  artistrybase: { prod: "cfbecacb6002" },
46
47
  atheletebridge: { prod: "c34c6ead7aa8" },
47
48
  adaptercloud: {},
@@ -108,8 +109,8 @@ function Se() {
108
109
  SSR: !1
109
110
  };
110
111
  }
111
- function Q(t, n) {
112
- let r = be(n.VITE_DEPLOY_ENV ?? n.MODE), i = xe(n, r), a = Z[t] ?? Z[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);
112
+ function Ce(t, n) {
113
+ let r = be(n.VITE_DEPLOY_ENV ?? n.MODE), i = xe(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);
113
114
  return {
114
115
  enabled: i,
115
116
  appVersion: n.VITE_APP_VERSION || "0.0.0",
@@ -135,9 +136,10 @@ function Q(t, n) {
135
136
  }
136
137
  };
137
138
  }
138
- function Ce({ children: e, enablePWA: t, toasterPosition: n, productName: r, brandInitial: i }) {
139
- let { trackProgress: a, recordStepCompletion: o, trackEvent: s } = z(), c = H((e, t) => e.steps?.[t], []);
139
+ function we({ children: e, enablePWA: t, toasterPosition: n, productName: r, brandInitial: i }) {
140
+ let { trackProgress: a, recordStepCompletion: o, trackEvent: s, progressScopeKey: c } = z(), l = H((e, t) => e.steps?.[t], []);
140
141
  return /* @__PURE__ */ J(L, {
142
+ scopeKey: c,
141
143
  onTourStart: H((e) => {
142
144
  a(e.id, "started"), s("TOUR_STARTED", e.id);
143
145
  }, [s, a]),
@@ -145,49 +147,49 @@ function Ce({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
145
147
  a(e.id, "completed"), s("TOUR_COMPLETED", e.id);
146
148
  }, [s, a]),
147
149
  onTourSkip: H((e, t) => {
148
- let n = c(e, t);
150
+ let n = l(e, t);
149
151
  a(e.id, "skipped"), s("TOUR_SKIPPED", e.id, {
150
152
  stepId: n?.id,
151
153
  stepOrder: n?.stepOrder
152
154
  });
153
155
  }, [
154
- c,
156
+ l,
155
157
  s,
156
158
  a
157
159
  ]),
158
160
  onStepChange: H((e, t) => {
159
- let n = c(e, t);
161
+ let n = l(e, t);
160
162
  n && s("STEP_VIEWED", e.id, {
161
163
  stepId: n.id,
162
164
  stepOrder: n.stepOrder
163
165
  });
164
- }, [c, s]),
166
+ }, [l, s]),
165
167
  onStepComplete: H((e, t) => {
166
- let n = c(e, t);
168
+ let n = l(e, t);
167
169
  n && (o(e.id, n.id), s("STEP_COMPLETED", e.id, {
168
170
  stepId: n.id,
169
171
  stepOrder: n.stepOrder
170
172
  }));
171
173
  }, [
172
- c,
174
+ l,
173
175
  o,
174
176
  s
175
177
  ]),
176
178
  children: [
177
179
  /* @__PURE__ */ q(B, {}),
178
180
  e,
179
- /* @__PURE__ */ q(we, {}),
180
- /* @__PURE__ */ q(Ee, {}),
181
- /* @__PURE__ */ q(de, {
181
+ /* @__PURE__ */ q(Te, {}),
182
+ /* @__PURE__ */ q(De, {}),
183
+ /* @__PURE__ */ q(X, {
182
184
  position: n,
183
185
  richColors: !0,
184
186
  closeButton: !0,
185
187
  style: _e
186
188
  }),
187
- /* @__PURE__ */ q(D, {}),
189
+ /* @__PURE__ */ q(le, {}),
188
190
  t && /* @__PURE__ */ q(V, {
189
191
  fallback: null,
190
- children: /* @__PURE__ */ q(_, {
192
+ children: /* @__PURE__ */ q(v, {
191
193
  productName: r,
192
194
  brandInitial: i
193
195
  })
@@ -195,7 +197,7 @@ function Ce({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
195
197
  ]
196
198
  });
197
199
  }
198
- function we() {
200
+ function Te() {
199
201
  let e = G(null);
200
202
  return U(() => {
201
203
  let t = (t) => {
@@ -206,33 +208,33 @@ function we() {
206
208
  a?.key === r && i - a.shownAt < ve || (e.current = {
207
209
  key: r,
208
210
  shownAt: i
209
- }, X.error(n.message, { duration: 7e3 }));
211
+ }, Z.error(n.message, { duration: 7e3 }));
210
212
  };
211
213
  return window.addEventListener(r, t), () => window.removeEventListener(r, t);
212
214
  }, []), null;
213
215
  }
214
- var $ = "burdenoff-connection-status", Te = 1500;
215
- function Ee() {
216
+ var $ = "burdenoff-connection-status", Ee = 1500;
217
+ function De() {
216
218
  let e = G(null), t = G(!1);
217
219
  return U(() => {
218
220
  let n = () => {
219
- t.current || (t.current = !0, X.error("Connection lost. Trying to reconnect…", {
221
+ t.current || (t.current = !0, Z.error("Connection lost. Trying to reconnect…", {
220
222
  id: $,
221
223
  duration: Infinity
222
224
  }));
223
225
  }, r = () => {
224
226
  t.current || e.current || (e.current = setTimeout(() => {
225
227
  e.current = null, n();
226
- }, Te));
228
+ }, Ee));
227
229
  }, a = (n) => {
228
230
  if (e.current &&= (clearTimeout(e.current), null), !t.current) {
229
- X.dismiss($);
231
+ Z.dismiss($);
230
232
  return;
231
233
  }
232
- t.current = !1, n ? X.success("Back online", {
234
+ t.current = !1, n ? Z.success("Back online", {
233
235
  id: $,
234
236
  duration: 2500
235
- }) : X.dismiss($);
237
+ }) : Z.dismiss($);
236
238
  }, o = (e) => {
237
239
  if (!(e instanceof CustomEvent)) return;
238
240
  let t = e.detail;
@@ -245,45 +247,49 @@ function Ee() {
245
247
  };
246
248
  }, []), null;
247
249
  }
248
- function De() {
249
- return I(), null;
250
+ function Oe() {
251
+ return F(), null;
250
252
  }
251
- function Oe({ children: e, i18nProductId: t, fallbackTranslations: n, defaultBrand: r, defaultMode: i, defaultDensity: a, defaultTypography: o, defaultGlass: s, productName: c, brandInitial: l, enablePWA: u, toasterPosition: d, tourPageIdFromPath: f }) {
252
- let p = Y();
253
- F();
254
- let m = /* @__PURE__ */ q(E, { children: /* @__PURE__ */ q(v, { children: /* @__PURE__ */ q(y, {
255
- workspaceId: null,
256
- gateway: "global",
257
- defaultEnabled: !0,
258
- children: /* @__PURE__ */ q(b, { children: /* @__PURE__ */ q(ae, { children: /* @__PURE__ */ q(g, {
259
- fallback: null,
260
- children: /* @__PURE__ */ q(R, {
261
- disabled: p.pathname.startsWith("/devportal") || p.pathname.startsWith("/organizations") || p.pathname.startsWith("/workspaces"),
262
- getPageIdFromPath: f,
263
- children: /* @__PURE__ */ J(Ce, {
264
- enablePWA: u,
265
- toasterPosition: d,
266
- productName: c,
267
- brandInitial: l,
268
- children: [/* @__PURE__ */ q(De, {}), e]
269
- })
270
- })
271
- }) }) })
272
- }) }) });
273
- return /* @__PURE__ */ J(h, {
253
+ function ke({ children: e, i18nProductId: t, fallbackTranslations: n, defaultBrand: r, defaultMode: i, defaultDensity: a, defaultTypography: o, defaultGlass: s, productName: c, brandInitial: l, enablePWA: u, toasterPosition: d, tourPageIdFromPath: f, enableWorkspaceTourPermissions: p }) {
254
+ let m = Y();
255
+ P();
256
+ let h = m.pathname.startsWith("/devportal") || m.pathname.startsWith("/organizations") || m.pathname.startsWith("/workspaces");
257
+ return /* @__PURE__ */ J(g, {
274
258
  defaultBrand: r,
275
259
  defaultMode: i,
276
260
  defaultDensity: a,
277
261
  defaultTypography: o,
278
262
  defaultGlass: s,
279
- children: [/* @__PURE__ */ q(ke, {}), /* @__PURE__ */ q(T, {
263
+ children: [/* @__PURE__ */ q(Ae, {}), /* @__PURE__ */ q(ce, {
280
264
  i18nProductId: t,
281
265
  fallbackTranslations: n,
282
- children: m
266
+ children: /* @__PURE__ */ q(E, { children: /* @__PURE__ */ q(y, { children: /* @__PURE__ */ q(b, {
267
+ workspaceId: null,
268
+ gateway: "global",
269
+ defaultEnabled: !0,
270
+ children: /* @__PURE__ */ q(x, { children: /* @__PURE__ */ q(S, { children: /* @__PURE__ */ q(_, {
271
+ fallback: null,
272
+ children: /* @__PURE__ */ q(I, {
273
+ enabled: p && !h,
274
+ children: /* @__PURE__ */ q(R, {
275
+ requireWorkspace: p,
276
+ disabled: h,
277
+ getPageIdFromPath: f,
278
+ children: /* @__PURE__ */ J(we, {
279
+ enablePWA: u,
280
+ toasterPosition: d,
281
+ productName: c,
282
+ brandInitial: l,
283
+ children: [/* @__PURE__ */ q(Oe, {}), e]
284
+ })
285
+ })
286
+ })
287
+ }) }) })
288
+ }) }) })
283
289
  })]
284
290
  });
285
291
  }
286
- function ke() {
292
+ function Ae() {
287
293
  let e = Y();
288
294
  return U(() => {
289
295
  e.hash || requestAnimationFrame(() => {
@@ -303,7 +309,7 @@ function ke() {
303
309
  e.hash
304
310
  ]), null;
305
311
  }
306
- function Ae(e) {
312
+ function je(e) {
307
313
  if (e instanceof Error) return e.message;
308
314
  if (typeof e == "string") return e;
309
315
  try {
@@ -312,8 +318,8 @@ function Ae(e) {
312
318
  return String(e);
313
319
  }
314
320
  }
315
- function je() {
316
- let e = P(), t = Y(), n = G(void 0), r = G(void 0), i = G(null);
321
+ function Me() {
322
+ let e = N(), t = Y(), n = G(void 0), r = G(void 0), i = G(null);
317
323
  return U(() => {
318
324
  let a = `${t.pathname}${t.search}${t.hash}`;
319
325
  if (r.current !== a) return i.current && clearTimeout(i.current), i.current = setTimeout(() => {
@@ -344,34 +350,34 @@ function je() {
344
350
  errorName: t.error instanceof Error ? t.error.name : void 0
345
351
  });
346
352
  }, n = (t) => {
347
- e.emit("error.unhandledrejection", { reason: Ae(t.reason) });
353
+ e.emit("error.unhandledrejection", { reason: je(t.reason) });
348
354
  };
349
355
  return window.addEventListener("error", t), window.addEventListener("unhandledrejection", n), () => {
350
356
  window.removeEventListener("error", t), window.removeEventListener("unhandledrejection", n);
351
357
  };
352
358
  }, [e]), U(() => {
353
- x((t) => {
359
+ C((t) => {
354
360
  e.emit("perf.lcp.measured", {
355
361
  metric: "LCP",
356
362
  value: t.value,
357
363
  id: t.id,
358
364
  rating: t.rating
359
365
  });
360
- }), w((t) => {
366
+ }), se((t) => {
361
367
  e.emit("perf.cls.measured", {
362
368
  metric: "CLS",
363
369
  value: t.value,
364
370
  id: t.id,
365
371
  rating: t.rating
366
372
  });
367
- }), C((t) => {
373
+ }), T((t) => {
368
374
  e.emit("perf.inp.measured", {
369
375
  metric: "INP",
370
376
  value: t.value,
371
377
  id: t.id,
372
378
  rating: t.rating
373
379
  });
374
- }), S((t) => {
380
+ }), w((t) => {
375
381
  e.emit("perf.ttfb.measured", {
376
382
  metric: "TTFB",
377
383
  value: t.value,
@@ -381,23 +387,23 @@ function je() {
381
387
  });
382
388
  }, [e]), null;
383
389
  }
384
- function Me({ config: e, productSlug: n, privacyConsent: r, consentRouteDenylist: i }) {
390
+ function Ne({ config: e, productSlug: n, privacyConsent: r, consentRouteDenylist: i }) {
385
391
  let { pathname: a } = Y(), o = t(a) || i?.(a) === !0;
386
392
  return /* @__PURE__ */ J(K, { children: [
387
- /* @__PURE__ */ q(je, {}),
388
- r && !o ? /* @__PURE__ */ q(j, { productName: n }) : null,
393
+ /* @__PURE__ */ q(Me, {}),
394
+ r && !o ? /* @__PURE__ */ q(A, { productName: n }) : null,
389
395
  e.enabled === !1 ? null : /* @__PURE__ */ J(K, { children: [
390
- e.devtools ? /* @__PURE__ */ q(O, { enabled: !0 }) : null,
391
- e.broadcast === !1 ? null : /* @__PURE__ */ q(k, {}),
392
- e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */ q(A, { endpoint: e.backendAudit.endpoint }) : null,
393
- e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */ q(M, {
396
+ e.devtools ? /* @__PURE__ */ q(D, { enabled: !0 }) : null,
397
+ e.broadcast === !1 ? null : /* @__PURE__ */ q(O, {}),
398
+ e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */ q(k, { endpoint: e.backendAudit.endpoint }) : null,
399
+ e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */ q(j, {
394
400
  siteId: e.rybbit.siteId,
395
401
  scriptUrl: e.rybbit.scriptUrl,
396
402
  allowlist: e.rybbit.allowlist,
397
403
  identifyOn: e.rybbit.identifyOn,
398
404
  rename: e.rybbit.rename
399
405
  }) : null,
400
- e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ q(N, {
406
+ e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ q(M, {
401
407
  endpoint: e.otel.endpoint,
402
408
  serviceName: e.otel.serviceName ?? `${n}-app`,
403
409
  flushInterval: e.otel.flushInterval
@@ -405,20 +411,20 @@ function Me({ config: e, productSlug: n, privacyConsent: r, consentRouteDenylist
405
411
  ] })
406
412
  ] });
407
413
  }
408
- function Ne({ config: e, children: r, clearAuthStore: i }) {
409
- let { productName: o, productSlug: s = o.toLowerCase().replace(/\s+/g, ""), tagline: h = "", domain: _, i18nProductId: v, gatewayUrls: y, authBridge: b, defaultBrand: ae = "default", defaultMode: x, defaultDensity: S, defaultTypography: C, defaultGlass: w, enablePWA: T = !0, brandInitial: E = o.charAt(0), defaultGateway: D = "workspace", enableSubscriptions: O = !0, fallbackTranslations: k, queryClientOptions: A, toasterPosition: j = "bottom-right", observability: M, privacyConsent: N = !1, consentRouteDenylist: P, tourPageIdFromPath: F } = e, I = W(() => M ?? Q(s, Se()), [M, s]), L = W(() => ({
414
+ function Pe({ config: e, children: r, clearAuthStore: i }) {
415
+ let { productName: o, productSlug: s = o.toLowerCase().replace(/\s+/g, ""), tagline: g = "", domain: v, i18nProductId: y, gatewayUrls: b, authBridge: x, defaultBrand: S = "default", defaultMode: C, defaultDensity: w, defaultTypography: T, defaultGlass: se, enablePWA: ce = !0, brandInitial: E = o.charAt(0), defaultGateway: le = "workspace", enableSubscriptions: D = !0, fallbackTranslations: O, queryClientOptions: k, toasterPosition: A = "bottom-right", observability: j, privacyConsent: M = !1, consentRouteDenylist: N, tourPageIdFromPath: P, enableWorkspaceTourPermissions: F = !1 } = e, I = W(() => j ?? Ce(s, Se()), [j, s]), L = W(() => ({
410
416
  productName: o,
411
417
  productSlug: s,
412
418
  brandInitial: E,
413
- tagline: h,
414
- domain: _
419
+ tagline: g,
420
+ domain: v
415
421
  }), [
416
422
  o,
417
423
  s,
418
424
  E,
419
- h,
420
- _
421
- ]), R = G(!1), z = G(!!b?.url), B = H((e) => {
425
+ g,
426
+ v
427
+ ]), R = G(!1), z = G(!!x?.url), B = H((e) => {
422
428
  if (!e?.force && (() => {
423
429
  try {
424
430
  let e = sessionStorage.getItem("bf-active-profile");
@@ -437,16 +443,16 @@ function Ne({ config: e, children: r, clearAuthStore: i }) {
437
443
  }
438
444
  window.location.replace(r);
439
445
  }, [i]), V = W(() => ({
440
- globalBaseUrl: y.globalBaseUrl,
446
+ globalBaseUrl: b.globalBaseUrl,
441
447
  ...f()
442
- }), [y.globalBaseUrl]), K = H(async () => u(V), [V]), Y = H(async () => {
448
+ }), [b.globalBaseUrl]), K = H(async () => u(V), [V]), Y = H(async () => {
443
449
  window.location.pathname.startsWith("/auth/") || await K() || B({ force: !0 });
444
- }, [K, B]), de = H(async (e) => {
445
- p(e) ? await K() || B({ force: !0 }) : console.error("[Network] Backend unreachable:", e.message);
446
450
  }, [K, B]), X = H(async (e) => {
451
+ p(e) ? await K() || B({ force: !0 }) : console.error("[Network] Backend unreachable:", e.message);
452
+ }, [K, B]), Z = H(async (e) => {
447
453
  let t = await l({
448
454
  gateway: "global",
449
- baseUrl: y.globalBaseUrl,
455
+ baseUrl: b.globalBaseUrl,
450
456
  authToken: "",
451
457
  query: "mutation RefreshToken($token: String!) {\n refreshToken(token: $token) {\n accessToken\n refreshToken\n expiresIn\n }\n }",
452
458
  variables: { token: e }
@@ -458,7 +464,7 @@ function Ne({ config: e, children: r, clearAuthStore: i }) {
458
464
  refreshToken: n.refreshToken,
459
465
  expiresAt: n.expiresIn ? Date.now() + n.expiresIn * 1e3 : void 0
460
466
  };
461
- }, [y.globalBaseUrl]), Z = H(() => n("organization"), []), ge = W(() => {
467
+ }, [b.globalBaseUrl]), Q = H(() => n("organization"), []), ge = W(() => {
462
468
  let e = new me({
463
469
  queryCache: new pe({ onError: (e) => {
464
470
  a(e);
@@ -472,13 +478,13 @@ function Ne({ config: e, children: r, clearAuthStore: i }) {
472
478
  }
473
479
  }),
474
480
  defaultOptions: { queries: {
475
- staleTime: A?.staleTime ?? 300 * 1e3,
476
- retry: A?.retry ?? 2,
477
- refetchOnWindowFocus: A?.refetchOnWindowFocus ?? !1
481
+ staleTime: k?.staleTime ?? 300 * 1e3,
482
+ retry: k?.retry ?? 2,
483
+ refetchOnWindowFocus: k?.refetchOnWindowFocus ?? !1
478
484
  } }
479
485
  });
480
486
  return e;
481
- }, [A]);
487
+ }, [k]);
482
488
  return U(() => {
483
489
  let e = () => {
484
490
  B({ force: !0 });
@@ -487,39 +493,39 @@ function Ne({ config: e, children: r, clearAuthStore: i }) {
487
493
  window.removeEventListener(c, e);
488
494
  };
489
495
  }, [B]), U(() => {
490
- let e = ne.getInstance();
491
- e.getLogger("shell") || e.getLogger("shell").addTransport(new re());
496
+ let e = te.getInstance();
497
+ e.getLogger("shell") || e.getLogger("shell").addTransport(new ne());
492
498
  }, []), /* @__PURE__ */ q(m, {
493
499
  value: L,
494
- children: /* @__PURE__ */ q(le, {
500
+ children: /* @__PURE__ */ q(ue, {
495
501
  appName: s,
496
502
  appVersion: I.appVersion,
497
503
  appEnv: I.appEnv,
498
504
  sourceMfe: s,
499
- children: /* @__PURE__ */ q(g, {
500
- FallbackComponent: ie,
501
- children: /* @__PURE__ */ J(ue, { children: [/* @__PURE__ */ q(Me, {
505
+ children: /* @__PURE__ */ q(_, {
506
+ FallbackComponent: re,
507
+ children: /* @__PURE__ */ J(de, { children: [/* @__PURE__ */ q(Ne, {
502
508
  config: I,
503
509
  productSlug: s,
504
- privacyConsent: N,
505
- consentRouteDenylist: P
510
+ privacyConsent: M,
511
+ consentRouteDenylist: N
506
512
  }), /* @__PURE__ */ q(he, {
507
513
  client: ge,
508
- children: /* @__PURE__ */ q(se, { children: /* @__PURE__ */ q(ce, {
509
- workspaceBaseUrl: y.workspaceBaseUrl,
510
- globalBaseUrl: y.globalBaseUrl,
511
- organizationId: Z,
514
+ children: /* @__PURE__ */ q(ae, { children: /* @__PURE__ */ q(oe, {
515
+ workspaceBaseUrl: b.workspaceBaseUrl,
516
+ globalBaseUrl: b.globalBaseUrl,
517
+ organizationId: Q,
512
518
  productSlug: s,
513
- defaultGateway: D,
514
- enableSubscriptions: O,
519
+ defaultGateway: le,
520
+ enableSubscriptions: D,
515
521
  onAuthError: Y,
516
- onNetworkError: de,
522
+ onNetworkError: X,
517
523
  onRefreshToken: K,
518
- children: /* @__PURE__ */ q(ee, {
519
- bridgeUrl: b?.url,
520
- bridgeAllowedOrigins: b?.allowedOrigins,
521
- bridgeDebug: b?.debug,
522
- onRefreshToken: X,
524
+ children: /* @__PURE__ */ q(h, {
525
+ bridgeUrl: x?.url,
526
+ bridgeAllowedOrigins: x?.allowedOrigins,
527
+ bridgeDebug: x?.debug,
528
+ onRefreshToken: Z,
523
529
  onBridgeReady: () => {
524
530
  z.current = !1;
525
531
  },
@@ -529,21 +535,22 @@ function Ne({ config: e, children: r, clearAuthStore: i }) {
529
535
  onTokenExpired: () => {
530
536
  B();
531
537
  },
532
- children: /* @__PURE__ */ q(te, {
538
+ children: /* @__PURE__ */ q(ee, {
533
539
  syncToUrl: !0,
534
- children: /* @__PURE__ */ q(oe, { children: /* @__PURE__ */ q(Oe, {
535
- i18nProductId: v,
536
- fallbackTranslations: k,
537
- defaultBrand: ae,
538
- defaultMode: x,
539
- defaultDensity: S,
540
- defaultTypography: C,
541
- defaultGlass: w,
540
+ children: /* @__PURE__ */ q(ie, { children: /* @__PURE__ */ q(ke, {
541
+ i18nProductId: y,
542
+ fallbackTranslations: O,
543
+ defaultBrand: S,
544
+ defaultMode: C,
545
+ defaultDensity: w,
546
+ defaultTypography: T,
547
+ defaultGlass: se,
542
548
  productName: o,
543
549
  brandInitial: E,
544
- enablePWA: T,
545
- toasterPosition: j,
546
- tourPageIdFromPath: F,
550
+ enablePWA: ce,
551
+ toasterPosition: A,
552
+ tourPageIdFromPath: P,
553
+ enableWorkspaceTourPermissions: F,
547
554
  children: r
548
555
  }) })
549
556
  })
@@ -555,4 +562,4 @@ function Ne({ config: e, children: r, clearAuthStore: i }) {
555
562
  });
556
563
  }
557
564
  //#endregion
558
- export { Ne as AppShellProvider, Q as resolveAppShellObservabilityConfig };
565
+ export { Pe as AppShellProvider, Ce as resolveAppShellObservabilityConfig };
@@ -1 +1 @@
1
- {"version":3,"file":"MultiGatewayProvider.d.ts","sourceRoot":"","sources":["../../../../src/shared/providers/shell/MultiGatewayProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAA2C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIhF,OAAO,EAAuB,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAMzE,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,SAAS,CAAC;IACpB,qCAAqC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kCAAkC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kEAAkE;IAClE,cAAc,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;IACrC,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qEAAqE;IACrE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,2BAA2B;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,yCAAyC;IACzC,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACxC,+CAA+C;IAC/C,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CACzC;AAED,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,WAAW,EACX,cAA4B,EAC5B,KAAa,EACb,mBAA2B,EAC3B,WAAW,EACX,cAAc,EACd,cAAc,GACf,EAAE,yBAAyB,2CAoS3B"}
1
+ {"version":3,"file":"MultiGatewayProvider.d.ts","sourceRoot":"","sources":["../../../../src/shared/providers/shell/MultiGatewayProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAA2C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIhF,OAAO,EAAuB,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAMzE,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,SAAS,CAAC;IACpB,qCAAqC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kCAAkC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kEAAkE;IAClE,cAAc,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;IACrC,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qEAAqE;IACrE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,2BAA2B;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,yCAAyC;IACzC,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACxC,+CAA+C;IAC/C,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CACzC;AAED,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,WAAW,EACX,cAA4B,EAC5B,KAAa,EACb,mBAA2B,EAC3B,WAAW,EACX,cAAc,EACd,cAAc,GACf,EAAE,yBAAyB,2CA0S3B"}
@@ -78,6 +78,9 @@ function d({ children: d, workspaceBaseUrl: f, globalBaseUrl: p, organizationId:
78
78
  gateway: "global",
79
79
  baseUrl: p,
80
80
  authToken: S,
81
+ workspaceToken: C,
82
+ workspaceId: j,
83
+ projectId: M,
81
84
  organizationId: m,
82
85
  productSlug: h,
83
86
  locale: k,
@@ -91,6 +94,9 @@ function d({ children: d, workspaceBaseUrl: f, globalBaseUrl: p, organizationId:
91
94
  }), [
92
95
  p,
93
96
  S,
97
+ C,
98
+ j,
99
+ M,
94
100
  m,
95
101
  h,
96
102
  k,
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ /** Opt-in only: shells without workspace-targeted tours make no extra RBAC requests. */
3
+ export declare function TourPermissionsBoundary({ enabled, children, }: {
4
+ enabled?: boolean;
5
+ children: ReactNode;
6
+ }): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
7
+ //# sourceMappingURL=TourPermissionsBoundary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TourPermissionsBoundary.d.ts","sourceRoot":"","sources":["../../../src/shared/tours/TourPermissionsBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAavC,wFAAwF;AACxF,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,QAAQ,GACT,EAAE;IACD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;CACrB,2UAEA"}
@@ -0,0 +1,17 @@
1
+ import { useActiveContext as e } from "../providers/shell/ActiveContextProvider.js";
2
+ import { PermissionProvider as t } from "../providers/shell/PermissionProvider.js";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ //#region src/shared/tours/TourPermissionsBoundary.tsx
5
+ function r({ children: r }) {
6
+ let { workspaceId: i } = e();
7
+ return /* @__PURE__ */ n(t, {
8
+ scopeId: i ?? null,
9
+ gateway: "workspace",
10
+ children: r
11
+ });
12
+ }
13
+ function i({ enabled: e, children: t }) {
14
+ return e ? /* @__PURE__ */ n(r, { children: t }) : t;
15
+ }
16
+ //#endregion
17
+ export { i as TourPermissionsBoundary };
@@ -3,7 +3,7 @@ import { TourPlayerContextValue, TourPlayerProviderProps } from './types';
3
3
  * TourPlayerProvider Component
4
4
  * Provides tour player context and renders the tour UI overlay
5
5
  */
6
- export declare function TourPlayerProvider({ children, onTourStart, onTourComplete, onTourSkip, onStepChange, onStepComplete, zIndex, }: TourPlayerProviderProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function TourPlayerProvider({ children, scopeKey, onTourStart, onTourComplete, onTourSkip, onStepChange, onStepComplete, zIndex, }: TourPlayerProviderProps): import("react/jsx-runtime").JSX.Element;
7
7
  /**
8
8
  * Hook to access tour player context
9
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TourPlayerProvider.d.ts","sourceRoot":"","sources":["../../../src/shared/tours/TourPlayerProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAK/E;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,WAAW,EACX,cAAc,EACd,UAAU,EACV,YAAY,EACZ,cAAc,EACd,MAAa,GACd,EAAE,uBAAuB,2CAwEzB;AAqDD;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,sBAAsB,CAM7D;AAED;;GAEG;AACH,wBAAgB,YAAY,2CAG3B;AAED;;GAEG;AACH,wBAAgB,WAAW,eAG1B;AAED;;GAEG;AACH,wBAAgB,gBAAgB;;;EAG/B"}
1
+ {"version":3,"file":"TourPlayerProvider.d.ts","sourceRoot":"","sources":["../../../src/shared/tours/TourPlayerProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAK/E;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,cAAc,EACd,UAAU,EACV,YAAY,EACZ,cAAc,EACd,MAAa,GACd,EAAE,uBAAuB,2CAyEzB;AAqDD;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,sBAAsB,CAM7D;AAED;;GAEG;AACH,wBAAgB,YAAY,2CAG3B;AAED;;GAEG;AACH,wBAAgB,WAAW,eAG1B;AAED;;GAEG;AACH,wBAAgB,gBAAgB;;;EAG/B"}