@burdenoff/fe-libs 2026.928.1 → 2026.928.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/chrome/SideNavigation.d.ts.map +1 -1
- package/dist/chrome/SideNavigation.js +71 -68
- package/dist/chrome/sideNavigation/sideNavEscape.d.ts +41 -0
- package/dist/chrome/sideNavigation/sideNavEscape.d.ts.map +1 -0
- package/dist/chrome/sideNavigation/sideNavEscape.js +8 -0
- package/dist/chrome/sideNavigation/useSideNavigationState.d.ts +8 -1
- package/dist/chrome/sideNavigation/useSideNavigationState.d.ts.map +1 -1
- package/dist/chrome/sideNavigation/useSideNavigationState.js +35 -23
- package/dist/shared/assistant/ui/AIAssistantPanel.d.ts.map +1 -1
- package/dist/shared/assistant/ui/AIAssistantPanel.js +82 -79
- package/dist/shared/assistant/ui/AssistantOverlay.d.ts.map +1 -1
- package/dist/shared/assistant/ui/AssistantOverlay.js +86 -84
- package/dist/shared/assistant/ui/assistantOverlayState.d.ts +31 -8
- package/dist/shared/assistant/ui/assistantOverlayState.d.ts.map +1 -1
- package/dist/shared/assistant/ui/assistantOverlayState.js +22 -16
- package/dist/shared/assistant/ui/panelOverlays.d.ts +31 -0
- package/dist/shared/assistant/ui/panelOverlays.d.ts.map +1 -1
- package/dist/shared/assistant/ui/panelOverlays.js +11 -8
- package/dist/shared/assistant/ui/voice/AssistantVoiceSession.d.ts.map +1 -1
- package/dist/shared/assistant/ui/voice/AssistantVoiceSession.js +78 -74
- package/dist/shared/assistant/ui/voice/VoiceTranscriptDrawer.d.ts.map +1 -1
- package/dist/shared/assistant/ui/voice/VoiceTranscriptDrawer.js +40 -39
- package/dist/shared/assistant/ui/voice/voiceSessionEscape.d.ts.map +1 -1
- package/dist/shared/assistant/ui/voice/voiceSessionEscape.js +7 -10
- package/dist/shared/assistant/useAssistantKeyboardShortcuts.d.ts +3 -1
- package/dist/shared/assistant/useAssistantKeyboardShortcuts.d.ts.map +1 -1
- package/dist/shared/assistant/useAssistantKeyboardShortcuts.js +25 -25
- package/dist/shared/graphql/fetch.d.ts +12 -1
- package/dist/shared/graphql/fetch.d.ts.map +1 -1
- package/dist/shared/graphql/fetch.js +101 -80
- package/dist/shared/hooks/index.d.ts +1 -0
- package/dist/shared/hooks/index.d.ts.map +1 -1
- package/dist/shared/hooks/useReturnFocus.d.ts +56 -0
- package/dist/shared/hooks/useReturnFocus.d.ts.map +1 -0
- package/dist/shared/hooks/useReturnFocus.js +41 -0
- package/dist/shared/providers/AppShellProvider.d.ts +12 -1
- package/dist/shared/providers/AppShellProvider.d.ts.map +1 -1
- package/dist/shared/providers/AppShellProvider.js +175 -161
- package/dist/shared/providers/shell/ActiveContextProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/ActiveContextProvider.js +28 -26
- package/dist/shared/providers/shell/PersonaSurfaceProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/PersonaSurfaceProvider.js +165 -193
- package/dist/shared/providers/shell/personaSurfaceRemote.d.ts +8 -2
- package/dist/shared/providers/shell/personaSurfaceRemote.d.ts.map +1 -1
- package/dist/shared/providers/shell/personaSurfaceRemote.js +37 -15
- package/dist/shared/providers/shell/useRemoteNavPreferences.d.ts +30 -0
- package/dist/shared/providers/shell/useRemoteNavPreferences.d.ts.map +1 -0
- package/dist/shared/providers/shell/useRemoteNavPreferences.js +43 -0
- package/dist/shared-assistant.js +76 -76
- package/dist/shared-hooks.js +34 -33
- package/dist/shared.js +89 -88
- package/dist/ui/modal-shell.d.ts.map +1 -1
- package/dist/ui/modal-shell.js +23 -13
- package/package.json +2 -2
|
@@ -16,32 +16,32 @@ import { PWAInstallBanner as _ } from "../components/PWAInstallBanner.js";
|
|
|
16
16
|
import { FeatureFlagsProvider as v } from "./shell/FeatureFlagsProvider.js";
|
|
17
17
|
import { FeatureFlagProvider as y } from "../feature-flags/FeatureFlagProvider.js";
|
|
18
18
|
import { GlobalUiProvider as b } from "./shell/GlobalUiProvider.js";
|
|
19
|
-
import { ShellUiProvider as
|
|
20
|
-
import { ContextManagerProvider as
|
|
21
|
-
import { AuthTokenProvider as
|
|
22
|
-
import { MultiGatewayProvider as
|
|
23
|
-
import { G as
|
|
24
|
-
import { ProfileI18nBridge as
|
|
25
|
-
import { ProfileGeographyBridge as
|
|
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 { TourPlayerProvider as
|
|
36
|
-
import { ToursProvider as
|
|
37
|
-
import { TourInitializer as
|
|
38
|
-
import { Suspense as
|
|
39
|
-
import { Fragment as
|
|
40
|
-
import { BrowserRouter as
|
|
41
|
-
import { Toaster as
|
|
42
|
-
import { MutationCache as
|
|
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";
|
|
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";
|
|
35
|
+
import { TourPlayerProvider as L } from "../tours/TourPlayerProvider.js";
|
|
36
|
+
import { ToursProvider as R, useToursContext as z } from "../tours/ToursContext.js";
|
|
37
|
+
import { TourInitializer as B } from "../tours/TourInitializer.js";
|
|
38
|
+
import { Suspense as V, useCallback as H, useEffect as U, useMemo as W, useRef as G } from "react";
|
|
39
|
+
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";
|
|
42
|
+
import { MutationCache as fe, QueryCache as pe, QueryClient as me, QueryClientProvider as he } from "@tanstack/react-query";
|
|
43
43
|
//#region src/shared/providers/AppShellProvider.tsx
|
|
44
|
-
var
|
|
44
|
+
var Z = {
|
|
45
45
|
artistrybase: { prod: "cfbecacb6002" },
|
|
46
46
|
atheletebridge: { prod: "c34c6ead7aa8" },
|
|
47
47
|
adaptercloud: {},
|
|
@@ -67,8 +67,21 @@ var X = {
|
|
|
67
67
|
subscriberbot: {},
|
|
68
68
|
intelwatchtower: {},
|
|
69
69
|
kadaikodi: {}
|
|
70
|
-
},
|
|
71
|
-
|
|
70
|
+
}, ge = /* @__PURE__ */ "nav.route.changed,auth.signed_in,auth.signed_out,support.ticket.created,support.ticket.closed,support.ticket.reopened,support.kb.article_rated,conversations.conversation.created,conversations.conversation.archived,notification.item.opened,notification.preference.updated,notification.admin.sent,notification.template.saved,notification.schedule.updated,collabkin.tree.created,collabkin.person.created,collabkin.memory.created,collabkin.story.created,collabkin.member.invited,crewfoundry.page.viewed,crewfoundry.dashboard.viewed,crewfoundry.job_posting.created,crewfoundry.candidate.created,crewfoundry.employee.created,crewfoundry.team.created,crewfoundry.project.created,crewfoundry.course.enrolled,crewfoundry.learning_path.created,crewfoundry.service.listed,crewfoundry.leave.approved,crewfoundry.payroll.processed,crewfoundry.invoice.created,coolandlovely.page.viewed,coolandlovely.brand.created,coolandlovely.collection.created,coolandlovely.style_item.created,coolandlovely.look.created,coolandlovely.collaboration.created,coolandlovely.lookbook.created,coolandlovely.wardrobe.item_added,coolandlovely.search.performed,vibecontrols.agent.registered,atheletebridge.page.viewed,atheletebridge.team.created,atheletebridge.fixture.created,atheletebridge.program.created,atheletebridge.session.completed,atheletebridge.metric.logged,atheletebridge.tournament.created,vibecontrols.agent.gateway_auth_setup,vibecontrols.session.created,vibecontrols.session.started,vibecontrols.session.terminal_opened_in_browser,vibecontrols.session.share_link_created,vibecontrols.session.joined_shared,vibecontrols.tunnel.created,vibecontrols.tunnel.started,vibecontrols.vibedeck.button_executed,vibecontrols.quota.agent_limit_hit,vibecontrols.quota.session_limit_hit,vibecontrols.quota.tunnel_limit_hit,vibecontrols.billing.upgrade_clicked,bigconsole.dashboard.import_clicked,bigconsole.dashboard.imported,bigconsole.dashboard.share_clicked,bigconsole.dashboard.shared,bigconsole.data_sink.import_clicked,bigconsole.data_sink.imported,bigconsole.widget.create_clicked,bigconsole.widget.created,bigconsole.widget.duplicate_clicked,bigconsole.widget.duplicated,bigconsole.ai.generate_clicked,bigconsole.ai.dashboard_generated,bigconsole.ai.create_dashboard_clicked,bigconsole.ai.dashboard_created,assethandler.page.viewed,assethandler.asset.viewed,assethandler.asset.created,assethandler.work_order.viewed,assethandler.work_order.created,assethandler.incident.viewed,assethandler.incident.created,assethandler.change.viewed,assethandler.change.created,assethandler.problem.viewed,assethandler.problem.created,assethandler.maintenance.viewed,assethandler.maintenance.created,assethandler.report.viewed,assethandler.analytics.viewed,movethewheels.page.viewed,movethewheels.shipment.created,movethewheels.shipment.delivered,movethewheels.order.created,movethewheels.route.planned,movethewheels.vehicle.assigned,movethewheels.warehouse.inbound_received,theglobalfuel.dashboard.viewed,theglobalfuel.asset.created,theglobalfuel.production.recorded,theglobalfuel.reserve.created,theglobalfuel.contract.created,theglobalfuel.shipment.scheduled,theglobalfuel.shipment.delivered,theglobalfuel.inventory_lot.created,theglobalfuel.emission.recorded,theglobalfuel.emission.verified,theglobalfuel.compliance_cert.created,housingvista.dashboard.viewed,housingvista.property.created,housingvista.property.updated,housingvista.property.deleted,housingvista.property.viewed,housingvista.shortlist.property_added,housingvista.transaction.created,housingvista.transaction.updated,housingvista.investment.created,housingvista.offer.created,housingvista.viewing.scheduled,housingvista.chat.conversation_opened,housingvista.chat.message_sent,housingvista.analytics.viewed,housingvista.asset.created,housingvista.asset.updated,housingvista.amc.purchased,housingvista.verification.submitted,housingvista.home_loan.apply_clicked,housingvista.market_analytics.viewed,housingvista.search.performed,housingvista.export.requested,manufacturedops.production_order.created,manufacturedops.production_order.updated,manufacturedops.production_order.transitioned,manufacturedops.operation.added,manufacturedops.operation.recorded,manufacturedops.work_center.created,manufacturedops.work_center.updated,manufacturedops.work_center.archived,manufacturedops.material_lot.created,manufacturedops.material_lot.updated,manufacturedops.material_lot.status_updated,manufacturedops.inspection_plan.created,manufacturedops.quality_inspection.recorded,manufacturedops.non_conformance.raised,manufacturedops.non_conformance.updated,manufacturedops.non_conformance.transitioned,manufacturedops.asset.created,manufacturedops.maintenance_work_order.created,manufacturedops.maintenance_work_order.transitioned,manufacturedops.downtime_event.recorded,manufacturedops.page.viewed,subscriberbot.page.viewed,adaptercloud.page.viewed,comradecircle.page.viewed,comradecircle.circle.created,comradecircle.post.created,comradecircle.event.created,comradecircle.member.invited,psw.client.created,psw.client.updated,psw.client.archived,psw.engagement.created,psw.engagement.transitioned,psw.matter.created,psw.matter.closed,psw.timeentry.created,psw.invoice.created,psw.compliance.resolved,psw.conflictcheck.recorded,psw.document.created,psw.practicearea.created,psw.search.performed,psw.export.requested,mybodyshield.page.viewed,mybodyshield.program.created,mybodyshield.program.updated,mybodyshield.program.status_changed,mybodyshield.program.archived,mybodyshield.workout.created,mybodyshield.exercise.created,mybodyshield.session.started,intelwatchtower.page.viewed,intelwatchtower.source.created,intelwatchtower.mission.created,intelwatchtower.mission.assigned,intelwatchtower.mission.completed,intelwatchtower.entity.created,intelwatchtower.entity.linked,intelwatchtower.indicator.created,intelwatchtower.observation.created,intelwatchtower.requirement.created,intelwatchtower.alert.created,intelwatchtower.alert.triaged,intelwatchtower.alert.escalated,intelwatchtower.case.created,intelwatchtower.case.closed,intelwatchtower.report.created,intelwatchtower.report.exported,intelwatchtower.task.created,intelwatchtower.task.completed,intelwatchtower.cop.opened,govcitizenhub.page.viewed,govcitizenhub.dashboard.viewed,govcitizenhub.service.published,govcitizenhub.application.submitted,govcitizenhub.application.decided,govcitizenhub.permit.issued,govcitizenhub.payment.settled,govcitizenhub.grievance.reported,govcitizenhub.grievance.resolved,govcitizenhub.search.performed,cosmicintersection.page.viewed,labsofscience.page.viewed,labsofscience.project.created,labsofscience.experiment.created,labsofscience.protocol.created,labsofscience.dataset.created,labsofscience.inventory_item.created,labsofscience.notebook_entry.signed,labsofscience.pipeline.run_started,hookmovies.page.viewed,headshotmarketing.page.viewed,timecampus.page.viewed,timecampus.dashboard.viewed,timecampus.timer.started,timecampus.timer.stopped,timecampus.time_entry.created,timecampus.timesheet.submitted,timecampus.report.viewed,timecampus.project.viewed,timecampus.meeting.created,timecampus.pomodoro.session.completed,timecampus.focus_score.viewed,kadaikodi.page.viewed,healthybowl.farm.created,healthybowl.crop.created,healthybowl.crop.updated,healthybowl.harvest.recorded,workspaces.page.viewed,workspace.created,project.created,workspace-member.added,project-member.added".split(","), _e = {
|
|
71
|
+
"--success-bg": "var(--color-status-success-bgSubtle)",
|
|
72
|
+
"--success-border": "var(--color-status-success-border)",
|
|
73
|
+
"--success-text": "var(--color-status-success-text)",
|
|
74
|
+
"--info-bg": "var(--color-status-info-bgSubtle)",
|
|
75
|
+
"--info-border": "var(--color-status-info-border)",
|
|
76
|
+
"--info-text": "var(--color-status-info-text)",
|
|
77
|
+
"--warning-bg": "var(--color-status-warning-bgSubtle)",
|
|
78
|
+
"--warning-border": "var(--color-status-warning-border)",
|
|
79
|
+
"--warning-text": "var(--color-status-warning-text)",
|
|
80
|
+
"--error-bg": "var(--color-status-error-bgSubtle)",
|
|
81
|
+
"--error-border": "var(--color-status-error-border)",
|
|
82
|
+
"--error-text": "var(--color-status-error-text)"
|
|
83
|
+
}, ve = 4e3;
|
|
84
|
+
function ye(e) {
|
|
72
85
|
let t = e.technicalMessage ?? e.extensions?.technicalMessage, n = {
|
|
73
86
|
code: e.code,
|
|
74
87
|
operationName: e.operationName,
|
|
@@ -80,13 +93,13 @@ function ve(e) {
|
|
|
80
93
|
};
|
|
81
94
|
console.error("[Burdenoff backend error]", e.message, n);
|
|
82
95
|
}
|
|
83
|
-
function
|
|
96
|
+
function be(e) {
|
|
84
97
|
return e === "prod" || e === "production" ? "prod" : e === "alpha" || e === "staging" ? "alpha" : "dev";
|
|
85
98
|
}
|
|
86
|
-
function
|
|
99
|
+
function xe(e, t) {
|
|
87
100
|
return e.VITE_DISABLE_ANALYTICS === "true" ? !1 : e.VITE_ENABLE_ANALYTICS === "true" || e.PROD || t !== "dev" ? !0 : e.VITE_ENABLE_ANALYTICS !== "false";
|
|
88
101
|
}
|
|
89
|
-
function
|
|
102
|
+
function Se() {
|
|
90
103
|
return {
|
|
91
104
|
BASE_URL: "/",
|
|
92
105
|
DEV: !1,
|
|
@@ -96,7 +109,7 @@ function xe() {
|
|
|
96
109
|
};
|
|
97
110
|
}
|
|
98
111
|
function Q(t, n) {
|
|
99
|
-
let r =
|
|
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);
|
|
100
113
|
return {
|
|
101
114
|
enabled: i,
|
|
102
115
|
appVersion: n.VITE_APP_VERSION || "0.0.0",
|
|
@@ -107,7 +120,7 @@ function Q(t, n) {
|
|
|
107
120
|
enabled: i && !!s,
|
|
108
121
|
siteId: s,
|
|
109
122
|
scriptUrl: n.VITE_RYBBIT_SCRIPT_URL,
|
|
110
|
-
allowlist:
|
|
123
|
+
allowlist: ge,
|
|
111
124
|
identifyOn: "auth.signed_in",
|
|
112
125
|
rename: { "nav.route.changed": "pageview" }
|
|
113
126
|
},
|
|
@@ -122,16 +135,16 @@ function Q(t, n) {
|
|
|
122
135
|
}
|
|
123
136
|
};
|
|
124
137
|
}
|
|
125
|
-
function
|
|
126
|
-
let { trackProgress: a, recordStepCompletion: o, trackEvent: s } =
|
|
127
|
-
return /* @__PURE__ */
|
|
128
|
-
onTourStart:
|
|
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], []);
|
|
140
|
+
return /* @__PURE__ */ J(L, {
|
|
141
|
+
onTourStart: H((e) => {
|
|
129
142
|
a(e.id, "started"), s("TOUR_STARTED", e.id);
|
|
130
143
|
}, [s, a]),
|
|
131
|
-
onTourComplete:
|
|
144
|
+
onTourComplete: H((e) => {
|
|
132
145
|
a(e.id, "completed"), s("TOUR_COMPLETED", e.id);
|
|
133
146
|
}, [s, a]),
|
|
134
|
-
onTourSkip:
|
|
147
|
+
onTourSkip: H((e, t) => {
|
|
135
148
|
let n = c(e, t);
|
|
136
149
|
a(e.id, "skipped"), s("TOUR_SKIPPED", e.id, {
|
|
137
150
|
stepId: n?.id,
|
|
@@ -142,14 +155,14 @@ function Se({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
|
|
|
142
155
|
s,
|
|
143
156
|
a
|
|
144
157
|
]),
|
|
145
|
-
onStepChange:
|
|
158
|
+
onStepChange: H((e, t) => {
|
|
146
159
|
let n = c(e, t);
|
|
147
160
|
n && s("STEP_VIEWED", e.id, {
|
|
148
161
|
stepId: n.id,
|
|
149
162
|
stepOrder: n.stepOrder
|
|
150
163
|
});
|
|
151
164
|
}, [c, s]),
|
|
152
|
-
onStepComplete:
|
|
165
|
+
onStepComplete: H((e, t) => {
|
|
153
166
|
let n = c(e, t);
|
|
154
167
|
n && (o(e.id, n.id), s("STEP_COMPLETED", e.id, {
|
|
155
168
|
stepId: n.id,
|
|
@@ -161,19 +174,20 @@ function Se({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
|
|
|
161
174
|
s
|
|
162
175
|
]),
|
|
163
176
|
children: [
|
|
164
|
-
/* @__PURE__ */
|
|
177
|
+
/* @__PURE__ */ q(B, {}),
|
|
165
178
|
e,
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ q(we, {}),
|
|
180
|
+
/* @__PURE__ */ q(Ee, {}),
|
|
181
|
+
/* @__PURE__ */ q(de, {
|
|
169
182
|
position: n,
|
|
170
183
|
richColors: !0,
|
|
171
|
-
closeButton: !0
|
|
184
|
+
closeButton: !0,
|
|
185
|
+
style: _e
|
|
172
186
|
}),
|
|
173
|
-
/* @__PURE__ */
|
|
174
|
-
t && /* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ q(D, {}),
|
|
188
|
+
t && /* @__PURE__ */ q(V, {
|
|
175
189
|
fallback: null,
|
|
176
|
-
children: /* @__PURE__ */
|
|
190
|
+
children: /* @__PURE__ */ q(_, {
|
|
177
191
|
productName: r,
|
|
178
192
|
brandInitial: i
|
|
179
193
|
})
|
|
@@ -181,44 +195,44 @@ function Se({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
|
|
|
181
195
|
]
|
|
182
196
|
});
|
|
183
197
|
}
|
|
184
|
-
function
|
|
185
|
-
let e =
|
|
186
|
-
return
|
|
198
|
+
function we() {
|
|
199
|
+
let e = G(null);
|
|
200
|
+
return U(() => {
|
|
187
201
|
let t = (t) => {
|
|
188
202
|
let n = t instanceof CustomEvent && o(t.detail) ? t.detail : null;
|
|
189
203
|
if (!s(n)) return;
|
|
190
|
-
|
|
204
|
+
ye(n);
|
|
191
205
|
let r = `${n.code ?? ""}|${n.message}`, i = Date.now(), a = e.current;
|
|
192
|
-
a?.key === r && i - a.shownAt <
|
|
206
|
+
a?.key === r && i - a.shownAt < ve || (e.current = {
|
|
193
207
|
key: r,
|
|
194
208
|
shownAt: i
|
|
195
|
-
},
|
|
209
|
+
}, X.error(n.message, { duration: 7e3 }));
|
|
196
210
|
};
|
|
197
211
|
return window.addEventListener(r, t), () => window.removeEventListener(r, t);
|
|
198
212
|
}, []), null;
|
|
199
213
|
}
|
|
200
|
-
var $ = "burdenoff-connection-status",
|
|
201
|
-
function
|
|
202
|
-
let e =
|
|
203
|
-
return
|
|
214
|
+
var $ = "burdenoff-connection-status", Te = 1500;
|
|
215
|
+
function Ee() {
|
|
216
|
+
let e = G(null), t = G(!1);
|
|
217
|
+
return U(() => {
|
|
204
218
|
let n = () => {
|
|
205
|
-
t.current || (t.current = !0,
|
|
219
|
+
t.current || (t.current = !0, X.error("Connection lost. Trying to reconnect…", {
|
|
206
220
|
id: $,
|
|
207
221
|
duration: Infinity
|
|
208
222
|
}));
|
|
209
223
|
}, r = () => {
|
|
210
224
|
t.current || e.current || (e.current = setTimeout(() => {
|
|
211
225
|
e.current = null, n();
|
|
212
|
-
},
|
|
226
|
+
}, Te));
|
|
213
227
|
}, a = (n) => {
|
|
214
228
|
if (e.current &&= (clearTimeout(e.current), null), !t.current) {
|
|
215
|
-
|
|
229
|
+
X.dismiss($);
|
|
216
230
|
return;
|
|
217
231
|
}
|
|
218
|
-
t.current = !1, n ?
|
|
232
|
+
t.current = !1, n ? X.success("Back online", {
|
|
219
233
|
id: $,
|
|
220
234
|
duration: 2500
|
|
221
|
-
}) :
|
|
235
|
+
}) : X.dismiss($);
|
|
222
236
|
}, o = (e) => {
|
|
223
237
|
if (!(e instanceof CustomEvent)) return;
|
|
224
238
|
let t = e.detail;
|
|
@@ -231,47 +245,47 @@ function Te() {
|
|
|
231
245
|
};
|
|
232
246
|
}, []), null;
|
|
233
247
|
}
|
|
234
|
-
function
|
|
235
|
-
return
|
|
248
|
+
function De() {
|
|
249
|
+
return I(), null;
|
|
236
250
|
}
|
|
237
|
-
function
|
|
238
|
-
let p =
|
|
239
|
-
|
|
240
|
-
let m = /* @__PURE__ */
|
|
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, {
|
|
241
255
|
workspaceId: null,
|
|
242
256
|
gateway: "global",
|
|
243
257
|
defaultEnabled: !0,
|
|
244
|
-
children: /* @__PURE__ */
|
|
258
|
+
children: /* @__PURE__ */ q(b, { children: /* @__PURE__ */ q(ae, { children: /* @__PURE__ */ q(g, {
|
|
245
259
|
fallback: null,
|
|
246
|
-
children: /* @__PURE__ */
|
|
260
|
+
children: /* @__PURE__ */ q(R, {
|
|
247
261
|
disabled: p.pathname.startsWith("/devportal") || p.pathname.startsWith("/organizations") || p.pathname.startsWith("/workspaces"),
|
|
248
262
|
getPageIdFromPath: f,
|
|
249
|
-
children: /* @__PURE__ */
|
|
263
|
+
children: /* @__PURE__ */ J(Ce, {
|
|
250
264
|
enablePWA: u,
|
|
251
265
|
toasterPosition: d,
|
|
252
266
|
productName: c,
|
|
253
267
|
brandInitial: l,
|
|
254
|
-
children: [/* @__PURE__ */
|
|
268
|
+
children: [/* @__PURE__ */ q(De, {}), e]
|
|
255
269
|
})
|
|
256
270
|
})
|
|
257
271
|
}) }) })
|
|
258
272
|
}) }) });
|
|
259
|
-
return /* @__PURE__ */
|
|
273
|
+
return /* @__PURE__ */ J(h, {
|
|
260
274
|
defaultBrand: r,
|
|
261
275
|
defaultMode: i,
|
|
262
276
|
defaultDensity: a,
|
|
263
277
|
defaultTypography: o,
|
|
264
278
|
defaultGlass: s,
|
|
265
|
-
children: [/* @__PURE__ */
|
|
279
|
+
children: [/* @__PURE__ */ q(ke, {}), /* @__PURE__ */ q(T, {
|
|
266
280
|
i18nProductId: t,
|
|
267
281
|
fallbackTranslations: n,
|
|
268
282
|
children: m
|
|
269
283
|
})]
|
|
270
284
|
});
|
|
271
285
|
}
|
|
272
|
-
function
|
|
273
|
-
let e =
|
|
274
|
-
return
|
|
286
|
+
function ke() {
|
|
287
|
+
let e = Y();
|
|
288
|
+
return U(() => {
|
|
275
289
|
e.hash || requestAnimationFrame(() => {
|
|
276
290
|
window.scrollTo({
|
|
277
291
|
top: 0,
|
|
@@ -289,7 +303,7 @@ function Oe() {
|
|
|
289
303
|
e.hash
|
|
290
304
|
]), null;
|
|
291
305
|
}
|
|
292
|
-
function
|
|
306
|
+
function Ae(e) {
|
|
293
307
|
if (e instanceof Error) return e.message;
|
|
294
308
|
if (typeof e == "string") return e;
|
|
295
309
|
try {
|
|
@@ -298,9 +312,9 @@ function ke(e) {
|
|
|
298
312
|
return String(e);
|
|
299
313
|
}
|
|
300
314
|
}
|
|
301
|
-
function
|
|
302
|
-
let e =
|
|
303
|
-
return
|
|
315
|
+
function je() {
|
|
316
|
+
let e = P(), t = Y(), n = G(void 0), r = G(void 0), i = G(null);
|
|
317
|
+
return U(() => {
|
|
304
318
|
let a = `${t.pathname}${t.search}${t.hash}`;
|
|
305
319
|
if (r.current !== a) return i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
306
320
|
i.current = null;
|
|
@@ -320,7 +334,7 @@ function Ae() {
|
|
|
320
334
|
t.hash,
|
|
321
335
|
t.pathname,
|
|
322
336
|
t.search
|
|
323
|
-
]),
|
|
337
|
+
]), U(() => {
|
|
324
338
|
let t = (t) => {
|
|
325
339
|
e.emit("error.runtime.caught", {
|
|
326
340
|
message: t.message || "Runtime error",
|
|
@@ -330,34 +344,34 @@ function Ae() {
|
|
|
330
344
|
errorName: t.error instanceof Error ? t.error.name : void 0
|
|
331
345
|
});
|
|
332
346
|
}, n = (t) => {
|
|
333
|
-
e.emit("error.unhandledrejection", { reason:
|
|
347
|
+
e.emit("error.unhandledrejection", { reason: Ae(t.reason) });
|
|
334
348
|
};
|
|
335
349
|
return window.addEventListener("error", t), window.addEventListener("unhandledrejection", n), () => {
|
|
336
350
|
window.removeEventListener("error", t), window.removeEventListener("unhandledrejection", n);
|
|
337
351
|
};
|
|
338
|
-
}, [e]),
|
|
339
|
-
|
|
352
|
+
}, [e]), U(() => {
|
|
353
|
+
x((t) => {
|
|
340
354
|
e.emit("perf.lcp.measured", {
|
|
341
355
|
metric: "LCP",
|
|
342
356
|
value: t.value,
|
|
343
357
|
id: t.id,
|
|
344
358
|
rating: t.rating
|
|
345
359
|
});
|
|
346
|
-
}),
|
|
360
|
+
}), w((t) => {
|
|
347
361
|
e.emit("perf.cls.measured", {
|
|
348
362
|
metric: "CLS",
|
|
349
363
|
value: t.value,
|
|
350
364
|
id: t.id,
|
|
351
365
|
rating: t.rating
|
|
352
366
|
});
|
|
353
|
-
}),
|
|
367
|
+
}), C((t) => {
|
|
354
368
|
e.emit("perf.inp.measured", {
|
|
355
369
|
metric: "INP",
|
|
356
370
|
value: t.value,
|
|
357
371
|
id: t.id,
|
|
358
372
|
rating: t.rating
|
|
359
373
|
});
|
|
360
|
-
}),
|
|
374
|
+
}), S((t) => {
|
|
361
375
|
e.emit("perf.ttfb.measured", {
|
|
362
376
|
metric: "TTFB",
|
|
363
377
|
value: t.value,
|
|
@@ -367,23 +381,23 @@ function Ae() {
|
|
|
367
381
|
});
|
|
368
382
|
}, [e]), null;
|
|
369
383
|
}
|
|
370
|
-
function
|
|
371
|
-
let { pathname: a } =
|
|
372
|
-
return /* @__PURE__ */ K
|
|
373
|
-
/* @__PURE__ */
|
|
374
|
-
r && !o ? /* @__PURE__ */
|
|
375
|
-
e.enabled === !1 ? null : /* @__PURE__ */ K
|
|
376
|
-
e.devtools ? /* @__PURE__ */
|
|
377
|
-
e.broadcast === !1 ? null : /* @__PURE__ */
|
|
378
|
-
e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */
|
|
379
|
-
e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */
|
|
384
|
+
function Me({ config: e, productSlug: n, privacyConsent: r, consentRouteDenylist: i }) {
|
|
385
|
+
let { pathname: a } = Y(), o = t(a) || i?.(a) === !0;
|
|
386
|
+
return /* @__PURE__ */ J(K, { children: [
|
|
387
|
+
/* @__PURE__ */ q(je, {}),
|
|
388
|
+
r && !o ? /* @__PURE__ */ q(j, { productName: n }) : null,
|
|
389
|
+
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, {
|
|
380
394
|
siteId: e.rybbit.siteId,
|
|
381
395
|
scriptUrl: e.rybbit.scriptUrl,
|
|
382
396
|
allowlist: e.rybbit.allowlist,
|
|
383
397
|
identifyOn: e.rybbit.identifyOn,
|
|
384
398
|
rename: e.rybbit.rename
|
|
385
399
|
}) : null,
|
|
386
|
-
e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */
|
|
400
|
+
e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ q(N, {
|
|
387
401
|
endpoint: e.otel.endpoint,
|
|
388
402
|
serviceName: e.otel.serviceName ?? `${n}-app`,
|
|
389
403
|
flushInterval: e.otel.flushInterval
|
|
@@ -391,20 +405,20 @@ function je({ config: e, productSlug: n, privacyConsent: r, consentRouteDenylist
|
|
|
391
405
|
] })
|
|
392
406
|
] });
|
|
393
407
|
}
|
|
394
|
-
function
|
|
395
|
-
let { productName: o, productSlug: s = o.toLowerCase().replace(/\s+/g, ""), tagline: h = "", domain: _, i18nProductId: v, gatewayUrls: y, authBridge: b, defaultBrand:
|
|
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(() => ({
|
|
396
410
|
productName: o,
|
|
397
411
|
productSlug: s,
|
|
398
|
-
brandInitial:
|
|
412
|
+
brandInitial: E,
|
|
399
413
|
tagline: h,
|
|
400
414
|
domain: _
|
|
401
415
|
}), [
|
|
402
416
|
o,
|
|
403
417
|
s,
|
|
404
|
-
|
|
418
|
+
E,
|
|
405
419
|
h,
|
|
406
420
|
_
|
|
407
|
-
]),
|
|
421
|
+
]), R = G(!1), z = G(!!b?.url), B = H((e) => {
|
|
408
422
|
if (!e?.force && (() => {
|
|
409
423
|
try {
|
|
410
424
|
let e = sessionStorage.getItem("bf-active-profile");
|
|
@@ -414,22 +428,22 @@ function Me({ config: e, children: r, clearAuthStore: i }) {
|
|
|
414
428
|
} catch {
|
|
415
429
|
return !1;
|
|
416
430
|
}
|
|
417
|
-
})() ||
|
|
418
|
-
|
|
431
|
+
})() || z.current || R.current) return;
|
|
432
|
+
R.current = !0, d(i);
|
|
419
433
|
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);
|
|
420
434
|
if (window.location.pathname.startsWith("/auth/") || t(window.location.pathname) || a) {
|
|
421
|
-
|
|
435
|
+
R.current = !1;
|
|
422
436
|
return;
|
|
423
437
|
}
|
|
424
438
|
window.location.replace(r);
|
|
425
|
-
}, [i]),
|
|
439
|
+
}, [i]), V = W(() => ({
|
|
426
440
|
globalBaseUrl: y.globalBaseUrl,
|
|
427
441
|
...f()
|
|
428
|
-
}), [y.globalBaseUrl]),
|
|
429
|
-
window.location.pathname.startsWith("/auth/") || await
|
|
430
|
-
}, [
|
|
431
|
-
p(e) ? await
|
|
432
|
-
}, [
|
|
442
|
+
}), [y.globalBaseUrl]), K = H(async () => u(V), [V]), Y = H(async () => {
|
|
443
|
+
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
|
+
}, [K, B]), X = H(async (e) => {
|
|
433
447
|
let t = await l({
|
|
434
448
|
gateway: "global",
|
|
435
449
|
baseUrl: y.globalBaseUrl,
|
|
@@ -444,12 +458,12 @@ function Me({ config: e, children: r, clearAuthStore: i }) {
|
|
|
444
458
|
refreshToken: n.refreshToken,
|
|
445
459
|
expiresAt: n.expiresIn ? Date.now() + n.expiresIn * 1e3 : void 0
|
|
446
460
|
};
|
|
447
|
-
}, [y.globalBaseUrl]),
|
|
448
|
-
let e = new
|
|
449
|
-
queryCache: new
|
|
461
|
+
}, [y.globalBaseUrl]), Z = H(() => n("organization"), []), ge = W(() => {
|
|
462
|
+
let e = new me({
|
|
463
|
+
queryCache: new pe({ onError: (e) => {
|
|
450
464
|
a(e);
|
|
451
465
|
} }),
|
|
452
|
-
mutationCache: new
|
|
466
|
+
mutationCache: new fe({
|
|
453
467
|
onSuccess: () => {
|
|
454
468
|
e.invalidateQueries();
|
|
455
469
|
},
|
|
@@ -458,78 +472,78 @@ function Me({ config: e, children: r, clearAuthStore: i }) {
|
|
|
458
472
|
}
|
|
459
473
|
}),
|
|
460
474
|
defaultOptions: { queries: {
|
|
461
|
-
staleTime:
|
|
462
|
-
retry:
|
|
463
|
-
refetchOnWindowFocus:
|
|
475
|
+
staleTime: A?.staleTime ?? 300 * 1e3,
|
|
476
|
+
retry: A?.retry ?? 2,
|
|
477
|
+
refetchOnWindowFocus: A?.refetchOnWindowFocus ?? !1
|
|
464
478
|
} }
|
|
465
479
|
});
|
|
466
480
|
return e;
|
|
467
|
-
}, [
|
|
468
|
-
return
|
|
481
|
+
}, [A]);
|
|
482
|
+
return U(() => {
|
|
469
483
|
let e = () => {
|
|
470
|
-
|
|
484
|
+
B({ force: !0 });
|
|
471
485
|
};
|
|
472
486
|
return window.addEventListener(c, e), () => {
|
|
473
487
|
window.removeEventListener(c, e);
|
|
474
488
|
};
|
|
475
|
-
}, [
|
|
489
|
+
}, [B]), U(() => {
|
|
476
490
|
let e = ne.getInstance();
|
|
477
491
|
e.getLogger("shell") || e.getLogger("shell").addTransport(new re());
|
|
478
|
-
}, []), /* @__PURE__ */
|
|
479
|
-
value:
|
|
480
|
-
children: /* @__PURE__ */
|
|
492
|
+
}, []), /* @__PURE__ */ q(m, {
|
|
493
|
+
value: L,
|
|
494
|
+
children: /* @__PURE__ */ q(le, {
|
|
481
495
|
appName: s,
|
|
482
|
-
appVersion:
|
|
483
|
-
appEnv:
|
|
496
|
+
appVersion: I.appVersion,
|
|
497
|
+
appEnv: I.appEnv,
|
|
484
498
|
sourceMfe: s,
|
|
485
|
-
children: /* @__PURE__ */
|
|
499
|
+
children: /* @__PURE__ */ q(g, {
|
|
486
500
|
FallbackComponent: ie,
|
|
487
|
-
children: /* @__PURE__ */
|
|
488
|
-
config:
|
|
501
|
+
children: /* @__PURE__ */ J(ue, { children: [/* @__PURE__ */ q(Me, {
|
|
502
|
+
config: I,
|
|
489
503
|
productSlug: s,
|
|
490
|
-
privacyConsent:
|
|
491
|
-
consentRouteDenylist:
|
|
492
|
-
}), /* @__PURE__ */
|
|
493
|
-
client:
|
|
494
|
-
children: /* @__PURE__ */
|
|
504
|
+
privacyConsent: N,
|
|
505
|
+
consentRouteDenylist: P
|
|
506
|
+
}), /* @__PURE__ */ q(he, {
|
|
507
|
+
client: ge,
|
|
508
|
+
children: /* @__PURE__ */ q(se, { children: /* @__PURE__ */ q(ce, {
|
|
495
509
|
workspaceBaseUrl: y.workspaceBaseUrl,
|
|
496
510
|
globalBaseUrl: y.globalBaseUrl,
|
|
497
|
-
organizationId:
|
|
511
|
+
organizationId: Z,
|
|
498
512
|
productSlug: s,
|
|
499
|
-
defaultGateway:
|
|
500
|
-
enableSubscriptions:
|
|
501
|
-
onAuthError:
|
|
502
|
-
onNetworkError:
|
|
503
|
-
onRefreshToken:
|
|
504
|
-
children: /* @__PURE__ */
|
|
513
|
+
defaultGateway: D,
|
|
514
|
+
enableSubscriptions: O,
|
|
515
|
+
onAuthError: Y,
|
|
516
|
+
onNetworkError: de,
|
|
517
|
+
onRefreshToken: K,
|
|
518
|
+
children: /* @__PURE__ */ q(ee, {
|
|
505
519
|
bridgeUrl: b?.url,
|
|
506
520
|
bridgeAllowedOrigins: b?.allowedOrigins,
|
|
507
521
|
bridgeDebug: b?.debug,
|
|
508
|
-
onRefreshToken:
|
|
522
|
+
onRefreshToken: X,
|
|
509
523
|
onBridgeReady: () => {
|
|
510
|
-
|
|
524
|
+
z.current = !1;
|
|
511
525
|
},
|
|
512
526
|
onSessionExpiringSoon: () => {
|
|
513
527
|
console.warn("[Auth] Session will expire in 5 minutes");
|
|
514
528
|
},
|
|
515
529
|
onTokenExpired: () => {
|
|
516
|
-
|
|
530
|
+
B();
|
|
517
531
|
},
|
|
518
|
-
children: /* @__PURE__ */
|
|
532
|
+
children: /* @__PURE__ */ q(te, {
|
|
519
533
|
syncToUrl: !0,
|
|
520
|
-
children: /* @__PURE__ */
|
|
534
|
+
children: /* @__PURE__ */ q(oe, { children: /* @__PURE__ */ q(Oe, {
|
|
521
535
|
i18nProductId: v,
|
|
522
|
-
fallbackTranslations:
|
|
523
|
-
defaultBrand:
|
|
524
|
-
defaultMode:
|
|
525
|
-
defaultDensity:
|
|
526
|
-
defaultTypography:
|
|
527
|
-
defaultGlass:
|
|
536
|
+
fallbackTranslations: k,
|
|
537
|
+
defaultBrand: ae,
|
|
538
|
+
defaultMode: x,
|
|
539
|
+
defaultDensity: S,
|
|
540
|
+
defaultTypography: C,
|
|
541
|
+
defaultGlass: w,
|
|
528
542
|
productName: o,
|
|
529
|
-
brandInitial:
|
|
530
|
-
enablePWA:
|
|
531
|
-
toasterPosition:
|
|
532
|
-
tourPageIdFromPath:
|
|
543
|
+
brandInitial: E,
|
|
544
|
+
enablePWA: T,
|
|
545
|
+
toasterPosition: j,
|
|
546
|
+
tourPageIdFromPath: F,
|
|
533
547
|
children: r
|
|
534
548
|
}) })
|
|
535
549
|
})
|
|
@@ -541,4 +555,4 @@ function Me({ config: e, children: r, clearAuthStore: i }) {
|
|
|
541
555
|
});
|
|
542
556
|
}
|
|
543
557
|
//#endregion
|
|
544
|
-
export {
|
|
558
|
+
export { Ne as AppShellProvider, Q as resolveAppShellObservabilityConfig };
|