@burdenoff/fe-libs 2026.601.6 → 2026.601.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/ProductSideNav.d.ts.map +1 -1
- package/dist/chrome/SideNavigation.d.ts.map +1 -1
- package/dist/chrome/sideNavigation/NavItemRenderer.d.ts.map +1 -1
- package/dist/shared/components/PWAInstallBanner.d.ts.map +1 -1
- package/dist/shared/graphql/client.d.ts.map +1 -1
- package/dist/shared/graphql/client.js +61 -61
- package/dist/shared/graphql/fetch.d.ts.map +1 -1
- package/dist/shared/graphql/fetch.js +120 -120
- package/dist/shared/providers/AppShellProvider.d.ts.map +1 -1
- package/dist/shared/providers/AppShellProvider.js +204 -169
- package/dist/shared/providers/shell/ProfileStorageManager.d.ts +1 -1
- package/dist/shared/providers/shell/ProfileStorageManager.d.ts.map +1 -1
- package/dist/shared/providers/shell/ProfileStorageManager.js +110 -102
- package/dist/shared/providers/shell/authProvider/useAuthActions.d.ts.map +1 -1
- package/dist/shared/providers/shell/authProvider/useAuthActions.js +12 -10
- package/dist/shared/providers/shell/authProvider/useTokenExpiryTimer.d.ts.map +1 -1
- package/dist/shared/providers/shell/authProvider/useTokenExpiryTimer.js +8 -8
- package/dist/shared/utils/apollo.js +1 -1
- package/dist/shared/utils/authCookie.d.ts.map +1 -1
- package/dist/shared/utils/authCookie.js +1 -1
- package/dist/shared/utils/authErrorHandling.d.ts.map +1 -1
- package/dist/shared/utils/authErrorHandling.js +23 -8
- package/dist/shared/utils/backendErrors.d.ts +23 -0
- package/dist/shared/utils/backendErrors.d.ts.map +1 -1
- package/dist/shared/utils/backendErrors.js +113 -39
- package/dist/shared/utils/index.d.ts +2 -2
- package/dist/shared/utils/index.d.ts.map +1 -1
- package/dist/shared-utils.js +12 -12
- package/dist/shared.js +97 -97
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/shared/utils/backendErrors.ts
|
|
2
|
-
var e = "burdenoff:backend-error", t = "Something went wrong. Please try again.",
|
|
2
|
+
var e = "burdenoff:backend-error", t = "burdenoff:connection-status", n = "Something went wrong. Please try again.", r = {
|
|
3
3
|
BAD_REQUEST: "Please check the request and try again.",
|
|
4
4
|
BAD_USER_INPUT: "Please check the information and try again.",
|
|
5
5
|
CAPTCHA_FAILED: "The verification failed. Please try again.",
|
|
@@ -7,7 +7,7 @@ var e = "burdenoff:backend-error", t = "Something went wrong. Please try again."
|
|
|
7
7
|
COMPLEXITY_TOO_HIGH: "This request is too large to process. Please simplify it and try again.",
|
|
8
8
|
CONFLICT: "This change conflicts with existing data. Please refresh and try again.",
|
|
9
9
|
FORBIDDEN: "You do not have permission to do that.",
|
|
10
|
-
INTERNAL_SERVER_ERROR:
|
|
10
|
+
INTERNAL_SERVER_ERROR: n,
|
|
11
11
|
NOT_FOUND: "We could not find the requested item.",
|
|
12
12
|
PERMISSION_DENIED: "You do not have permission to do that.",
|
|
13
13
|
QUOTA_EXCEEDED: "You've reached your usage limit.",
|
|
@@ -19,7 +19,7 @@ var e = "burdenoff:backend-error", t = "Something went wrong. Please try again."
|
|
|
19
19
|
UNAUTHENTICATED: "Please sign in to continue.",
|
|
20
20
|
VALIDATION_ERROR: "Please check the information and try again.",
|
|
21
21
|
WORKSPACE_REQUIRED: "Please choose a workspace and try again."
|
|
22
|
-
},
|
|
22
|
+
}, i = [
|
|
23
23
|
/^Syntax Error:/i,
|
|
24
24
|
/^Cannot query field\b/i,
|
|
25
25
|
/^Cannot return null for non-nullable field\b/i,
|
|
@@ -31,48 +31,118 @@ var e = "burdenoff:backend-error", t = "Something went wrong. Please try again."
|
|
|
31
31
|
/^Fragment "[^"]+" cannot be spread here/i,
|
|
32
32
|
/^There can be only one/i,
|
|
33
33
|
/Did you mean /i
|
|
34
|
-
],
|
|
34
|
+
], a = new Set([
|
|
35
35
|
"UNAUTHENTICATED",
|
|
36
36
|
"TOKEN_EXPIRED",
|
|
37
37
|
"RESOURCE_CAP_EXCEEDED",
|
|
38
38
|
"STORAGE_QUOTA_EXCEEDED",
|
|
39
39
|
"QUOTA_EXHAUSTED"
|
|
40
|
-
]),
|
|
41
|
-
|
|
40
|
+
]), o = new Set(["ExportTranslations", "exportTranslations"]), s = ["exportTranslations"], c = ["No translation keys found for the specified criteria"], l = [
|
|
41
|
+
/failed to fetch/i,
|
|
42
|
+
/networkerror when attempting to fetch/i,
|
|
43
|
+
/network request failed/i,
|
|
44
|
+
/the network connection was lost/i,
|
|
45
|
+
/\bECONNREFUSED\b|\bECONNRESET\b|\bETIMEDOUT\b|\bENOTFOUND\b|\bEAI_AGAIN\b|\bEHOSTUNREACH\b|\bENETUNREACH\b/i,
|
|
46
|
+
/network circuit breaker is open/i
|
|
47
|
+
], u = [
|
|
48
|
+
"We could not reach the server. Please check your connection and try again.",
|
|
49
|
+
"The server is having trouble right now. Please try again in a moment.",
|
|
50
|
+
"The server took too long to respond. Please try again."
|
|
51
|
+
], d = [
|
|
52
|
+
/\bunauthori[sz]ed\b|\bunauthenticated\b|\btoken[\s_-]?expired\b|\b401\b|\b403\b/i,
|
|
53
|
+
/invalid email or password/i,
|
|
54
|
+
/you do not have permission/i
|
|
55
|
+
];
|
|
56
|
+
function f(e) {
|
|
42
57
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
43
58
|
}
|
|
44
|
-
function
|
|
59
|
+
function p(e) {
|
|
60
|
+
if (!e) return !1;
|
|
61
|
+
let t = e.trim();
|
|
62
|
+
return t.length === 0 || d.some((e) => e.test(t)) ? !1 : u.includes(t) || t.toLowerCase() === "load failed" ? !0 : l.some((e) => e.test(t));
|
|
63
|
+
}
|
|
64
|
+
function m(e) {
|
|
65
|
+
return !!(e instanceof DOMException && e.name === "AbortError" || e instanceof Error && e.name === "AbortError" || f(e) && e.name === "AbortError");
|
|
66
|
+
}
|
|
67
|
+
function h(e) {
|
|
68
|
+
if (typeof e == "string") return e;
|
|
69
|
+
if (e instanceof Error) return e.message;
|
|
70
|
+
if (f(e)) {
|
|
71
|
+
let t = C(e, "message");
|
|
72
|
+
if (t) return t;
|
|
73
|
+
let n = T(e);
|
|
74
|
+
if (n && n.length > 0 && typeof n[0]?.message == "string") return n[0].message ?? void 0;
|
|
75
|
+
let r = e.networkError;
|
|
76
|
+
if (f(r)) return C(r, "message");
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
function g(e) {
|
|
80
|
+
if (!f(e)) return;
|
|
81
|
+
let t = e.statusCode ?? e.status;
|
|
82
|
+
if (typeof t == "number") return t;
|
|
83
|
+
let n = e.networkError;
|
|
84
|
+
if (f(n)) {
|
|
85
|
+
let e = n.statusCode ?? n.status;
|
|
86
|
+
if (typeof e == "number") return e;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function _(e) {
|
|
90
|
+
if (e == null || m(e)) return !1;
|
|
91
|
+
let t = E(e);
|
|
92
|
+
if (w(t?.extensions?.code ?? t?.extensions?.errorCode)) return !1;
|
|
93
|
+
let n = g(e);
|
|
94
|
+
return n === 401 || n === 403 ? !1 : typeof navigator < "u" && navigator.onLine === !1 || e instanceof TypeError && p(e.message) ? !0 : p(h(e));
|
|
95
|
+
}
|
|
96
|
+
var v = 1e4, y = 0, b = !1;
|
|
97
|
+
function x(e, n) {
|
|
98
|
+
let r = Date.now(), i = h(e) ?? "Network request failed", a = typeof navigator > "u" ? !0 : navigator.onLine;
|
|
99
|
+
r - y > v && (y = r, console.warn("[Burdenoff network] request could not reach the server", {
|
|
100
|
+
message: i,
|
|
101
|
+
operationName: n.operationName,
|
|
102
|
+
online: a
|
|
103
|
+
})), typeof window < "u" && !b && (b = !0, window.dispatchEvent(new CustomEvent(t, { detail: {
|
|
104
|
+
online: !1,
|
|
105
|
+
since: r
|
|
106
|
+
} })));
|
|
107
|
+
}
|
|
108
|
+
function S() {
|
|
109
|
+
typeof window > "u" || b && (b = !1, y = 0, window.dispatchEvent(new CustomEvent(t, { detail: {
|
|
110
|
+
online: !0,
|
|
111
|
+
since: Date.now()
|
|
112
|
+
} })));
|
|
113
|
+
}
|
|
114
|
+
function C(e, t) {
|
|
45
115
|
let n = e[t];
|
|
46
116
|
return typeof n == "string" && n.trim().length > 0 ? n : void 0;
|
|
47
117
|
}
|
|
48
|
-
function
|
|
118
|
+
function w(e) {
|
|
49
119
|
if (!(typeof e != "string" || e.trim().length === 0)) return e.trim().replace(/[\s-]+/g, "_").toUpperCase();
|
|
50
120
|
}
|
|
51
|
-
function
|
|
52
|
-
if (!
|
|
121
|
+
function T(e) {
|
|
122
|
+
if (!f(e)) return;
|
|
53
123
|
let t = e.errors;
|
|
54
124
|
if (Array.isArray(t)) return t;
|
|
55
125
|
let n = e.graphQLErrors;
|
|
56
126
|
if (Array.isArray(n)) return n;
|
|
57
127
|
let r = e.networkError;
|
|
58
|
-
if (
|
|
128
|
+
if (f(r)) {
|
|
59
129
|
let e = r.result;
|
|
60
|
-
if (
|
|
130
|
+
if (f(e) && Array.isArray(e.errors)) return e.errors;
|
|
61
131
|
}
|
|
62
132
|
}
|
|
63
|
-
function
|
|
64
|
-
let t =
|
|
133
|
+
function E(e) {
|
|
134
|
+
let t = T(e);
|
|
65
135
|
if (t && t.length > 0) return t[0];
|
|
66
|
-
if (
|
|
136
|
+
if (f(e) && ("message" in e || "extensions" in e)) return e;
|
|
67
137
|
}
|
|
68
|
-
function
|
|
138
|
+
function D(e) {
|
|
69
139
|
if (e) return e.userMessage ?? e.humanMessage ?? e.displayMessage;
|
|
70
140
|
}
|
|
71
|
-
function
|
|
72
|
-
return e.length > 220 || e.includes("\n") ||
|
|
141
|
+
function O(e) {
|
|
142
|
+
return e.length > 220 || e.includes("\n") || i.some((t) => t.test(e)) || /\b(prisma|sql|constraint|undefined|null|ECONN[A-Z_]*|ETIMEDOUT|ENOTFOUND)\b/i.test(e) || /failed to fetch|network error|graphql fetch failed/i.test(e) || /Cannot (read|set|find|access|query)/i.test(e);
|
|
73
143
|
}
|
|
74
|
-
function
|
|
75
|
-
if (
|
|
144
|
+
function k(e) {
|
|
145
|
+
if (i.some((t) => t.test(e))) return "BAD_USER_INPUT";
|
|
76
146
|
let t = e.toLowerCase();
|
|
77
147
|
if (t.includes("unauthenticated") || t.includes("unauthorized")) return "UNAUTHENTICATED";
|
|
78
148
|
if (t.includes("workspace context")) return "WORKSPACE_REQUIRED";
|
|
@@ -81,41 +151,45 @@ function h(e) {
|
|
|
81
151
|
if (t.includes("quota") || t.includes("limit reached")) return "QUOTA_EXCEEDED";
|
|
82
152
|
if (t.includes("required") || t.includes("invalid") || t.includes("missing")) return "BAD_USER_INPUT";
|
|
83
153
|
}
|
|
84
|
-
function
|
|
85
|
-
let o =
|
|
154
|
+
function A(e, t, i, a) {
|
|
155
|
+
let o = D(e?.extensions ?? void 0);
|
|
86
156
|
if (o) return o;
|
|
87
|
-
if (
|
|
157
|
+
if (t && r[t]) return r[t];
|
|
88
158
|
if (i) return i;
|
|
89
159
|
let s = e ? void 0 : a;
|
|
90
|
-
return s && !
|
|
160
|
+
return s && !O(s) ? s : e?.message && !O(e.message) ? e.message : i ?? n;
|
|
91
161
|
}
|
|
92
|
-
function
|
|
162
|
+
function j(e) {
|
|
93
163
|
if (!(!e || e.length === 0)) return e.map((e) => String(e)).join(".");
|
|
94
164
|
}
|
|
95
|
-
function
|
|
165
|
+
function M(e, t = {}) {
|
|
96
166
|
if (e == null) return null;
|
|
97
|
-
let n =
|
|
167
|
+
let n = E(e), r = n?.extensions ?? void 0, i = e instanceof Error ? e.message : f(e) ? C(e, "message") : void 0, a = w(r?.code ?? r?.errorCode) ?? k(i ?? n?.message ?? ""), o = r?.serviceName, s = j(n?.path), c = r?.requestId ?? r?.correlationId ?? r?.traceId, l = A(n, a, t.fallbackMessage, i);
|
|
98
168
|
return {
|
|
99
|
-
message:
|
|
100
|
-
technicalMessage: r?.technicalMessage ?? (n?.message && n.message !==
|
|
169
|
+
message: l,
|
|
170
|
+
technicalMessage: r?.technicalMessage ?? (n?.message && n.message !== l ? n.message : void 0) ?? (i && i !== l ? i : void 0),
|
|
101
171
|
code: a,
|
|
102
172
|
operationName: t.operationName,
|
|
103
173
|
serviceName: o,
|
|
104
174
|
path: s,
|
|
105
|
-
requestId:
|
|
175
|
+
requestId: c,
|
|
106
176
|
extensions: r
|
|
107
177
|
};
|
|
108
178
|
}
|
|
109
|
-
function
|
|
110
|
-
return
|
|
179
|
+
function N(e) {
|
|
180
|
+
return f(e) && typeof e.message == "string";
|
|
111
181
|
}
|
|
112
|
-
function
|
|
113
|
-
return !e || e.code &&
|
|
182
|
+
function P(e) {
|
|
183
|
+
return !e || e.code && a.has(e.code) || e.operationName && o.has(e.operationName) || e.path && s.some((t) => e.path === t || e.path?.startsWith(`${t}.`)) || e.technicalMessage && c.some((t) => e.technicalMessage.includes(t)) || !e.code && p(e.technicalMessage ?? e.message) ? !1 : e.message.trim().length > 0;
|
|
114
184
|
}
|
|
115
|
-
function
|
|
116
|
-
if (typeof window > "u" || t
|
|
117
|
-
|
|
118
|
-
|
|
185
|
+
function F(t, n = {}) {
|
|
186
|
+
if (typeof window > "u" || m(t)) return;
|
|
187
|
+
if (_(t)) {
|
|
188
|
+
x(t, n);
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
let r = N(t) ? t : M(t, n);
|
|
192
|
+
P(r) && window.dispatchEvent(new CustomEvent(e, { detail: r }));
|
|
119
193
|
}
|
|
120
194
|
//#endregion
|
|
121
|
-
export { e as BACKEND_ERROR_EVENT,
|
|
195
|
+
export { e as BACKEND_ERROR_EVENT, t as CONNECTION_STATUS_EVENT, F as dispatchBackendErrorEvent, M as extractBackendError, m as isAbortError, N as isBackendErrorDisplay, _ as isTransportError, S as markConnectionHealthy, P as shouldToastBackendError };
|
|
@@ -14,8 +14,8 @@ export { resolveGatewayBases, installGatewayFetchRewrite, suppressConsole, } fro
|
|
|
14
14
|
export type { GatewayBases, GatewayBaseMapping } from './gatewayFetchRewrite';
|
|
15
15
|
export { clearAuthSessionStorage, hasAuthGraphQLErrors, isAuthGraphQLError, isAuthNetworkError, attemptTokenRefresh, redirectToLogin, } from './authErrorHandling';
|
|
16
16
|
export type { GraphQLErrorLike, TokenRefreshConfig } from './authErrorHandling';
|
|
17
|
-
export { BACKEND_ERROR_EVENT, dispatchBackendErrorEvent, extractBackendError, isBackendErrorDisplay, shouldToastBackendError, } from './backendErrors';
|
|
18
|
-
export type { BackendErrorDisplay, BackendErrorExtensions, ExtractBackendErrorOptions, GraphQLBackendErrorLike, } from './backendErrors';
|
|
17
|
+
export { BACKEND_ERROR_EVENT, CONNECTION_STATUS_EVENT, dispatchBackendErrorEvent, extractBackendError, isAbortError, isBackendErrorDisplay, isTransportError, markConnectionHealthy, shouldToastBackendError, } from './backendErrors';
|
|
18
|
+
export type { BackendErrorDisplay, BackendErrorExtensions, ConnectionStatusDetail, ExtractBackendErrorOptions, GraphQLBackendErrorLike, } from './backendErrors';
|
|
19
19
|
export { AppInitializer, useShellNavigate, useRegistryHelpers } from './appHelpers';
|
|
20
20
|
export type { AppInitializerProps } from './appHelpers';
|
|
21
21
|
export { initializeLogger, setUserContext, clearUserContext } from './loggerInit';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C;;;GAGG;AACH,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAED,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,YAAY,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAG1D,OAAO,EACL,YAAY,EACZ,WAAW,EACX,cAAc,EACd,cAAc,EACd,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,GACf,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,eAAe,EACf,eAAe,EACf,OAAO,EACP,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,GACX,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGlE,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG9E,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGhF,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACpF,YAAY,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGxD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAClF,YAAY,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGvD,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGzF,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACd,6BAA6B,EAC7B,+BAA+B,EAC/B,0BAA0B,GAC3B,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,wBAAwB,EACxB,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C;;;GAGG;AACH,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAED,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,YAAY,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAG1D,OAAO,EACL,YAAY,EACZ,WAAW,EACX,cAAc,EACd,cAAc,EACd,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,GACf,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,eAAe,EACf,eAAe,EACf,OAAO,EACP,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,GACX,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGlE,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG9E,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGhF,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,yBAAyB,EACzB,mBAAmB,EACnB,YAAY,EACZ,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACpF,YAAY,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGxD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAClF,YAAY,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGvD,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGzF,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACd,6BAA6B,EAC7B,+BAA+B,EAC/B,0BAA0B,GAC3B,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,wBAAwB,EACxB,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,eAAe,CAAC"}
|
package/dist/shared-utils.js
CHANGED
|
@@ -3,18 +3,18 @@ import { alertTokens as t, categoryTokens as n, getAlertTokens as r, getCategory
|
|
|
3
3
|
import { capitalizeFirst as f, capitalizeWords as p, formatBytes as m, formatCompactNumber as h, formatCurrency as g, formatCurrencyCompact as _, formatDate as v, formatDateTime as y, formatDuration as b, formatList as x, formatNumber as S, formatOrdinal as C, formatPercentage as w, formatRelativeTime as T, formatTime as E, pluralize as D, slugify as O, toCamelCase as k, toPascalCase as A, truncateText as j } from "./shared/utils/format.js";
|
|
4
4
|
import { isChunkLoadError as M, lazyWithRetry as N } from "./shared/utils/lazyWithRetry.js";
|
|
5
5
|
import { installGatewayFetchRewrite as P, resolveGatewayBases as F, suppressConsole as I } from "./shared/utils/gatewayFetchRewrite.js";
|
|
6
|
-
import { BACKEND_ERROR_EVENT as L,
|
|
7
|
-
import { attemptTokenRefresh as
|
|
8
|
-
import { clearSSoCookie as
|
|
9
|
-
import { AppInitializer as
|
|
10
|
-
import { clearUserContext as
|
|
11
|
-
import { createProfileScopedStorage as
|
|
12
|
-
import { QUOTA_EXHAUSTED_CODE as
|
|
13
|
-
import { clsx as
|
|
14
|
-
import { twMerge as
|
|
6
|
+
import { BACKEND_ERROR_EVENT as L, CONNECTION_STATUS_EVENT as R, dispatchBackendErrorEvent as z, extractBackendError as B, isAbortError as V, isBackendErrorDisplay as H, isTransportError as U, markConnectionHealthy as W, shouldToastBackendError as G } from "./shared/utils/backendErrors.js";
|
|
7
|
+
import { attemptTokenRefresh as K, clearAuthSessionStorage as q, hasAuthGraphQLErrors as J, isAuthGraphQLError as Y, isAuthNetworkError as X, redirectToLogin as Z } from "./shared/utils/authErrorHandling.js";
|
|
8
|
+
import { clearSSoCookie as Q, clearShellSsoCookies as $, getSSoCookie as ee, isSharedSsoCookieDomain as te, isTrustedSsoOrigin as ne, readShellSsoCookie as re, setSSoCookie as ie, setShellSsoCookies as ae } from "./shared/utils/authCookie.js";
|
|
9
|
+
import { AppInitializer as oe, useRegistryHelpers as se, useShellNavigate as ce } from "./shared/utils/appHelpers.js";
|
|
10
|
+
import { clearUserContext as le, initializeLogger as ue, setUserContext as de } from "./shared/utils/loggerInit.js";
|
|
11
|
+
import { createProfileScopedStorage as fe, getProfileScopedKey as pe } from "./shared/utils/profileScopedStorage.js";
|
|
12
|
+
import { QUOTA_EXHAUSTED_CODE as me, RESOURCE_CAP_EXCEEDED_CODE as he, STORAGE_QUOTA_EXCEEDED_CODE as ge, UPGRADE_ERROR_CODES as _e, buildQuotaExhaustedMessage as ve, extractQuotaExhaustedExtensions as ye, extractUpgradeErrorExtensions as be, isQuotaExhaustedError as xe, isUpgradeError as Se } from "./shared/utils/quotaErrors.js";
|
|
13
|
+
import { clsx as Ce } from "clsx";
|
|
14
|
+
import { twMerge as we } from "tailwind-merge";
|
|
15
15
|
//#region src/shared/utils/index.ts
|
|
16
|
-
function
|
|
17
|
-
return
|
|
16
|
+
function Te(...e) {
|
|
17
|
+
return we(Ce(e));
|
|
18
18
|
}
|
|
19
19
|
//#endregion
|
|
20
|
-
export {
|
|
20
|
+
export { oe as AppInitializer, L as BACKEND_ERROR_EVENT, R as CONNECTION_STATUS_EVENT, me as QUOTA_EXHAUSTED_CODE, he as RESOURCE_CAP_EXCEEDED_CODE, ge as STORAGE_QUOTA_EXCEEDED_CODE, _e as UPGRADE_ERROR_CODES, t as alertTokens, K as attemptTokenRefresh, ve as buildQuotaExhaustedMessage, f as capitalizeFirst, p as capitalizeWords, n as categoryTokens, q as clearAuthSessionStorage, Q as clearSSoCookie, $ as clearShellSsoCookies, le as clearUserContext, Te as cn, e as createApolloClient, fe as createProfileScopedStorage, z as dispatchBackendErrorEvent, B as extractBackendError, ye as extractQuotaExhaustedExtensions, be as extractUpgradeErrorExtensions, m as formatBytes, h as formatCompactNumber, g as formatCurrency, _ as formatCurrencyCompact, v as formatDate, y as formatDateTime, b as formatDuration, x as formatList, S as formatNumber, C as formatOrdinal, w as formatPercentage, T as formatRelativeTime, E as formatTime, r as getAlertTokens, i as getCategoryTokens, pe as getProfileScopedKey, a as getProgressTokens, ee as getSSoCookie, o as getStatusBadgeTokens, s as getStatusTokens, c as getTrendTokens, J as hasAuthGraphQLErrors, ue as initializeLogger, P as installGatewayFetchRewrite, V as isAbortError, Y as isAuthGraphQLError, X as isAuthNetworkError, H as isBackendErrorDisplay, M as isChunkLoadError, xe as isQuotaExhaustedError, te as isSharedSsoCookieDomain, U as isTransportError, ne as isTrustedSsoOrigin, Se as isUpgradeError, N as lazyWithRetry, W as markConnectionHealthy, D as pluralize, l as progressTokens, re as readShellSsoCookie, Z as redirectToLogin, F as resolveGatewayBases, ie as setSSoCookie, ae as setShellSsoCookies, de as setUserContext, G as shouldToastBackendError, O as slugify, u as statusTokens, I as suppressConsole, k as toCamelCase, A as toPascalCase, d as trendTokens, j as truncateText, se as useRegistryHelpers, ce as useShellNavigate };
|
package/dist/shared.js
CHANGED
|
@@ -10,107 +10,107 @@ import { PRODUCTS as B, PRODUCT_URLS as V, getProductUrl as H, getProductsWithUr
|
|
|
10
10
|
import { COMMON_SHELL_LESS_ROUTES as W, DEFAULT_SHELL_CONFIG as G, getShellConfig as K, isShellLessRoute as q, shouldShowBreadcrumb as J, shouldShowSidebar as Y } from "./shared/config/shellRoutes.js";
|
|
11
11
|
import { DEFAULT_PAGE_SIZE as X, GATEWAYS as Z, getGatewayConfig as Q, getGatewayUrl as $, getGraphQLEndpoint as ee } from "./shared-config.js";
|
|
12
12
|
import { getWorkspaceTokenPayload as te, isWorkspaceTokenValidForContext as ne } from "./shared/graphql/workspaceToken.js";
|
|
13
|
-
import { BACKEND_ERROR_EVENT as re,
|
|
14
|
-
import { getStoredAuthToken as
|
|
15
|
-
import { SSELink as
|
|
16
|
-
import { createGraphQLClient as
|
|
17
|
-
import { GatewayProvider as
|
|
18
|
-
import { WsLink as
|
|
19
|
-
import { ApolloClient as
|
|
20
|
-
import { attemptTokenRefresh as
|
|
21
|
-
import { clearSSoCookie as
|
|
22
|
-
import { SSORedirectSpinner as
|
|
23
|
-
import { AppInitializer as
|
|
24
|
-
import { LogLevel as
|
|
25
|
-
import { Logger as
|
|
26
|
-
import { LogManager as
|
|
27
|
-
import { ConsoleTransport as
|
|
28
|
-
import { clearUserContext as
|
|
29
|
-
import { createProfileScopedStorage as
|
|
30
|
-
import { QUOTA_EXHAUSTED_CODE as
|
|
31
|
-
import { cn as
|
|
32
|
-
import { ErrorBoundary as
|
|
33
|
-
import { RequireAuth as
|
|
34
|
-
import { PermissionButton as
|
|
35
|
-
import { AccessDenied as
|
|
36
|
-
import { ErrorFallback as
|
|
37
|
-
import { LoadingFallback as
|
|
38
|
-
import { MicrofrontendErrorBoundary as
|
|
39
|
-
import { ConditionalShell as
|
|
40
|
-
import { usePWA as
|
|
41
|
-
import { PWAInstallBanner as
|
|
42
|
-
import { ErrorBoundary as
|
|
43
|
-
import { FeatureFlagProvider as
|
|
44
|
-
import { useFeatureFlag as
|
|
45
|
-
import { FeatureGate as
|
|
13
|
+
import { BACKEND_ERROR_EVENT as re, CONNECTION_STATUS_EVENT as ie, dispatchBackendErrorEvent as ae, extractBackendError as oe, isAbortError as se, isBackendErrorDisplay as ce, isTransportError as le, markConnectionHealthy as ue, shouldToastBackendError as de } from "./shared/utils/backendErrors.js";
|
|
14
|
+
import { getStoredAuthToken as fe, getStoredLocale as pe, getStoredOrganizationId as me, getStoredProjectId as he, getStoredWorkspaceId as ge, getStoredWorkspaceToken as _e, graphqlFetch as ve, resolveGatewayUrl as ye } from "./shared/graphql/fetch.js";
|
|
15
|
+
import { SSELink as be } from "./shared/graphql/links/sse-link.js";
|
|
16
|
+
import { createGraphQLClient as xe, getGlobalClient as Se, getWorkspaceClient as Ce, initializeAppClients as we, resetAppClients as Te } from "./shared/graphql/client.js";
|
|
17
|
+
import { GatewayProvider as Ee, useGateway as De, useGatewayClient as Oe, useSafeGateway as ke, useSafeGatewayClient as Ae } from "./shared/graphql/GatewayContext.js";
|
|
18
|
+
import { WsLink as je } from "./shared/graphql/links/ws-link.js";
|
|
19
|
+
import { ApolloClient as Me, ApolloProvider as Ne, InMemoryCache as Pe, gql as Fe, useApolloClient as Ie, useLazyQuery as Le, useMutation as Re, useQuery as ze, useSubscription as Be } from "./shared-graphql.js";
|
|
20
|
+
import { attemptTokenRefresh as Ve, clearAuthSessionStorage as He, hasAuthGraphQLErrors as Ue, isAuthGraphQLError as We, isAuthNetworkError as Ge, redirectToLogin as Ke } from "./shared/utils/authErrorHandling.js";
|
|
21
|
+
import { clearSSoCookie as qe, clearShellSsoCookies as Je, getSSoCookie as Ye, isSharedSsoCookieDomain as Xe, isTrustedSsoOrigin as Ze, readShellSsoCookie as Qe, setSSoCookie as $e, setShellSsoCookies as et } from "./shared/utils/authCookie.js";
|
|
22
|
+
import { SSORedirectSpinner as tt, checkRemoteSLO as nt, checkSLO as rt, clearLocalAuthState as it, getSSORedirectUrl as at } from "./shared/components/SSORedirectGuard.js";
|
|
23
|
+
import { AppInitializer as ot, useRegistryHelpers as st, useShellNavigate as ct } from "./shared/utils/appHelpers.js";
|
|
24
|
+
import { LogLevel as lt } from "./shared/logger/types.js";
|
|
25
|
+
import { Logger as ut } from "./shared/logger/Logger.js";
|
|
26
|
+
import { LogManager as dt, logManager as ft } from "./shared/logger/LogManager.js";
|
|
27
|
+
import { ConsoleTransport as pt } from "./shared/logger/ConsoleTransport.js";
|
|
28
|
+
import { clearUserContext as mt, initializeLogger as ht, setUserContext as gt } from "./shared/utils/loggerInit.js";
|
|
29
|
+
import { createProfileScopedStorage as _t, getProfileScopedKey as vt } from "./shared/utils/profileScopedStorage.js";
|
|
30
|
+
import { QUOTA_EXHAUSTED_CODE as yt, RESOURCE_CAP_EXCEEDED_CODE as bt, STORAGE_QUOTA_EXCEEDED_CODE as xt, UPGRADE_ERROR_CODES as St, buildQuotaExhaustedMessage as Ct, extractQuotaExhaustedExtensions as wt, extractUpgradeErrorExtensions as Tt, isQuotaExhaustedError as Et, isUpgradeError as Dt } from "./shared/utils/quotaErrors.js";
|
|
31
|
+
import { cn as Ot } from "./shared-utils.js";
|
|
32
|
+
import { ErrorBoundary as kt } from "./shared/components/ErrorBoundary.js";
|
|
33
|
+
import { RequireAuth as At, RequireGuest as jt } from "./shared/components/RequireAuth.js";
|
|
34
|
+
import { PermissionButton as Mt, PermissionGate as Nt, PermissionLink as Pt } from "./shared/components/PermissionGate.js";
|
|
35
|
+
import { AccessDenied as Ft, PermissionDenied as It } from "./shared/components/AccessDenied.js";
|
|
36
|
+
import { ErrorFallback as Lt } from "./shared/components/ErrorFallback.js";
|
|
37
|
+
import { LoadingFallback as Rt, PageLoadingFallback as zt, SectionLoadingFallback as Bt } from "./shared/components/LoadingFallback.js";
|
|
38
|
+
import { MicrofrontendErrorBoundary as Vt } from "./shared/components/MicrofrontendErrorBoundary.js";
|
|
39
|
+
import { ConditionalShell as Ht } from "./shared/components/ConditionalShell.js";
|
|
40
|
+
import { usePWA as Ut } from "./shared/hooks/usePWA.js";
|
|
41
|
+
import { PWAInstallBanner as Wt } from "./shared/components/PWAInstallBanner.js";
|
|
42
|
+
import { ErrorBoundary as Gt } from "./shared/components/AppErrorBoundary.js";
|
|
43
|
+
import { FeatureFlagProvider as Kt, useFeatureFlags as qt } from "./shared/feature-flags/FeatureFlagProvider.js";
|
|
44
|
+
import { useFeatureFlag as Jt, useFeatureFlagDetails as Yt, useFeatureFlagValue as Xt } from "./shared/feature-flags/useFeatureFlag.js";
|
|
45
|
+
import { FeatureGate as Zt } from "./shared/feature-flags/FeatureGate.js";
|
|
46
46
|
import "./shared-feature-flags.js";
|
|
47
|
-
import { ContextConversationWidget as
|
|
48
|
-
import { detectPlatform as
|
|
49
|
-
import { KeyboardHelpDialogWrapper as
|
|
50
|
-
import { QuotaMeter as
|
|
51
|
-
import { UPGRADE_PROMPT_EVENT as
|
|
52
|
-
import { UpgradeInlineBanner as
|
|
47
|
+
import { ContextConversationWidget as Qt } from "./shared/components/ContextConversationWidget.js";
|
|
48
|
+
import { detectPlatform as $t, formatKeyCombo as en, getDisplayKeysForPlatform as tn, getShortcutLabel as nn, isMac as rn, isMobileDevice as an, isTabletDevice as on, matchesKeyCombo as sn, normalizeKey as cn, normalizePlatformCombo as ln, parseKeyCombo as un, shouldEnableKeyboardShortcuts as dn, shouldIgnoreShortcut as fn } from "./shared/keyboard/utils.js";
|
|
49
|
+
import { KeyboardHelpDialogWrapper as pn } from "./shared/components/KeyboardHelpDialogWrapper.js";
|
|
50
|
+
import { QuotaMeter as mn } from "./shared/components/QuotaMeter.js";
|
|
51
|
+
import { UPGRADE_PROMPT_EVENT as hn, UpgradePromptModal as gn, dispatchUpgradePrompt as _n } from "./shared/components/UpgradePromptModal.js";
|
|
52
|
+
import { UpgradeInlineBanner as vn } from "./shared/components/UpgradeInlineBanner.js";
|
|
53
53
|
import "./shared-components.js";
|
|
54
|
-
import { DevtoolsSink as
|
|
55
|
-
import { BroadcastChannelSink as
|
|
56
|
-
import { BackendAuditSink as
|
|
57
|
-
import { RybbitSink as
|
|
58
|
-
import { OtelBrowserSink as
|
|
59
|
-
import { EventBusProvider as
|
|
60
|
-
import { useDebounce as
|
|
61
|
-
import { useThrottle as
|
|
62
|
-
import { BREAKPOINTS as
|
|
63
|
-
import { useOnClickOutside as
|
|
64
|
-
import { useKeyPress as
|
|
65
|
-
import { useCopyToClipboard as
|
|
66
|
-
import { useLocalStorage as
|
|
67
|
-
import { useSessionStorage as
|
|
68
|
-
import { usePrevious as
|
|
69
|
-
import { useConditionalToggle as
|
|
70
|
-
import { useAsync as
|
|
71
|
-
import { MODIFIER_KEYS as
|
|
72
|
-
import { useKeyboardShortcuts as
|
|
73
|
-
import { useHotkeys as
|
|
74
|
-
import { useShortcutHelp as
|
|
75
|
-
import { GLOBAL_SHORTCUT_CATEGORIES as
|
|
76
|
-
import { useLogger as
|
|
77
|
-
import { useHasAnimated as
|
|
78
|
-
import { useReferralAttribution as
|
|
79
|
-
import { useRecordProductVisit as
|
|
80
|
-
import { QUOTA_EXHAUSTED_EVENT as
|
|
81
|
-
import { PLAN_USAGE_SNAPSHOT_EVENT as
|
|
82
|
-
import { appendContextToPath as
|
|
83
|
-
import { MicrofrontendContext as
|
|
84
|
-
import { detectDeviceType as
|
|
85
|
-
import { useTourPlayer as
|
|
86
|
-
import { TourSpotlight as
|
|
87
|
-
import { TourTooltip as
|
|
88
|
-
import { TourPlayerProvider as
|
|
89
|
-
import { TourPlayer as
|
|
90
|
-
import { getTourContextRank as
|
|
91
|
-
import { withTourProgressStatus as
|
|
92
|
-
import { ToursProvider as
|
|
93
|
-
import { TourInitializer as
|
|
94
|
-
import { AppShellProvider as
|
|
95
|
-
import { MicrofrontendProvider as
|
|
96
|
-
import { TourTrigger as
|
|
54
|
+
import { DevtoolsSink as yn } from "./shared/events/sinks/DevtoolsSink.js";
|
|
55
|
+
import { BroadcastChannelSink as bn } from "./shared/events/sinks/BroadcastChannelSink.js";
|
|
56
|
+
import { BackendAuditSink as xn } from "./shared/events/sinks/BackendAuditSink.js";
|
|
57
|
+
import { RybbitSink as Sn } from "./shared/events/sinks/RybbitSink.js";
|
|
58
|
+
import { OtelBrowserSink as Cn } from "./shared/events/sinks/OtelBrowserSink.js";
|
|
59
|
+
import { EventBusProvider as wn, createEventBus as Tn, useEvent as En, useEventBus as Dn, useEventEmitter as On } from "./shared-events.js";
|
|
60
|
+
import { useDebounce as kn } from "./shared/hooks/useDebounce.js";
|
|
61
|
+
import { useThrottle as An } from "./shared/hooks/useThrottle.js";
|
|
62
|
+
import { BREAKPOINTS as jn, useBreakpoint as Mn, useMobileBreakpoint as Nn } from "./shared/hooks/useBreakpoint.js";
|
|
63
|
+
import { useOnClickOutside as Pn, useOnClickOutsideWithRef as Fn } from "./shared/hooks/useOnClickOutside.js";
|
|
64
|
+
import { useKeyPress as In, useKeyboardShortcut as Ln } from "./shared/hooks/useKeyPress.js";
|
|
65
|
+
import { useCopyToClipboard as Rn } from "./shared/hooks/useCopyToClipboard.js";
|
|
66
|
+
import { useLocalStorage as zn } from "./shared/hooks/useLocalStorage.js";
|
|
67
|
+
import { useSessionStorage as Bn } from "./shared/hooks/useSessionStorage.js";
|
|
68
|
+
import { usePrevious as Vn, usePreviousDistinct as Hn, usePreviousHistory as Un } from "./shared/hooks/usePrevious.js";
|
|
69
|
+
import { useConditionalToggle as Wn, useToggle as Gn, useToggleObject as Kn } from "./shared/hooks/useToggle.js";
|
|
70
|
+
import { useAsync as qn, useAsyncImmediate as Jn } from "./shared/hooks/useAsync.js";
|
|
71
|
+
import { MODIFIER_KEYS as Yn, PLATFORM_TYPES as Xn } from "./shared/keyboard/types.js";
|
|
72
|
+
import { useKeyboardShortcuts as Zn } from "./shared/keyboard/useKeyboardShortcuts.js";
|
|
73
|
+
import { useHotkeys as Qn } from "./shared/keyboard/useHotkeys.js";
|
|
74
|
+
import { useShortcutHelp as $n } from "./shared/keyboard/useShortcutHelp.js";
|
|
75
|
+
import { GLOBAL_SHORTCUT_CATEGORIES as er, createGlobalShortcuts as tr, getGlobalShortcutsByCategory as nr, mergeShortcuts as rr } from "./shared/keyboard/globalShortcuts.js";
|
|
76
|
+
import { useLogger as ir } from "./shared/logger/useLogger.js";
|
|
77
|
+
import { useHasAnimated as ar } from "./shared/hooks/useHasAnimated.js";
|
|
78
|
+
import { useReferralAttribution as or } from "./shared/hooks/useReferralAttribution.js";
|
|
79
|
+
import { useRecordProductVisit as sr } from "./shared/hooks/useRecordProductVisit.js";
|
|
80
|
+
import { QUOTA_EXHAUSTED_EVENT as cr, dispatchQuotaExhausted as lr, useQuotaErrorToast as ur } from "./shared/hooks/useQuotaErrorToast.js";
|
|
81
|
+
import { PLAN_USAGE_SNAPSHOT_EVENT as dr, publishPlanUsageSnapshot as fr, useUpgradePrompt as pr } from "./shared/hooks/useUpgradePrompt.js";
|
|
82
|
+
import { appendContextToPath as mr, useCurrentContextSearchParams as hr } from "./shared/hooks/useCurrentContextSearchParams.js";
|
|
83
|
+
import { MicrofrontendContext as gr, useMicrofrontendContext as _r } from "./shared-hooks.js";
|
|
84
|
+
import { detectDeviceType as vr, getResponsiveSelector as yr } from "./shared/tours/types.js";
|
|
85
|
+
import { useTourPlayer as br } from "./shared/tours/useTourPlayer.js";
|
|
86
|
+
import { TourSpotlight as xr } from "./shared/tours/TourSpotlight.js";
|
|
87
|
+
import { TourTooltip as Sr } from "./shared/tours/TourTooltip.js";
|
|
88
|
+
import { TourPlayerProvider as Cr, useIsTourPlaying as wr, useStartTour as Tr, useStopTour as Er, useTourPlayerContext as Dr } from "./shared/tours/TourPlayerProvider.js";
|
|
89
|
+
import { TourPlayer as Or, TourTriggerButton as kr, usePlayTour as Ar } from "./shared/tours/TourPlayer.js";
|
|
90
|
+
import { getTourContextRank as jr, getTourRouteCatalog as Mr, getTourRouteModules as Nr, getTourRoutePages as Pr, isTourVisibleForContext as Fr, normalizeTourPath as Ir, registerTourRouteCatalog as Lr, resolveTourTargetPath as Rr } from "./shared/tours/routeCatalog.js";
|
|
91
|
+
import { withTourProgressStatus as zr } from "./shared/tours/progress.js";
|
|
92
|
+
import { ToursProvider as Br, useAutoStartTour as Vr, useSafeToursContext as Hr, useTours as Ur, useToursContext as Wr } from "./shared/tours/ToursContext.js";
|
|
93
|
+
import { TourInitializer as Gr } from "./shared/tours/TourInitializer.js";
|
|
94
|
+
import { AppShellProvider as Kr, resolveAppShellObservabilityConfig as qr } from "./shared/providers/AppShellProvider.js";
|
|
95
|
+
import { MicrofrontendProvider as Jr } from "./shared-providers.js";
|
|
96
|
+
import { TourTrigger as Yr } from "./shared/tours/TourTrigger.js";
|
|
97
97
|
import "./shared-tours.js";
|
|
98
|
-
import { getNativeBridge as
|
|
99
|
-
import { getPlatform as
|
|
100
|
-
import { nativeConfirm as
|
|
101
|
-
import { SafeAreaView as
|
|
102
|
-
import { useNativePlatform as
|
|
103
|
-
import { useSafeArea as
|
|
104
|
-
import { useNativeKeyboard as
|
|
105
|
-
import { useAppState as
|
|
106
|
-
import { useDeviceInfo as
|
|
107
|
-
import { useHaptics as
|
|
108
|
-
import { useStatusBar as
|
|
98
|
+
import { getNativeBridge as Xr } from "./shared/native/bridge.js";
|
|
99
|
+
import { getPlatform as Zr, isAndroid as Qr, isIOS as $r, isNative as ei, isWeb as ti } from "./shared/native/platform.js";
|
|
100
|
+
import { nativeConfirm as ni, nativeCopyText as ri, nativeImpact as ii, nativeNotify as ai, nativeOpenUrl as oi, nativeShare as si, nativeToast as ci } from "./shared/native/consumers.js";
|
|
101
|
+
import { SafeAreaView as li } from "./shared/native/SafeAreaView.js";
|
|
102
|
+
import { useNativePlatform as ui } from "./shared/native/hooks/useNativePlatform.js";
|
|
103
|
+
import { useSafeArea as di } from "./shared/native/hooks/useSafeArea.js";
|
|
104
|
+
import { useNativeKeyboard as fi } from "./shared/native/hooks/useNativeKeyboard.js";
|
|
105
|
+
import { useAppState as pi } from "./shared/native/hooks/useAppState.js";
|
|
106
|
+
import { useDeviceInfo as mi } from "./shared/native/hooks/useDeviceInfo.js";
|
|
107
|
+
import { useHaptics as hi } from "./shared/native/hooks/useHaptics.js";
|
|
108
|
+
import { useStatusBar as gi } from "./shared/native/hooks/useStatusBar.js";
|
|
109
109
|
import "./shared-native.js";
|
|
110
|
-
import { buildActorFallback as
|
|
111
|
-
import { ActorIdentity as
|
|
110
|
+
import { buildActorFallback as _i, useActorProfiles as vi } from "./shared/actors/useActorProfiles.js";
|
|
111
|
+
import { ActorIdentity as yi } from "./shared/actors/ActorIdentity.js";
|
|
112
112
|
import "./shared/actors/index.js";
|
|
113
113
|
//#region src/shared/index.ts
|
|
114
|
-
var
|
|
114
|
+
var bi = "1.0.0";
|
|
115
115
|
//#endregion
|
|
116
|
-
export {
|
|
116
|
+
export { Ft as AccessDenied, yi as ActorIdentity, Me as ApolloClient, Ne as ApolloProvider, Gt as AppErrorBoundary, ot as AppInitializer, Kr as AppShellProvider, re as BACKEND_ERROR_EVENT, jn as BREAKPOINTS, xn as BackendAuditSink, bn as BroadcastChannelSink, W as COMMON_SHELL_LESS_ROUTES, ie as CONNECTION_STATUS_EVENT, Ht as ConditionalShell, pt as ConsoleTransport, Qt as ContextConversationWidget, X as DEFAULT_PAGE_SIZE, G as DEFAULT_SHELL_CONFIG, yn as DevtoolsSink, kt as ErrorBoundary, Lt as ErrorFallback, wn as EventBusProvider, bi as FE_SHARED_VERSION, Kt as FeatureFlagProvider, Zt as FeatureGate, Z as GATEWAYS, er as GLOBAL_SHORTCUT_CATEGORIES, Ee as GatewayProvider, Pe as InMemoryCache, pn as KeyboardHelpDialogWrapper, Rt as LoadingFallback, lt as LogLevel, dt as LogManager, ut as Logger, Yn as MODIFIER_KEYS, gr as MicrofrontendContext, Vt as MicrofrontendErrorBoundary, Jr as MicrofrontendProvider, Cn as OtelBrowserSink, dr as PLAN_USAGE_SNAPSHOT_EVENT, Xn as PLATFORM_TYPES, B as PRODUCTS, V as PRODUCT_URLS, Wt as PWAInstallBanner, zt as PageLoadingFallback, Mt as PermissionButton, It as PermissionDenied, Nt as PermissionGate, Pt as PermissionLink, yt as QUOTA_EXHAUSTED_CODE, cr as QUOTA_EXHAUSTED_EVENT, mn as QuotaMeter, bt as RESOURCE_CAP_EXCEEDED_CODE, At as RequireAuth, jt as RequireGuest, Sn as RybbitSink, be as SSELink, tt as SSORedirectSpinner, xt as STORAGE_QUOTA_EXCEEDED_CODE, li as SafeAreaView, Bt as SectionLoadingFallback, Gr as TourInitializer, Or as TourPlayer, Cr as TourPlayerProvider, xr as TourSpotlight, Sr as TourTooltip, Yr as TourTrigger, kr as TourTriggerButton, Br as ToursProvider, St as UPGRADE_ERROR_CODES, hn as UPGRADE_PROMPT_EVENT, vn as UpgradeInlineBanner, gn as UpgradePromptModal, je as WsLink, n as alertTokens, mr as appendContextToPath, Ve as attemptTokenRefresh, _i as buildActorFallback, Ct as buildQuotaExhaustedMessage, p as capitalizeFirst, m as capitalizeWords, r as categoryTokens, nt as checkRemoteSLO, rt as checkSLO, He as clearAuthSessionStorage, it as clearLocalAuthState, qe as clearSSoCookie, Je as clearShellSsoCookies, mt as clearUserContext, Ot as cn, t as createApolloClient, Tn as createEventBus, tr as createGlobalShortcuts, xe as createGraphQLClient, _t as createProfileScopedStorage, vr as detectDeviceType, $t as detectPlatform, ae as dispatchBackendErrorEvent, lr as dispatchQuotaExhausted, _n as dispatchUpgradePrompt, oe as extractBackendError, wt as extractQuotaExhaustedExtensions, Tt as extractUpgradeErrorExtensions, h as formatBytes, g as formatCompactNumber, _ as formatCurrency, v as formatCurrencyCompact, y as formatDate, b as formatDateTime, x as formatDuration, en as formatKeyCombo, S as formatList, C as formatNumber, w as formatOrdinal, T as formatPercentage, E as formatRelativeTime, D as formatTime, i as getAlertTokens, a as getCategoryTokens, tn as getDisplayKeysForPlatform, Q as getGatewayConfig, $ as getGatewayUrl, Se as getGlobalClient, nr as getGlobalShortcutsByCategory, ee as getGraphQLEndpoint, Xr as getNativeBridge, Zr as getPlatform, H as getProductUrl, U as getProductsWithUrls, vt as getProfileScopedKey, o as getProgressTokens, yr as getResponsiveSelector, at as getSSORedirectUrl, Ye as getSSoCookie, K as getShellConfig, nn as getShortcutLabel, s as getStatusBadgeTokens, c as getStatusTokens, fe as getStoredAuthToken, pe as getStoredLocale, me as getStoredOrganizationId, he as getStoredProjectId, ge as getStoredWorkspaceId, _e as getStoredWorkspaceToken, jr as getTourContextRank, Mr as getTourRouteCatalog, Nr as getTourRouteModules, Pr as getTourRoutePages, l as getTrendTokens, Ce as getWorkspaceClient, te as getWorkspaceTokenPayload, Fe as gql, ve as graphqlFetch, Ue as hasAuthGraphQLErrors, we as initializeAppClients, ht as initializeLogger, I as installGatewayFetchRewrite, se as isAbortError, Qr as isAndroid, We as isAuthGraphQLError, Ge as isAuthNetworkError, ce as isBackendErrorDisplay, N as isChunkLoadError, $r as isIOS, rn as isMac, an as isMobileDevice, ei as isNative, Et as isQuotaExhaustedError, Xe as isSharedSsoCookieDomain, q as isShellLessRoute, on as isTabletDevice, Fr as isTourVisibleForContext, le as isTransportError, Ze as isTrustedSsoOrigin, Dt as isUpgradeError, ti as isWeb, ne as isWorkspaceTokenValidForContext, P as lazyWithRetry, ft as logManager, ue as markConnectionHealthy, sn as matchesKeyCombo, rr as mergeShortcuts, ni as nativeConfirm, ri as nativeCopyText, ii as nativeImpact, ai as nativeNotify, oi as nativeOpenUrl, si as nativeShare, ci as nativeToast, cn as normalizeKey, ln as normalizePlatformCombo, Ir as normalizeTourPath, un as parseKeyCombo, O as pluralize, u as progressTokens, fr as publishPlanUsageSnapshot, Qe as readShellSsoCookie, Ke as redirectToLogin, Lr as registerTourRouteCatalog, Te as resetAppClients, qr as resolveAppShellObservabilityConfig, z as resolveAuthBridgeConfig, L as resolveGatewayBases, ye as resolveGatewayUrl, F as resolveGatewayUrls, Rr as resolveTourTargetPath, $e as setSSoCookie, et as setShellSsoCookies, gt as setUserContext, dn as shouldEnableKeyboardShortcuts, fn as shouldIgnoreShortcut, J as shouldShowBreadcrumb, Y as shouldShowSidebar, de as shouldToastBackendError, k as slugify, d as statusTokens, R as suppressConsole, A as toCamelCase, j as toPascalCase, f as trendTokens, M as truncateText, vi as useActorProfiles, Ie as useApolloClient, pi as useAppState, qn as useAsync, Jn as useAsyncImmediate, Vr as useAutoStartTour, Mn as useBreakpoint, Wn as useConditionalToggle, Rn as useCopyToClipboard, hr as useCurrentContextSearchParams, kn as useDebounce, mi as useDeviceInfo, En as useEvent, Dn as useEventBus, On as useEventEmitter, Jt as useFeatureFlag, Yt as useFeatureFlagDetails, Xt as useFeatureFlagValue, qt as useFeatureFlags, De as useGateway, Oe as useGatewayClient, hi as useHaptics, ar as useHasAnimated, Qn as useHotkeys, wr as useIsTourPlaying, In as useKeyPress, Ln as useKeyboardShortcut, Zn as useKeyboardShortcuts, Le as useLazyQuery, zn as useLocalStorage, ir as useLogger, e as useMediaQuery, _r as useMicrofrontendContext, Nn as useMobileBreakpoint, Re as useMutation, fi as useNativeKeyboard, ui as useNativePlatform, Pn as useOnClickOutside, Fn as useOnClickOutsideWithRef, Ut as usePWA, Ar as usePlayTour, Vn as usePrevious, Hn as usePreviousDistinct, Un as usePreviousHistory, ze as useQuery, ur as useQuotaErrorToast, sr as useRecordProductVisit, or as useReferralAttribution, st as useRegistryHelpers, di as useSafeArea, ke as useSafeGateway, Ae as useSafeGatewayClient, Hr as useSafeToursContext, Bn as useSessionStorage, ct as useShellNavigate, $n as useShortcutHelp, Tr as useStartTour, gi as useStatusBar, Er as useStopTour, Be as useSubscription, An as useThrottle, Gn as useToggle, Kn as useToggleObject, br as useTourPlayer, Dr as useTourPlayerContext, Ur as useTours, Wr as useToursContext, pr as useUpgradePrompt, zr as withTourProgressStatus };
|