@burdenoff/fe-libs 2026.803.4 → 2026.803.6
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/notificationCenter/useNotificationCenter.d.ts.map +1 -1
- package/dist/chrome/notificationCenter/useNotificationCenter.js +71 -67
- package/dist/shared/graphql/index.d.ts +1 -0
- package/dist/shared/graphql/index.d.ts.map +1 -1
- package/dist/shared/graphql/useHasAuthToken.d.ts +9 -0
- package/dist/shared/graphql/useHasAuthToken.d.ts.map +1 -0
- package/dist/shared/graphql/useHasAuthToken.js +22 -0
- package/dist/shared/hooks/shell/useGlobalSearch.d.ts.map +1 -1
- package/dist/shared/hooks/shell/useGlobalSearch.js +4 -0
- package/dist/shared/providers/shell/PersonaSurfaceProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/PersonaSurfaceProvider.js +67 -66
- package/dist/shared-graphql.js +5 -4
- package/dist/shared.js +99 -98
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNotificationCenter.d.ts","sourceRoot":"","sources":["../../../src/chrome/notificationCenter/useNotificationCenter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"useNotificationCenter.d.ts","sourceRoot":"","sources":["../../../src/chrome/notificationCenter/useNotificationCenter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAWnD,OAAO,KAAK,EAEV,SAAS,EACT,gBAAgB,EAEhB,UAAU,EAEX,MAAM,SAAS,CAAC;AAEjB,UAAU,yBAAyB;IACjC,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,MAAM,EACN,IAAI,EACJ,SAAS,EACT,UAAU,EACV,SAAS,GACV,EAAE,yBAAyB;;;;;;;;2BA4IsB,MAAM;;uBAkCzC,MAAM;EA+BpB"}
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useHasAuthToken as e } from "../../shared/graphql/useHasAuthToken.js";
|
|
2
|
+
import { COUNTS_BY_APP_QUERY as t, DELETE_NOTIFICATION_MUTATION as n, MARK_ALL_READ_MUTATION as r, MARK_READ_MUTATION as i, MY_UNREAD_COUNT_SUBSCRIPTION as a, NOTIFICATIONS_QUERY as o, UNREAD_COUNT_QUERY as s } from "./gql.js";
|
|
3
|
+
import { useCallback as c, useEffect as l, useRef as u, useState as d } from "react";
|
|
3
4
|
//#region src/chrome/notificationCenter/useNotificationCenter.ts
|
|
4
|
-
function
|
|
5
|
-
let [
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}, [
|
|
9
|
-
let
|
|
5
|
+
function f({ client: f, isOpen: p, lazy: m, filterTab: h, typeFilter: g, appFilter: _ }) {
|
|
6
|
+
let [v, y] = d([]), [b, x] = d(0), [S, C] = d({}), [w, T] = d(0), [E, D] = d(!1), [O, k] = d(null), A = u(f);
|
|
7
|
+
l(() => {
|
|
8
|
+
A.current = f;
|
|
9
|
+
}, [f]);
|
|
10
|
+
let j = c(async () => {
|
|
10
11
|
try {
|
|
11
|
-
let e = (await
|
|
12
|
-
query:
|
|
12
|
+
let e = (await A.current.query({
|
|
13
|
+
query: s,
|
|
13
14
|
variables: { filter: {
|
|
14
15
|
channel: "IN_APP",
|
|
15
16
|
archived: !1
|
|
16
17
|
} },
|
|
17
18
|
fetchPolicy: "network-only"
|
|
18
19
|
})).data;
|
|
19
|
-
|
|
20
|
+
x(e?.myUnreadNotificationCount ?? 0);
|
|
20
21
|
} catch {}
|
|
21
|
-
}, []), [
|
|
22
|
-
|
|
23
|
-
let e = () =>
|
|
22
|
+
}, []), [M, N] = d(!1);
|
|
23
|
+
l(() => {
|
|
24
|
+
let e = () => N(!0);
|
|
24
25
|
if (typeof window < "u" && "requestIdleCallback" in window) {
|
|
25
26
|
let t = window.requestIdleCallback(e, { timeout: 2e3 });
|
|
26
27
|
return () => {
|
|
@@ -29,11 +30,13 @@ function d({ client: d, isOpen: f, lazy: p, filterTab: m, typeFilter: h, appFilt
|
|
|
29
30
|
}
|
|
30
31
|
let t = setTimeout(e, 500);
|
|
31
32
|
return () => clearTimeout(t);
|
|
32
|
-
}, [])
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
}, []);
|
|
34
|
+
let P = e();
|
|
35
|
+
l(() => {
|
|
36
|
+
if (m || !M || !P) return;
|
|
37
|
+
j();
|
|
38
|
+
let e = A.current.subscribe({
|
|
39
|
+
query: a,
|
|
37
40
|
variables: { filter: {
|
|
38
41
|
channel: "IN_APP",
|
|
39
42
|
archived: !1
|
|
@@ -42,28 +45,29 @@ function d({ client: d, isOpen: f, lazy: p, filterTab: m, typeFilter: h, appFilt
|
|
|
42
45
|
}).subscribe({
|
|
43
46
|
next: (e) => {
|
|
44
47
|
let t = e.data;
|
|
45
|
-
typeof t?.myUnreadNotificationCountStream == "number" &&
|
|
48
|
+
typeof t?.myUnreadNotificationCountStream == "number" && x(t.myUnreadNotificationCountStream);
|
|
46
49
|
},
|
|
47
50
|
error: () => {}
|
|
48
|
-
}), t = setInterval(
|
|
51
|
+
}), t = setInterval(j, 300 * 1e3);
|
|
49
52
|
return () => {
|
|
50
53
|
e.unsubscribe(), clearInterval(t);
|
|
51
54
|
};
|
|
52
55
|
}, [
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
+
j,
|
|
57
|
+
m,
|
|
58
|
+
M,
|
|
59
|
+
P
|
|
56
60
|
]);
|
|
57
|
-
let
|
|
58
|
-
|
|
61
|
+
let F = c(async () => {
|
|
62
|
+
D(!0), k(null);
|
|
59
63
|
try {
|
|
60
64
|
let e = {
|
|
61
65
|
channel: "IN_APP",
|
|
62
66
|
archived: !1
|
|
63
67
|
};
|
|
64
|
-
|
|
65
|
-
let t = (await
|
|
66
|
-
query:
|
|
68
|
+
h === "unread" && (e.isRead = !1), h === "read" && (e.isRead = !0), g !== "ALL" && (e.type = g), _ !== "ALL" && (e.appName = _);
|
|
69
|
+
let t = (await A.current.query({
|
|
70
|
+
query: o,
|
|
67
71
|
variables: {
|
|
68
72
|
filter: e,
|
|
69
73
|
limit: 20,
|
|
@@ -71,79 +75,79 @@ function d({ client: d, isOpen: f, lazy: p, filterTab: m, typeFilter: h, appFilt
|
|
|
71
75
|
},
|
|
72
76
|
fetchPolicy: "network-only"
|
|
73
77
|
})).data?.notifications;
|
|
74
|
-
t && (
|
|
78
|
+
t && (y(t.items ?? []), T(t.total ?? 0));
|
|
75
79
|
} catch (e) {
|
|
76
|
-
|
|
80
|
+
k(e instanceof Error ? e.message : "Failed to load notifications");
|
|
77
81
|
} finally {
|
|
78
|
-
|
|
82
|
+
D(!1);
|
|
79
83
|
}
|
|
80
84
|
}, [
|
|
81
|
-
m,
|
|
82
85
|
h,
|
|
83
|
-
g
|
|
84
|
-
|
|
86
|
+
g,
|
|
87
|
+
_
|
|
88
|
+
]), I = c(async () => {
|
|
85
89
|
try {
|
|
86
|
-
let
|
|
87
|
-
query:
|
|
90
|
+
let e = (await A.current.query({
|
|
91
|
+
query: t,
|
|
88
92
|
fetchPolicy: "network-only"
|
|
89
93
|
})).data;
|
|
90
|
-
|
|
94
|
+
C(e?.myNotificationCountsByApp ?? {});
|
|
91
95
|
} catch {}
|
|
92
96
|
}, []);
|
|
93
|
-
return
|
|
94
|
-
|
|
97
|
+
return l(() => {
|
|
98
|
+
p && (m && j(), F(), I(), j());
|
|
95
99
|
}, [
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
p,
|
|
101
|
+
F,
|
|
102
|
+
I,
|
|
103
|
+
j,
|
|
104
|
+
m
|
|
101
105
|
]), {
|
|
102
|
-
notifications:
|
|
103
|
-
unreadCount:
|
|
104
|
-
countsByApp:
|
|
105
|
-
totalCount:
|
|
106
|
-
loading:
|
|
107
|
-
error:
|
|
108
|
-
fetchNotifications:
|
|
109
|
-
handleMarkAsRead:
|
|
106
|
+
notifications: v,
|
|
107
|
+
unreadCount: b,
|
|
108
|
+
countsByApp: S,
|
|
109
|
+
totalCount: w,
|
|
110
|
+
loading: E,
|
|
111
|
+
error: O,
|
|
112
|
+
fetchNotifications: F,
|
|
113
|
+
handleMarkAsRead: c(async (e) => {
|
|
110
114
|
try {
|
|
111
|
-
await
|
|
112
|
-
mutation:
|
|
115
|
+
await A.current.mutate({
|
|
116
|
+
mutation: i,
|
|
113
117
|
variables: { id: e }
|
|
114
|
-
}),
|
|
118
|
+
}), y((t) => t.map((t) => t.id === e ? {
|
|
115
119
|
...t,
|
|
116
120
|
isRead: !0,
|
|
117
121
|
readAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
118
|
-
} : t)),
|
|
122
|
+
} : t)), x((e) => Math.max(0, e - 1));
|
|
119
123
|
} catch (e) {
|
|
120
124
|
console.error("Failed to mark notification as read:", e);
|
|
121
125
|
}
|
|
122
126
|
}, []),
|
|
123
|
-
handleMarkAllAsRead:
|
|
127
|
+
handleMarkAllAsRead: c(async () => {
|
|
124
128
|
try {
|
|
125
|
-
await
|
|
129
|
+
await A.current.mutate({ mutation: r }), y((e) => e.map((e) => ({
|
|
126
130
|
...e,
|
|
127
131
|
isRead: !0,
|
|
128
132
|
readAt: e.readAt || (/* @__PURE__ */ new Date()).toISOString()
|
|
129
|
-
}))),
|
|
133
|
+
}))), x(0);
|
|
130
134
|
} catch (e) {
|
|
131
135
|
console.error("Failed to mark all notifications as read:", e);
|
|
132
136
|
}
|
|
133
137
|
}, []),
|
|
134
|
-
handleDelete:
|
|
138
|
+
handleDelete: c(async (e) => {
|
|
135
139
|
try {
|
|
136
|
-
await
|
|
137
|
-
mutation:
|
|
140
|
+
await A.current.mutate({
|
|
141
|
+
mutation: n,
|
|
138
142
|
variables: { id: e }
|
|
139
143
|
});
|
|
140
|
-
let
|
|
141
|
-
|
|
144
|
+
let t = v.find((t) => t.id === e);
|
|
145
|
+
y((t) => t.filter((t) => t.id !== e)), T((e) => Math.max(0, e - 1)), t && !t.isRead && x((e) => Math.max(0, e - 1));
|
|
142
146
|
} catch (e) {
|
|
143
147
|
console.error("Failed to delete notification:", e);
|
|
144
148
|
}
|
|
145
|
-
}, [
|
|
149
|
+
}, [v])
|
|
146
150
|
};
|
|
147
151
|
}
|
|
148
152
|
//#endregion
|
|
149
|
-
export {
|
|
153
|
+
export { f as useNotificationCenter };
|
|
@@ -2,6 +2,7 @@ export { createGraphQLClient, initializeAppClients, getWorkspaceClient, getGloba
|
|
|
2
2
|
export { GatewayProvider, useGateway, useGatewayClient, useSafeGateway, useSafeGatewayClient, type GatewayContextValue, type GatewayProviderProps, } from './GatewayContext';
|
|
3
3
|
export { graphqlFetch, clearGraphqlFetchResponseCache, getStoredAuthToken, getStoredWorkspaceToken, getStoredWorkspaceId, getStoredLocale, getStoredOrganizationId, getStoredProjectId, resolveGatewayUrl, type GraphQLFetchOptions, type GraphQLResponse, } from './fetch';
|
|
4
4
|
export { getWorkspaceTokenPayload, isWorkspaceTokenValidForContext, type WorkspaceTokenContext, type WorkspaceTokenPayload, } from './workspaceToken';
|
|
5
|
+
export { useHasAuthToken } from './useHasAuthToken';
|
|
5
6
|
export { SSELink, type SSELinkOptions } from './links/sse-link';
|
|
6
7
|
export { WsLink, type WsLinkOptions } from './links/ws-link';
|
|
7
8
|
export { ApolloClient, InMemoryCache, type NormalizedCacheObject } from '@apollo/client/core';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/graphql/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,OAAO,GACb,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,YAAY,EACZ,8BAA8B,EAC9B,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,eAAe,EACf,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,EACjB,KAAK,mBAAmB,EACxB,KAAK,eAAe,GACrB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,wBAAwB,EACxB,+BAA+B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAI7D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE9F,OAAO,EACL,cAAc,EACd,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,eAAe,EACf,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/graphql/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,OAAO,GACb,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,YAAY,EACZ,8BAA8B,EAC9B,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,eAAe,EACf,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,EACjB,KAAK,mBAAmB,EACxB,KAAK,eAAe,GACrB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,wBAAwB,EACxB,+BAA+B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAI7D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE9F,OAAO,EACL,cAAc,EACd,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,eAAe,EACf,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* True once the active profile has a non-expired access token.
|
|
3
|
+
*
|
|
4
|
+
* Re-checks on `bf-profile-storage-change` (same-tab login, profile switch)
|
|
5
|
+
* and on `storage` (another tab), so a caller gated on it starts as soon as
|
|
6
|
+
* the token appears rather than waiting for an unrelated re-render.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useHasAuthToken(): boolean;
|
|
9
|
+
//# sourceMappingURL=useHasAuthToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useHasAuthToken.d.ts","sourceRoot":"","sources":["../../../src/shared/graphql/useHasAuthToken.ts"],"names":[],"mappings":"AA4BA;;;;;;GAMG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAmBzC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PROFILE_STORAGE_CHANGE_EVENT as e } from "../providers/shell/ProfileStorageManager.js";
|
|
2
|
+
import { getStoredAuthToken as t } from "./fetch.js";
|
|
3
|
+
import { useEffect as n, useState as r } from "react";
|
|
4
|
+
//#region src/shared/graphql/useHasAuthToken.ts
|
|
5
|
+
function i() {
|
|
6
|
+
try {
|
|
7
|
+
return !!t();
|
|
8
|
+
} catch {
|
|
9
|
+
return !1;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function a() {
|
|
13
|
+
let [t, a] = r(i);
|
|
14
|
+
return n(() => {
|
|
15
|
+
let t = () => a(i());
|
|
16
|
+
if (t(), !(typeof window > "u")) return window.addEventListener(e, t), window.addEventListener("storage", t), () => {
|
|
17
|
+
window.removeEventListener(e, t), window.removeEventListener("storage", t);
|
|
18
|
+
};
|
|
19
|
+
}, []), t;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { a as useHasAuthToken };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGlobalSearch.d.ts","sourceRoot":"","sources":["../../../../src/shared/hooks/shell/useGlobalSearch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAgB,MAAM,aAAa,CAAC;AAM9E,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,YAAY,GAAG,UAAU,GAAG,aAAa,CAAC;AAEpF,sDAAsD;AACtD,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B;AAED,0CAA0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,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACzC,wDAAwD;IACxD,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,kCAAkC;IAClC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,0CAA0C;IAC1C,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4BAA4B;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,iEAAiE;IACjE,UAAU,EAAE,CACV,KAAK,EAAE,MAAM,EACb,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,aAAa,KACpB,OAAO,CAAC,cAAc,CAAC,CAAC;IAC7B,qEAAqE;IACrE,MAAM,EAAE,CACN,KAAK,EAAE,MAAM,EACb,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,aAAa,KACpB,OAAO,CAAC,SAAS,YAAY,EAAE,CAAC,CAAC;IACtC,WAAW,EAAE,OAAO,CAAC;CACtB;AAsGD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CA6C7D,CAAC;AAEF,wBAAgB,6BAA6B,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAGrF;AA6PD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,eAAe,IAAI,qBAAqB,CAiKvD"}
|
|
@@ -131,6 +131,8 @@ function c(e, t, n) {
|
|
|
131
131
|
case "ecoreductiontarget": return "/ecoimpacthub/carbon";
|
|
132
132
|
case "ecoreportlineitem": return "/ecoimpacthub/reports";
|
|
133
133
|
case "ecometric": return "/ecoimpacthub";
|
|
134
|
+
case "workflowdefinition": return `/workflows/resolve/${t}`;
|
|
135
|
+
case "workflowrun": return `/workflows/runs/${t}`;
|
|
134
136
|
default: return `/entities/${e}/${t}`;
|
|
135
137
|
}
|
|
136
138
|
}
|
|
@@ -189,6 +191,8 @@ function l(e) {
|
|
|
189
191
|
case "ecoreport": return "reports";
|
|
190
192
|
case "ecoreportlineitem": return "reportLineItems";
|
|
191
193
|
case "ecoalertthreshold": return "alertThresholds";
|
|
194
|
+
case "workflowdefinition":
|
|
195
|
+
case "workflowrun": return "workflows";
|
|
192
196
|
default: return e;
|
|
193
197
|
}
|
|
194
198
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PersonaSurfaceProvider.d.ts","sourceRoot":"","sources":["../../../../src/shared/providers/shell/PersonaSurfaceProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PersonaSurfaceProvider.d.ts","sourceRoot":"","sources":["../../../../src/shared/providers/shell/PersonaSurfaceProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAkBf,MAAM,WAAW,wBAAwB;IACvC,6EAA6E;IAC7E,EAAE,EAAE,MAAM,CAAC;IACX,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB;;;;;OAKG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACzC;AAED,6EAA6E;AAC7E,eAAO,M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AA2B;IAC1C,QAAQ,EAAE,SAAS,CAAC;IACpB,gEAAgE;IAChE,QAAQ,EAAE,wBAAwB,EAAE,CAAC;IACrC;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,QAAQ,CAAC;IACjC;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAClC;AAED,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,OAAqB,EACrB,WAAqB,GACtB,EAAE,2BAA2B,2CAoW7B;AAMD,uEAAuE;AACvE,wBAAgB,iBAAiB,IAAI,0BAA0B,CAM9D;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,IAAI,0BAA0B,GAAG,IAAI,CAEzE"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { graphqlFetch as e } from "../../graphql/fetch.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { useHasAuthToken as t } from "../../graphql/useHasAuthToken.js";
|
|
3
|
+
import { useSafePermissions as n } from "./PermissionProvider.js";
|
|
4
|
+
import { createNavView as r, deleteNavView as i, fetchNavPreferences as ee, saveNavPreferences as te, updateNavView as ne } from "./personaSurfaceRemote.js";
|
|
5
|
+
import { createContext as a, use as o, useCallback as s, useEffect as c, useMemo as l, useRef as re, useState as u } from "react";
|
|
6
|
+
import { jsx as ie } from "react/jsx-runtime";
|
|
6
7
|
import { useQuery as d } from "@tanstack/react-query";
|
|
7
8
|
//#region src/shared/providers/shell/PersonaSurfaceProvider.tsx
|
|
8
9
|
var f = "everything", p = a(null), m = [
|
|
@@ -46,13 +47,13 @@ function _(e, t) {
|
|
|
46
47
|
for (let t of e) if (t.roleNames.some((e) => n.has(e))) return t.id;
|
|
47
48
|
return f;
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
+
function ae(e, t) {
|
|
50
51
|
if (t.templateKey) {
|
|
51
52
|
for (let n of e) if (n.templateKeys?.includes(t.templateKey)) return n.id;
|
|
52
53
|
}
|
|
53
54
|
return _(e, [t.roleName]);
|
|
54
55
|
}
|
|
55
|
-
function
|
|
56
|
+
function oe(e, t) {
|
|
56
57
|
return `boff-persona:${e}:${t ?? "no-scope"}`;
|
|
57
58
|
}
|
|
58
59
|
function v(e) {
|
|
@@ -72,9 +73,9 @@ function y(e, t) {
|
|
|
72
73
|
!t.surfaceId && !n ? window.localStorage.removeItem(e) : window.localStorage.setItem(e, JSON.stringify(t));
|
|
73
74
|
} catch {}
|
|
74
75
|
}
|
|
75
|
-
var
|
|
76
|
+
var se = "\n query NavSimulatableRoles($scopeId: String!, $filter: RoleFilterInput, $pagination: PaginationInput) {\n roles(scopeId: $scopeId, filter: $filter, pagination: $pagination) {\n id\n name\n templateKey\n priority\n defaultPermissions {\n resourceType\n level\n }\n }\n }\n";
|
|
76
77
|
function b({ children: a, surfaces: o, productKey: m, gateway: h = "workspace", persistence: b = "local" }) {
|
|
77
|
-
let x =
|
|
78
|
+
let x = n(), S = x?.scopeId ?? null, C = oe(m, S), w = b === "remote", [T, E] = u(() => v(C));
|
|
78
79
|
c(() => {
|
|
79
80
|
E(v(C));
|
|
80
81
|
}, [C]);
|
|
@@ -82,15 +83,15 @@ function b({ children: a, surfaces: o, productKey: m, gateway: h = "workspace",
|
|
|
82
83
|
c(() => {
|
|
83
84
|
O([]);
|
|
84
85
|
}, [S]);
|
|
85
|
-
let k = d({
|
|
86
|
+
let ce = t(), k = d({
|
|
86
87
|
queryKey: [
|
|
87
88
|
"persona-nav-preferences",
|
|
88
89
|
h,
|
|
89
90
|
S,
|
|
90
91
|
m
|
|
91
92
|
],
|
|
92
|
-
queryFn: () =>
|
|
93
|
-
enabled: w && !!S && !!x,
|
|
93
|
+
queryFn: () => ee(h, S, m),
|
|
94
|
+
enabled: w && !!S && !!x && ce,
|
|
94
95
|
staleTime: 60 * 1e3,
|
|
95
96
|
retry: 2
|
|
96
97
|
}), { data: A } = k;
|
|
@@ -102,9 +103,9 @@ function b({ children: a, surfaces: o, productKey: m, gateway: h = "workspace",
|
|
|
102
103
|
};
|
|
103
104
|
E(e), y(C, e), O(A.customViews);
|
|
104
105
|
}, [A, C]);
|
|
105
|
-
let j =
|
|
106
|
+
let j = re(null), M = s((e) => {
|
|
106
107
|
!w || !S || (j.current && clearTimeout(j.current), j.current = setTimeout(() => {
|
|
107
|
-
|
|
108
|
+
te(h, {
|
|
108
109
|
workspaceId: S,
|
|
109
110
|
productSlug: m,
|
|
110
111
|
activeViewId: e.surfaceId ?? null,
|
|
@@ -138,7 +139,7 @@ function b({ children: a, surfaces: o, productKey: m, gateway: h = "workspace",
|
|
|
138
139
|
],
|
|
139
140
|
queryFn: async () => {
|
|
140
141
|
let t = await e({
|
|
141
|
-
query:
|
|
142
|
+
query: se,
|
|
142
143
|
variables: {
|
|
143
144
|
scopeId: S,
|
|
144
145
|
filter: { product: m },
|
|
@@ -160,26 +161,26 @@ function b({ children: a, surfaces: o, productKey: m, gateway: h = "workspace",
|
|
|
160
161
|
templateKey: e.templateKey,
|
|
161
162
|
permissionStrings: g(e)
|
|
162
163
|
});
|
|
163
|
-
}, []),
|
|
164
|
+
}, []), le = s(() => {
|
|
164
165
|
F(null);
|
|
165
|
-
}, []),
|
|
166
|
+
}, []), U = l(() => x?.permissions?.roles ?? [], [x?.permissions?.roles]), W = l(() => P ? ae(o, P) : _(o, U), [
|
|
166
167
|
o,
|
|
167
168
|
P,
|
|
168
|
-
|
|
169
|
-
]),
|
|
170
|
-
if (P) return
|
|
169
|
+
U
|
|
170
|
+
]), G = l(() => {
|
|
171
|
+
if (P) return W;
|
|
171
172
|
let e = T.surfaceId;
|
|
172
|
-
return e && (e === "everything" || o.some((t) => t.id === e) || D.some((t) => t.id === e)) ? e :
|
|
173
|
+
return e && (e === "everything" || o.some((t) => t.id === e) || D.some((t) => t.id === e)) ? e : W;
|
|
173
174
|
}, [
|
|
174
175
|
P,
|
|
175
|
-
|
|
176
|
+
W,
|
|
176
177
|
T.surfaceId,
|
|
177
178
|
o,
|
|
178
179
|
D
|
|
179
|
-
]),
|
|
180
|
-
let e = o.find((e) => e.id ===
|
|
180
|
+
]), K = l(() => {
|
|
181
|
+
let e = o.find((e) => e.id === G);
|
|
181
182
|
if (e) return e;
|
|
182
|
-
let t = D.find((e) => e.id ===
|
|
183
|
+
let t = D.find((e) => e.id === G);
|
|
183
184
|
return t ? {
|
|
184
185
|
id: t.id,
|
|
185
186
|
label: t.name,
|
|
@@ -190,44 +191,44 @@ function b({ children: a, surfaces: o, productKey: m, gateway: h = "workspace",
|
|
|
190
191
|
}, [
|
|
191
192
|
o,
|
|
192
193
|
D,
|
|
193
|
-
|
|
194
|
-
]),
|
|
195
|
-
let e = new Set(
|
|
194
|
+
G
|
|
195
|
+
]), q = l(() => {
|
|
196
|
+
let e = new Set(U);
|
|
196
197
|
return [...o.filter((t) => R || t.roleNames.some((t) => e.has(t))).map((e) => e.id), f];
|
|
197
198
|
}, [
|
|
198
199
|
o,
|
|
199
200
|
R,
|
|
200
|
-
|
|
201
|
-
]),
|
|
201
|
+
U
|
|
202
|
+
]), J = s((e) => {
|
|
202
203
|
N((t) => ({
|
|
203
204
|
...t,
|
|
204
205
|
surfaceId: e ?? void 0
|
|
205
206
|
}));
|
|
206
|
-
}, [N]),
|
|
207
|
+
}, [N]), Y = l(() => T.overridesBySurface?.[G] ?? {}, [T.overridesBySurface, G]), X = s((e, t) => {
|
|
207
208
|
N((n) => {
|
|
208
|
-
let r = { ...n.overridesBySurface ?? {} }, i = { ...r[
|
|
209
|
-
return t === null ? delete i[e] : i[e] = t, Object.keys(i).length === 0 ? delete r[
|
|
209
|
+
let r = { ...n.overridesBySurface ?? {} }, i = { ...r[G] ?? {} };
|
|
210
|
+
return t === null ? delete i[e] : i[e] = t, Object.keys(i).length === 0 ? delete r[G] : r[G] = i, {
|
|
210
211
|
...n,
|
|
211
212
|
overridesBySurface: r
|
|
212
213
|
};
|
|
213
214
|
});
|
|
214
|
-
}, [N,
|
|
215
|
+
}, [N, G]), Z = s(() => {
|
|
215
216
|
N((e) => {
|
|
216
217
|
let t = { ...e.overridesBySurface ?? {} };
|
|
217
|
-
return delete t[
|
|
218
|
+
return delete t[G], {
|
|
218
219
|
...e,
|
|
219
220
|
overridesBySurface: t
|
|
220
221
|
};
|
|
221
222
|
});
|
|
222
|
-
}, [N,
|
|
223
|
+
}, [N, G]), [Q, ue] = u(!1), de = w && !!S && !!k.data, fe = s(async (e, t, n) => {
|
|
223
224
|
if (!w || !S) return null;
|
|
224
225
|
try {
|
|
225
|
-
let i = await
|
|
226
|
+
let i = await r(h, {
|
|
226
227
|
workspaceId: S,
|
|
227
228
|
productSlug: m,
|
|
228
229
|
name: e,
|
|
229
230
|
visibleItems: t,
|
|
230
|
-
homePath:
|
|
231
|
+
homePath: n ?? null
|
|
231
232
|
});
|
|
232
233
|
return O((e) => [...e, i]), N((e) => ({
|
|
233
234
|
...e,
|
|
@@ -242,10 +243,10 @@ function b({ children: a, surfaces: o, productKey: m, gateway: h = "workspace",
|
|
|
242
243
|
h,
|
|
243
244
|
m,
|
|
244
245
|
N
|
|
245
|
-
]),
|
|
246
|
+
]), pe = s(async (e, t) => {
|
|
246
247
|
if (!w || !S) return !1;
|
|
247
248
|
try {
|
|
248
|
-
let n = await
|
|
249
|
+
let n = await ne(h, e, {
|
|
249
250
|
workspaceId: S,
|
|
250
251
|
name: t
|
|
251
252
|
});
|
|
@@ -260,10 +261,10 @@ function b({ children: a, surfaces: o, productKey: m, gateway: h = "workspace",
|
|
|
260
261
|
w,
|
|
261
262
|
S,
|
|
262
263
|
h
|
|
263
|
-
]),
|
|
264
|
+
]), $ = s(async (e) => {
|
|
264
265
|
if (!w || !S) return !1;
|
|
265
266
|
try {
|
|
266
|
-
return await
|
|
267
|
+
return await i(h, e, S), O((t) => t.filter((t) => t.id !== e)), N((t) => {
|
|
267
268
|
let n = { ...t.overridesBySurface ?? {} };
|
|
268
269
|
return delete n[e], {
|
|
269
270
|
surfaceId: t.surfaceId === e ? void 0 : t.surfaceId,
|
|
@@ -278,57 +279,57 @@ function b({ children: a, surfaces: o, productKey: m, gateway: h = "workspace",
|
|
|
278
279
|
S,
|
|
279
280
|
h,
|
|
280
281
|
N
|
|
281
|
-
]),
|
|
282
|
+
]), me = l(() => ({
|
|
282
283
|
surfaces: o,
|
|
283
|
-
activeSurfaceId:
|
|
284
|
-
activeSurface:
|
|
285
|
-
resolvedSurfaceId:
|
|
286
|
-
availableSurfaceIds:
|
|
287
|
-
setSurfaceId:
|
|
288
|
-
overrides:
|
|
289
|
-
setItemOverride:
|
|
290
|
-
resetOverrides:
|
|
291
|
-
customizeOpen:
|
|
292
|
-
setCustomizeOpen:
|
|
284
|
+
activeSurfaceId: G,
|
|
285
|
+
activeSurface: K,
|
|
286
|
+
resolvedSurfaceId: W,
|
|
287
|
+
availableSurfaceIds: q,
|
|
288
|
+
setSurfaceId: J,
|
|
289
|
+
overrides: Y,
|
|
290
|
+
setItemOverride: X,
|
|
291
|
+
resetOverrides: Z,
|
|
292
|
+
customizeOpen: Q,
|
|
293
|
+
setCustomizeOpen: ue,
|
|
293
294
|
canSimulate: z,
|
|
294
295
|
simulation: P,
|
|
295
296
|
startSimulation: H,
|
|
296
|
-
stopSimulation:
|
|
297
|
+
stopSimulation: le,
|
|
297
298
|
simulatableRoles: B.data ?? [],
|
|
298
299
|
simulatableRolesLoading: B.isLoading && I,
|
|
299
300
|
loadSimulatableRoles: V,
|
|
300
301
|
customViews: D,
|
|
301
|
-
canManageViews:
|
|
302
|
-
createCustomView:
|
|
303
|
-
renameCustomView:
|
|
304
|
-
deleteCustomView:
|
|
302
|
+
canManageViews: de,
|
|
303
|
+
createCustomView: fe,
|
|
304
|
+
renameCustomView: pe,
|
|
305
|
+
deleteCustomView: $
|
|
305
306
|
}), [
|
|
306
307
|
o,
|
|
308
|
+
G,
|
|
307
309
|
K,
|
|
310
|
+
W,
|
|
308
311
|
q,
|
|
309
|
-
G,
|
|
310
312
|
J,
|
|
311
313
|
Y,
|
|
312
314
|
X,
|
|
313
315
|
Z,
|
|
314
316
|
Q,
|
|
315
|
-
$,
|
|
316
317
|
z,
|
|
317
318
|
P,
|
|
318
319
|
H,
|
|
319
|
-
|
|
320
|
+
le,
|
|
320
321
|
B.data,
|
|
321
322
|
B.isLoading,
|
|
322
323
|
I,
|
|
323
324
|
V,
|
|
324
325
|
D,
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
326
|
+
de,
|
|
327
|
+
fe,
|
|
328
|
+
pe,
|
|
329
|
+
$
|
|
329
330
|
]);
|
|
330
|
-
return /* @__PURE__ */
|
|
331
|
-
value:
|
|
331
|
+
return /* @__PURE__ */ ie(p.Provider, {
|
|
332
|
+
value: me,
|
|
332
333
|
children: a
|
|
333
334
|
});
|
|
334
335
|
}
|
package/dist/shared-graphql.js
CHANGED
|
@@ -3,7 +3,8 @@ import { clearGraphqlFetchResponseCache as n, getStoredAuthToken as r, getStored
|
|
|
3
3
|
import { SSELink as d } from "./shared/graphql/links/sse-link.js";
|
|
4
4
|
import { createGraphQLClient as f, getGlobalClient as p, getWorkspaceClient as m, initializeAppClients as h, resetAppClients as g } from "./shared/graphql/client.js";
|
|
5
5
|
import { GatewayProvider as _, useGateway as v, useGatewayClient as y, useSafeGateway as b, useSafeGatewayClient as x } from "./shared/graphql/GatewayContext.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
6
|
+
import { useHasAuthToken as S } from "./shared/graphql/useHasAuthToken.js";
|
|
7
|
+
import { WsLink as C } from "./shared/graphql/links/ws-link.js";
|
|
8
|
+
import { ApolloClient as w, InMemoryCache as T, gql as E } from "@apollo/client/core";
|
|
9
|
+
import { ApolloProvider as D, useApolloClient as O, useLazyQuery as k, useMutation as A, useQuery as j, useSubscription as M } from "@apollo/client/react";
|
|
10
|
+
export { w as ApolloClient, D as ApolloProvider, _ as GatewayProvider, T as InMemoryCache, d as SSELink, C as WsLink, n as clearGraphqlFetchResponseCache, f as createGraphQLClient, p as getGlobalClient, r as getStoredAuthToken, i as getStoredLocale, a as getStoredOrganizationId, o as getStoredProjectId, s as getStoredWorkspaceId, c as getStoredWorkspaceToken, m as getWorkspaceClient, e as getWorkspaceTokenPayload, E as gql, l as graphqlFetch, h as initializeAppClients, t as isWorkspaceTokenValidForContext, g as resetAppClients, u as resolveGatewayUrl, O as useApolloClient, v as useGateway, y as useGatewayClient, S as useHasAuthToken, k as useLazyQuery, A as useMutation, j as useQuery, b as useSafeGateway, x as useSafeGatewayClient, M as useSubscription };
|
package/dist/shared.js
CHANGED
|
@@ -16,108 +16,109 @@ import { clearGraphqlFetchResponseCache as pe, getStoredAuthToken as me, getStor
|
|
|
16
16
|
import { SSELink as Se } from "./shared/graphql/links/sse-link.js";
|
|
17
17
|
import { createGraphQLClient as Ce, getGlobalClient as we, getWorkspaceClient as Te, initializeAppClients as Ee, resetAppClients as De } from "./shared/graphql/client.js";
|
|
18
18
|
import { GatewayProvider as Oe, useGateway as ke, useGatewayClient as Ae, useSafeGateway as je, useSafeGatewayClient as Me } from "./shared/graphql/GatewayContext.js";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
19
|
+
import { useHasAuthToken as Ne } from "./shared/graphql/useHasAuthToken.js";
|
|
20
|
+
import { WsLink as Pe } from "./shared/graphql/links/ws-link.js";
|
|
21
|
+
import { ApolloClient as Fe, ApolloProvider as Ie, InMemoryCache as Le, gql as Re, useApolloClient as ze, useLazyQuery as Be, useMutation as Ve, useQuery as He, useSubscription as Ue } from "./shared-graphql.js";
|
|
22
|
+
import { attemptTokenRefresh as We, clearAuthSessionStorage as Ge, hasAuthGraphQLErrors as Ke, isAuthGraphQLError as qe, isAuthNetworkError as Je, redirectToLogin as Ye } from "./shared/utils/authErrorHandling.js";
|
|
23
|
+
import { clearSSoCookie as Xe, clearShellSsoCookies as Ze, getSSoCookie as Qe, isSharedSsoCookieDomain as $e, isTrustedSsoOrigin as et, readShellSsoCookie as tt, setSSoCookie as nt, setShellSsoCookies as rt } from "./shared/utils/authCookie.js";
|
|
24
|
+
import { SSORedirectSpinner as it, checkRemoteSLO as at, checkSLO as ot, clearLocalAuthState as st, getSSORedirectUrl as ct } from "./shared/components/SSORedirectGuard.js";
|
|
25
|
+
import { SSO_DEPOSITED_PARAM as lt, beginSsoNavigation as ut, buildSsoDepositUrl as dt, clearSsoDepositState as ft, clearSsoNavigation as pt, consumeSsoDepositMarker as mt, isSsoNavigationPending as ht, markSsoDepositDone as gt, markSsoDepositPending as _t, mintSsoSessionTokens as vt, readSsoDepositState as yt, shouldAttemptSsoDeposit as bt } from "./shared/utils/ssoDeposit.js";
|
|
26
|
+
import { AppInitializer as xt, useRegistryHelpers as St, useShellNavigate as Ct } from "./shared/utils/appHelpers.js";
|
|
27
|
+
import { LogLevel as wt } from "./shared/logger/types.js";
|
|
28
|
+
import { Logger as Tt } from "./shared/logger/Logger.js";
|
|
29
|
+
import { LogManager as Et, logManager as Dt } from "./shared/logger/LogManager.js";
|
|
30
|
+
import { ConsoleTransport as Ot } from "./shared/logger/ConsoleTransport.js";
|
|
31
|
+
import { clearUserContext as kt, initializeLogger as At, setUserContext as jt } from "./shared/utils/loggerInit.js";
|
|
32
|
+
import { createProfileScopedStorage as Mt, getProfileScopedKey as Nt } from "./shared/utils/profileScopedStorage.js";
|
|
33
|
+
import { QUOTA_EXHAUSTED_CODE as Pt, RESOURCE_CAP_EXCEEDED_CODE as Ft, STORAGE_QUOTA_EXCEEDED_CODE as It, UPGRADE_ERROR_CODES as Lt, buildQuotaExhaustedMessage as Rt, extractQuotaExhaustedExtensions as zt, extractUpgradeErrorExtensions as Bt, isQuotaExhaustedError as Vt, isUpgradeError as Ht } from "./shared/utils/quotaErrors.js";
|
|
34
|
+
import { cn as Ut } from "./shared-utils.js";
|
|
35
|
+
import { ActorIdentity as Wt } from "./shared/actors/ActorIdentity.js";
|
|
36
|
+
import { buildActorFallback as Gt, useActorProfiles as Kt } from "./shared/actors/useActorProfiles.js";
|
|
37
|
+
import { ErrorBoundary as qt } from "./shared/components/ErrorBoundary.js";
|
|
38
|
+
import { RequireAuth as Jt, RequireGuest as Yt } from "./shared/components/RequireAuth.js";
|
|
39
|
+
import { PermissionButton as Xt, PermissionGate as Zt, PermissionLink as Qt } from "./shared/components/PermissionGate.js";
|
|
40
|
+
import { AccessDenied as $t, PermissionDenied as en } from "./shared/components/AccessDenied.js";
|
|
41
|
+
import { ErrorFallback as tn } from "./shared/components/ErrorFallback.js";
|
|
42
|
+
import { LoadingFallback as nn, PageLoadingFallback as rn, SectionLoadingFallback as an } from "./shared/components/LoadingFallback.js";
|
|
43
|
+
import { MicrofrontendErrorBoundary as on } from "./shared/components/MicrofrontendErrorBoundary.js";
|
|
44
|
+
import { ConditionalShell as sn } from "./shared/components/ConditionalShell.js";
|
|
45
|
+
import { usePWA as cn } from "./shared/hooks/usePWA.js";
|
|
46
|
+
import { PWAInstallBanner as ln } from "./shared/components/PWAInstallBanner.js";
|
|
47
|
+
import { ErrorBoundary as un } from "./shared/components/AppErrorBoundary.js";
|
|
48
|
+
import { FeatureFlagProvider as dn, useFeatureFlags as fn } from "./shared/feature-flags/FeatureFlagProvider.js";
|
|
49
|
+
import { useFeatureFlag as pn, useFeatureFlagDetails as mn, useFeatureFlagValue as hn } from "./shared/feature-flags/useFeatureFlag.js";
|
|
50
|
+
import { FeatureGate as gn } from "./shared/feature-flags/FeatureGate.js";
|
|
50
51
|
import "./shared-feature-flags.js";
|
|
51
|
-
import { ContextConversationWidget as
|
|
52
|
-
import { detectPlatform as
|
|
53
|
-
import { KeyboardHelpDialogWrapper as
|
|
54
|
-
import { QuotaMeter as
|
|
55
|
-
import { UPGRADE_PROMPT_EVENT as
|
|
56
|
-
import { UpgradeInlineBanner as
|
|
57
|
-
import { useVoiceInput as
|
|
58
|
-
import { ASSISTANT_WIDGET_TOGGLE_EVENT as
|
|
59
|
-
import { Markdown as
|
|
52
|
+
import { ContextConversationWidget as _n } from "./shared/components/ContextConversationWidget.js";
|
|
53
|
+
import { detectPlatform as vn, formatKeyCombo as yn, getDisplayKeysForPlatform as bn, getShortcutLabel as xn, isMac as Sn, isMobileDevice as Cn, isTabletDevice as wn, matchesKeyCombo as Tn, normalizeKey as En, normalizePlatformCombo as Dn, parseKeyCombo as On, shouldEnableKeyboardShortcuts as kn, shouldIgnoreShortcut as An } from "./shared/keyboard/utils.js";
|
|
54
|
+
import { KeyboardHelpDialogWrapper as jn } from "./shared/components/KeyboardHelpDialogWrapper.js";
|
|
55
|
+
import { QuotaMeter as Mn } from "./shared/components/QuotaMeter.js";
|
|
56
|
+
import { UPGRADE_PROMPT_EVENT as Nn, UpgradePromptModal as Pn, dispatchUpgradePrompt as Fn } from "./shared/components/UpgradePromptModal.js";
|
|
57
|
+
import { UpgradeInlineBanner as In } from "./shared/components/UpgradeInlineBanner.js";
|
|
58
|
+
import { useVoiceInput as Ln } from "./shared/components/assistantWidget/useVoiceInput.js";
|
|
59
|
+
import { ASSISTANT_WIDGET_TOGGLE_EVENT as Rn, AssistantWidget as zn } from "./shared/components/assistantWidget/AssistantWidget.js";
|
|
60
|
+
import { Markdown as Bn } from "./shared/components/Markdown.js";
|
|
60
61
|
import "./shared-components.js";
|
|
61
|
-
import { DevtoolsSink as
|
|
62
|
-
import { BroadcastChannelSink as
|
|
63
|
-
import { BackendAuditSink as
|
|
64
|
-
import { RybbitSink as
|
|
65
|
-
import { OtelBrowserSink as
|
|
66
|
-
import { EventBusProvider as
|
|
67
|
-
import { useDebounce as
|
|
68
|
-
import { useThrottle as
|
|
69
|
-
import { BREAKPOINTS as
|
|
70
|
-
import { useOnClickOutside as
|
|
71
|
-
import { useKeyPress as
|
|
72
|
-
import { useExclusiveMenu as
|
|
73
|
-
import { useLocalStorage as
|
|
74
|
-
import { useSessionStorage as
|
|
75
|
-
import { usePrevious as
|
|
76
|
-
import { useConditionalToggle as
|
|
77
|
-
import { usePagination as
|
|
78
|
-
import { useAsync as
|
|
79
|
-
import { MODIFIER_KEYS as
|
|
80
|
-
import { useKeyboardShortcuts as
|
|
81
|
-
import { useHotkeys as
|
|
82
|
-
import { useShortcutHelp as
|
|
83
|
-
import { GLOBAL_SHORTCUT_CATEGORIES as
|
|
84
|
-
import { useLogger as
|
|
85
|
-
import { useHasAnimated as
|
|
86
|
-
import { useReferralAttribution as
|
|
87
|
-
import { useRecordProductVisit as
|
|
88
|
-
import { QUOTA_EXHAUSTED_EVENT as
|
|
89
|
-
import { PLAN_USAGE_SNAPSHOT_EVENT as
|
|
90
|
-
import { appendContextToPath as
|
|
91
|
-
import { MicrofrontendContext as
|
|
92
|
-
import { detectDeviceType as
|
|
93
|
-
import { useTourPlayer as
|
|
94
|
-
import { TourSpotlight as
|
|
95
|
-
import { TourTooltip as
|
|
96
|
-
import { TourPlayerProvider as
|
|
97
|
-
import { TourPlayer as
|
|
98
|
-
import { getTourContextRank as
|
|
99
|
-
import { withTourProgressStatus as
|
|
100
|
-
import { ToursProvider as
|
|
101
|
-
import { TourInitializer as
|
|
102
|
-
import { AppShellProvider as
|
|
103
|
-
import { MicrofrontendProvider as
|
|
104
|
-
import { TourTrigger as
|
|
62
|
+
import { DevtoolsSink as Vn } from "./shared/events/sinks/DevtoolsSink.js";
|
|
63
|
+
import { BroadcastChannelSink as Hn } from "./shared/events/sinks/BroadcastChannelSink.js";
|
|
64
|
+
import { BackendAuditSink as Un } from "./shared/events/sinks/BackendAuditSink.js";
|
|
65
|
+
import { RybbitSink as Wn } from "./shared/events/sinks/RybbitSink.js";
|
|
66
|
+
import { OtelBrowserSink as Gn } from "./shared/events/sinks/OtelBrowserSink.js";
|
|
67
|
+
import { EventBusProvider as Kn, createEventBus as qn, useEvent as Jn, useEventBus as Yn, useEventEmitter as Xn } from "./shared-events.js";
|
|
68
|
+
import { useDebounce as Zn } from "./shared/hooks/useDebounce.js";
|
|
69
|
+
import { useThrottle as Qn } from "./shared/hooks/useThrottle.js";
|
|
70
|
+
import { BREAKPOINTS as $n, useBreakpoint as er, useMobileBreakpoint as tr } from "./shared/hooks/useBreakpoint.js";
|
|
71
|
+
import { useOnClickOutside as nr, useOnClickOutsideWithRef as rr } from "./shared/hooks/useOnClickOutside.js";
|
|
72
|
+
import { useKeyPress as ir, useKeyboardShortcut as ar } from "./shared/hooks/useKeyPress.js";
|
|
73
|
+
import { useExclusiveMenu as or } from "./shared/hooks/useExclusiveMenu.js";
|
|
74
|
+
import { useLocalStorage as sr } from "./shared/hooks/useLocalStorage.js";
|
|
75
|
+
import { useSessionStorage as cr } from "./shared/hooks/useSessionStorage.js";
|
|
76
|
+
import { usePrevious as lr, usePreviousDistinct as ur, usePreviousHistory as dr } from "./shared/hooks/usePrevious.js";
|
|
77
|
+
import { useConditionalToggle as fr, useToggle as pr, useToggleObject as mr } from "./shared/hooks/useToggle.js";
|
|
78
|
+
import { usePagination as hr } from "./shared/hooks/usePagination.js";
|
|
79
|
+
import { useAsync as gr, useAsyncImmediate as _r } from "./shared/hooks/useAsync.js";
|
|
80
|
+
import { MODIFIER_KEYS as vr, PLATFORM_TYPES as yr } from "./shared/keyboard/types.js";
|
|
81
|
+
import { useKeyboardShortcuts as br } from "./shared/keyboard/useKeyboardShortcuts.js";
|
|
82
|
+
import { useHotkeys as xr } from "./shared/keyboard/useHotkeys.js";
|
|
83
|
+
import { useShortcutHelp as Sr } from "./shared/keyboard/useShortcutHelp.js";
|
|
84
|
+
import { GLOBAL_SHORTCUT_CATEGORIES as Cr, createGlobalShortcuts as wr, getGlobalShortcutsByCategory as Tr, mergeShortcuts as Er } from "./shared/keyboard/globalShortcuts.js";
|
|
85
|
+
import { useLogger as Dr } from "./shared/logger/useLogger.js";
|
|
86
|
+
import { useHasAnimated as Or } from "./shared/hooks/useHasAnimated.js";
|
|
87
|
+
import { useReferralAttribution as kr } from "./shared/hooks/useReferralAttribution.js";
|
|
88
|
+
import { useRecordProductVisit as Ar } from "./shared/hooks/useRecordProductVisit.js";
|
|
89
|
+
import { QUOTA_EXHAUSTED_EVENT as jr, dispatchQuotaExhausted as Mr, useQuotaErrorToast as Nr } from "./shared/hooks/useQuotaErrorToast.js";
|
|
90
|
+
import { PLAN_USAGE_SNAPSHOT_EVENT as Pr, publishPlanUsageSnapshot as Fr, useUpgradePrompt as Ir } from "./shared/hooks/useUpgradePrompt.js";
|
|
91
|
+
import { appendContextToPath as Lr, useCurrentContextSearchParams as Rr } from "./shared/hooks/useCurrentContextSearchParams.js";
|
|
92
|
+
import { MicrofrontendContext as zr, useMicrofrontendContext as Br } from "./shared-hooks.js";
|
|
93
|
+
import { detectDeviceType as Vr, getResponsiveSelector as Hr } from "./shared/tours/types.js";
|
|
94
|
+
import { useTourPlayer as Ur } from "./shared/tours/useTourPlayer.js";
|
|
95
|
+
import { TourSpotlight as Wr } from "./shared/tours/TourSpotlight.js";
|
|
96
|
+
import { TourTooltip as Gr } from "./shared/tours/TourTooltip.js";
|
|
97
|
+
import { TourPlayerProvider as Kr, useIsTourPlaying as qr, useStartTour as Jr, useStopTour as Yr, useTourPlayerContext as Xr } from "./shared/tours/TourPlayerProvider.js";
|
|
98
|
+
import { TourPlayer as Zr, TourTriggerButton as Qr, usePlayTour as $r } from "./shared/tours/TourPlayer.js";
|
|
99
|
+
import { getTourContextRank as ei, getTourRouteCatalog as ti, getTourRouteModules as ni, getTourRoutePages as ri, isTourVisibleForContext as ii, normalizeTourPath as ai, registerTourRouteCatalog as oi, resolveTourTargetPath as si } from "./shared/tours/routeCatalog.js";
|
|
100
|
+
import { withTourProgressStatus as ci } from "./shared/tours/progress.js";
|
|
101
|
+
import { ToursProvider as li, useAutoStartTour as ui, useSafeToursContext as di, useTours as fi, useToursContext as pi } from "./shared/tours/ToursContext.js";
|
|
102
|
+
import { TourInitializer as mi } from "./shared/tours/TourInitializer.js";
|
|
103
|
+
import { AppShellProvider as hi, resolveAppShellObservabilityConfig as gi } from "./shared/providers/AppShellProvider.js";
|
|
104
|
+
import { MicrofrontendProvider as _i } from "./shared-providers.js";
|
|
105
|
+
import { TourTrigger as vi } from "./shared/tours/TourTrigger.js";
|
|
105
106
|
import "./shared-tours.js";
|
|
106
|
-
import { getNativeBridge as
|
|
107
|
-
import { getPlatform as
|
|
108
|
-
import { nativeConfirm as
|
|
109
|
-
import { SafeAreaView as
|
|
110
|
-
import { useNativePlatform as
|
|
111
|
-
import { useSafeArea as
|
|
112
|
-
import { useNativeKeyboard as
|
|
113
|
-
import { useAppState as
|
|
114
|
-
import { useDeviceInfo as
|
|
115
|
-
import { useHaptics as
|
|
116
|
-
import { useStatusBar as
|
|
117
|
-
import { acknowledgeNativePurchase as
|
|
107
|
+
import { getNativeBridge as yi } from "./shared/native/bridge.js";
|
|
108
|
+
import { getPlatform as bi, isAndroid as xi, isElectron as Si, isIOS as Ci, isInstalledApp as wi, isNative as Ti, isStandalonePWA as Ei, isWeb as Di, isWebBrowser as Oi } from "./shared/native/platform.js";
|
|
109
|
+
import { nativeConfirm as ki, nativeCopyText as Ai, nativeImpact as ji, nativeNotify as Mi, nativeOpenUrl as Ni, nativeShare as Pi, nativeToast as Fi } from "./shared/native/consumers.js";
|
|
110
|
+
import { SafeAreaView as Ii } from "./shared/native/SafeAreaView.js";
|
|
111
|
+
import { useNativePlatform as Li } from "./shared/native/hooks/useNativePlatform.js";
|
|
112
|
+
import { useSafeArea as Ri } from "./shared/native/hooks/useSafeArea.js";
|
|
113
|
+
import { useNativeKeyboard as zi } from "./shared/native/hooks/useNativeKeyboard.js";
|
|
114
|
+
import { useAppState as Bi } from "./shared/native/hooks/useAppState.js";
|
|
115
|
+
import { useDeviceInfo as Vi } from "./shared/native/hooks/useDeviceInfo.js";
|
|
116
|
+
import { useHaptics as Hi } from "./shared/native/hooks/useHaptics.js";
|
|
117
|
+
import { useStatusBar as Ui } from "./shared/native/hooks/useStatusBar.js";
|
|
118
|
+
import { acknowledgeNativePurchase as Wi, getNativeProducts as Gi, getNativePurchases as Ki, installNativeIAP as qi, isNativeIAPAvailable as Ji, purchaseNativeProduct as Yi, restoreNativePurchases as Xi } from "./shared/native/purchases.js";
|
|
118
119
|
import "./shared-native.js";
|
|
119
120
|
import "./shared/actors/index.js";
|
|
120
121
|
//#region src/shared/index.ts
|
|
121
|
-
var
|
|
122
|
+
var Zi = "1.0.0";
|
|
122
123
|
//#endregion
|
|
123
|
-
export {
|
|
124
|
+
export { Rn as ASSISTANT_WIDGET_TOGGLE_EVENT, $t as AccessDenied, Wt as ActorIdentity, Fe as ApolloClient, Ie as ApolloProvider, un as AppErrorBoundary, xt as AppInitializer, hi as AppShellProvider, zn as AssistantWidget, ie as BACKEND_ERROR_EVENT, $n as BREAKPOINTS, Un as BackendAuditSink, Hn as BroadcastChannelSink, G as COMMON_SHELL_LESS_ROUTES, ae as CONNECTION_STATUS_EVENT, sn as ConditionalShell, Ot as ConsoleTransport, _n as ContextConversationWidget, Z as DEFAULT_PAGE_SIZE, K as DEFAULT_SHELL_CONFIG, Vn as DevtoolsSink, qt as ErrorBoundary, tn as ErrorFallback, Kn as EventBusProvider, Zi as FE_SHARED_VERSION, dn as FeatureFlagProvider, gn as FeatureGate, Q as GATEWAYS, Cr as GLOBAL_SHORTCUT_CATEGORIES, Oe as GatewayProvider, Le as InMemoryCache, jn as KeyboardHelpDialogWrapper, nn as LoadingFallback, wt as LogLevel, Et as LogManager, Tt as Logger, vr as MODIFIER_KEYS, Bn as Markdown, zr as MicrofrontendContext, on as MicrofrontendErrorBoundary, _i as MicrofrontendProvider, Gn as OtelBrowserSink, Pr as PLAN_USAGE_SNAPSHOT_EVENT, yr as PLATFORM_TYPES, V as PRODUCTS, H as PRODUCT_URLS, ln as PWAInstallBanner, rn as PageLoadingFallback, Xt as PermissionButton, en as PermissionDenied, Zt as PermissionGate, Qt as PermissionLink, Pt as QUOTA_EXHAUSTED_CODE, jr as QUOTA_EXHAUSTED_EVENT, Mn as QuotaMeter, Ft as RESOURCE_CAP_EXCEEDED_CODE, Jt as RequireAuth, Yt as RequireGuest, Wn as RybbitSink, Se as SSELink, it as SSORedirectSpinner, lt as SSO_DEPOSITED_PARAM, It as STORAGE_QUOTA_EXCEEDED_CODE, Ii as SafeAreaView, an as SectionLoadingFallback, mi as TourInitializer, Zr as TourPlayer, Kr as TourPlayerProvider, Wr as TourSpotlight, Gr as TourTooltip, vi as TourTrigger, Qr as TourTriggerButton, li as ToursProvider, Lt as UPGRADE_ERROR_CODES, Nn as UPGRADE_PROMPT_EVENT, In as UpgradeInlineBanner, Pn as UpgradePromptModal, Pe as WsLink, Wi as acknowledgeNativePurchase, r as alertTokens, Lr as appendContextToPath, We as attemptTokenRefresh, ut as beginSsoNavigation, Gt as buildActorFallback, Rt as buildQuotaExhaustedMessage, dt as buildSsoDepositUrl, m as capitalizeFirst, h as capitalizeWords, i as categoryTokens, at as checkRemoteSLO, ot as checkSLO, Ge as clearAuthSessionStorage, pe as clearGraphqlFetchResponseCache, st as clearLocalAuthState, Xe as clearSSoCookie, Ze as clearShellSsoCookies, ft as clearSsoDepositState, pt as clearSsoNavigation, kt as clearUserContext, Ut as cn, mt as consumeSsoDepositMarker, n as createApolloClient, qn as createEventBus, wr as createGlobalShortcuts, Ce as createGraphQLClient, Mt as createProfileScopedStorage, Vr as detectDeviceType, vn as detectPlatform, oe as dispatchBackendErrorEvent, Mr as dispatchQuotaExhausted, Fn as dispatchUpgradePrompt, se as extractBackendError, zt as extractQuotaExhaustedExtensions, Bt as extractUpgradeErrorExtensions, g as formatBytes, _ as formatCompactNumber, v as formatCurrency, y as formatCurrencyCompact, b as formatDate, x as formatDateTime, S as formatDuration, yn as formatKeyCombo, C as formatList, w as formatNumber, T as formatOrdinal, E as formatPercentage, D as formatRelativeTime, O as formatTime, a as getAlertTokens, o as getCategoryTokens, bn as getDisplayKeysForPlatform, $ as getGatewayConfig, ee as getGatewayUrl, we as getGlobalClient, Tr as getGlobalShortcutsByCategory, te as getGraphQLEndpoint, yi as getNativeBridge, Gi as getNativeProducts, Ki as getNativePurchases, bi as getPlatform, U as getProductUrl, W as getProductsWithUrls, Nt as getProfileScopedKey, s as getProgressTokens, Hr as getResponsiveSelector, ct as getSSORedirectUrl, Qe as getSSoCookie, q as getShellConfig, xn as getShortcutLabel, c as getStatusBadgeTokens, l as getStatusTokens, me as getStoredAuthToken, he as getStoredLocale, ge as getStoredOrganizationId, _e as getStoredProjectId, ve as getStoredWorkspaceId, ye as getStoredWorkspaceToken, ei as getTourContextRank, ti as getTourRouteCatalog, ni as getTourRouteModules, ri as getTourRoutePages, u as getTrendTokens, Te as getWorkspaceClient, ne as getWorkspaceTokenPayload, Re as gql, be as graphqlFetch, Ke as hasAuthGraphQLErrors, Ee as initializeAppClients, At as initializeLogger, L as installGatewayFetchRewrite, qi as installNativeIAP, ce as isAbortError, xi as isAndroid, qe as isAuthGraphQLError, Je as isAuthNetworkError, le as isBackendErrorDisplay, P as isChunkLoadError, Si as isElectron, Ci as isIOS, wi as isInstalledApp, Sn as isMac, Cn as isMobileDevice, Ti as isNative, Ji as isNativeIAPAvailable, Vt as isQuotaExhaustedError, $e as isSharedSsoCookieDomain, J as isShellLessRoute, ht as isSsoNavigationPending, Ei as isStandalonePWA, wn as isTabletDevice, ii as isTourVisibleForContext, ue as isTransportError, et as isTrustedSsoOrigin, Ht as isUpgradeError, Di as isWeb, Oi as isWebBrowser, re as isWorkspaceTokenValidForContext, F as lazyWithRetry, Dt as logManager, de as markConnectionHealthy, gt as markSsoDepositDone, _t as markSsoDepositPending, Tn as matchesKeyCombo, Er as mergeShortcuts, vt as mintSsoSessionTokens, ki as nativeConfirm, Ai as nativeCopyText, ji as nativeImpact, Mi as nativeNotify, Ni as nativeOpenUrl, Pi as nativeShare, Fi as nativeToast, En as normalizeKey, Dn as normalizePlatformCombo, ai as normalizeTourPath, On as parseKeyCombo, k as pluralize, d as progressTokens, Fr as publishPlanUsageSnapshot, Yi as purchaseNativeProduct, tt as readShellSsoCookie, yt as readSsoDepositState, Ye as redirectToLogin, oi as registerTourRouteCatalog, De as resetAppClients, gi as resolveAppShellObservabilityConfig, B as resolveAuthBridgeConfig, R as resolveGatewayBases, xe as resolveGatewayUrl, I as resolveGatewayUrls, si as resolveTourTargetPath, Xi as restoreNativePurchases, nt as setSSoCookie, rt as setShellSsoCookies, jt as setUserContext, bt as shouldAttemptSsoDeposit, kn as shouldEnableKeyboardShortcuts, An as shouldIgnoreShortcut, Y as shouldShowBreadcrumb, X as shouldShowSidebar, fe as shouldToastBackendError, A as slugify, f as statusTokens, z as suppressConsole, j as toCamelCase, M as toPascalCase, p as trendTokens, N as truncateText, Kt as useActorProfiles, ze as useApolloClient, Bi as useAppState, gr as useAsync, _r as useAsyncImmediate, ui as useAutoStartTour, er as useBreakpoint, fr as useConditionalToggle, e as useCopyToClipboard, Rr as useCurrentContextSearchParams, Zn as useDebounce, Vi as useDeviceInfo, Jn as useEvent, Yn as useEventBus, Xn as useEventEmitter, or as useExclusiveMenu, pn as useFeatureFlag, mn as useFeatureFlagDetails, hn as useFeatureFlagValue, fn as useFeatureFlags, ke as useGateway, Ae as useGatewayClient, Hi as useHaptics, Or as useHasAnimated, Ne as useHasAuthToken, xr as useHotkeys, qr as useIsTourPlaying, ir as useKeyPress, ar as useKeyboardShortcut, br as useKeyboardShortcuts, Be as useLazyQuery, sr as useLocalStorage, Dr as useLogger, t as useMediaQuery, Br as useMicrofrontendContext, tr as useMobileBreakpoint, Ve as useMutation, zi as useNativeKeyboard, Li as useNativePlatform, nr as useOnClickOutside, rr as useOnClickOutsideWithRef, cn as usePWA, hr as usePagination, $r as usePlayTour, lr as usePrevious, ur as usePreviousDistinct, dr as usePreviousHistory, He as useQuery, Nr as useQuotaErrorToast, Ar as useRecordProductVisit, kr as useReferralAttribution, St as useRegistryHelpers, Ri as useSafeArea, je as useSafeGateway, Me as useSafeGatewayClient, di as useSafeToursContext, cr as useSessionStorage, Ct as useShellNavigate, Sr as useShortcutHelp, Jr as useStartTour, Ui as useStatusBar, Yr as useStopTour, Ue as useSubscription, Qn as useThrottle, pr as useToggle, mr as useToggleObject, Ur as useTourPlayer, Xr as useTourPlayerContext, fi as useTours, pi as useToursContext, Ir as useUpgradePrompt, Ln as useVoiceInput, ci as withTourProgressStatus };
|