@burdenoff/fe-libs 2026.1118.2 → 2026.1118.4
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/platform-pages/index.d.ts +4 -0
- package/dist/platform-pages/oauth/AuthorizedAppsPage.d.ts +13 -0
- package/dist/platform-pages/oauth/AuthorizedAppsPage.js +154 -0
- package/dist/platform-pages/oauth/ConnectAuthorizePage.d.ts +23 -0
- package/dist/platform-pages/oauth/ConnectAuthorizePage.js +196 -0
- package/dist/platform-pages/oauth/operations.d.ts +49 -0
- package/dist/platform-pages/oauth/operations.js +55 -0
- package/dist/platform-pages.js +3 -1
- package/dist/shared/config/shellRoutes.js +7 -0
- package/dist/shared/hooks/index.d.ts +1 -0
- package/dist/shared/hooks/useInfiniteScroll.d.ts +40 -0
- package/dist/shared/hooks/useInfiniteScroll.js +41 -0
- package/dist/shared-hooks.js +24 -23
- package/dist/shared.js +37 -36
- package/package.json +1 -1
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* | `AppearanceSettingsPage` | `/settings/appearance` | protected, no gateway |
|
|
11
11
|
* | `AffiliatesPage` | `/affiliates` | protected (global gateway URL) |
|
|
12
12
|
* | `AcceptShareRoute` | `/share/accept/:token` | protected (workspace gateway) |
|
|
13
|
+
* | `ConnectAuthorizePage` | `/connect/authorize` | protected, shell-less (global) |
|
|
14
|
+
* | `AuthorizedAppsPage` | `/settings/authorized-apps` | protected (global gateway) |
|
|
13
15
|
*
|
|
14
16
|
* `AdminOverviewPage` (`/admin/overview`) lives in
|
|
15
17
|
* `@burdenoff/fe-libs/admin-overview` because it needs the optional
|
|
@@ -18,3 +20,5 @@
|
|
|
18
20
|
export { AppearanceSettingsPage } from './AppearanceSettingsPage';
|
|
19
21
|
export { AffiliatesPage, type AffiliatesPageProps } from './AffiliatesPage';
|
|
20
22
|
export { AcceptShareRoute, resolveAcceptedShareDestination, type AcceptShareRouteProps, } from './AcceptShareRoute';
|
|
23
|
+
export { ConnectAuthorizePage, type ConnectAuthorizePageProps } from './oauth/ConnectAuthorizePage';
|
|
24
|
+
export { AuthorizedAppsPage } from './oauth/AuthorizedAppsPage';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AuthorizedAppsPage: connectors (Claude, ChatGPT, ...) the signed-in user has
|
|
3
|
+
* allowed to act as them, with a way to revoke each one (BOFF-15144).
|
|
4
|
+
*
|
|
5
|
+
* Revoking ends the delegation: the gateways refuse the connector's current
|
|
6
|
+
* token on its next call and the auth service refuses to refresh it.
|
|
7
|
+
*
|
|
8
|
+
* Mount inside the shell's protected routes, e.g. `/settings/authorized-apps`.
|
|
9
|
+
* Named "Authorized apps" because "Connected apps" already means integration
|
|
10
|
+
* connections in the shells.
|
|
11
|
+
*/
|
|
12
|
+
export declare function AuthorizedAppsPage(): import('react').JSX.Element;
|
|
13
|
+
export default AuthorizedAppsPage;
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { useAuthToken as e } from "../../shared/providers/shell/AuthTokenProvider.js";
|
|
2
|
+
import { useShellLabel as t } from "../../shared/providers/shell/useShellLabel.js";
|
|
3
|
+
import { AlertDialog as n, AlertDialogAction as r, AlertDialogCancel as i, AlertDialogContent as a, AlertDialogDescription as o, AlertDialogFooter as s, AlertDialogHeader as c, AlertDialogTitle as l } from "../../ui/alert-dialog.js";
|
|
4
|
+
import { Badge as u } from "../../ui/badge.js";
|
|
5
|
+
import { Button as d } from "../../ui/button.js";
|
|
6
|
+
import { Card as f, CardContent as p, CardDescription as m, CardHeader as h, CardTitle as g } from "../../ui/card.js";
|
|
7
|
+
import { EmptyState as _ } from "../../ui/empty-state.js";
|
|
8
|
+
import { Skeleton as v } from "../../ui/skeleton.js";
|
|
9
|
+
import { fetchConnections as y, fetchWorkspaces as b, revokeConnection as x } from "./operations.js";
|
|
10
|
+
import { useCallback as S, useEffect as C, useMemo as w, useState as T } from "react";
|
|
11
|
+
import { KeyRoundIcon as E, ShieldAlertIcon as D, ShieldCheckIcon as O } from "lucide-react";
|
|
12
|
+
import { jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
13
|
+
// src/platform-pages/oauth/AuthorizedAppsPage.tsx
|
|
14
|
+
function j() {
|
|
15
|
+
let j = t(), { accessToken: M } = e(), [N, P] = T({ kind: "loading" }), [F, I] = T(null), [L, R] = T(!1), [z, B] = T(null), [V, H] = T(0), U = S(() => H((e) => e + 1), []);
|
|
16
|
+
C(() => {
|
|
17
|
+
let e = !1;
|
|
18
|
+
return Promise.all([y(M), b(M)]).then(([t, n]) => {
|
|
19
|
+
e || P({
|
|
20
|
+
kind: "ready",
|
|
21
|
+
connections: t,
|
|
22
|
+
workspaces: n
|
|
23
|
+
});
|
|
24
|
+
}).catch(() => {
|
|
25
|
+
e || P({ kind: "error" });
|
|
26
|
+
}), () => {
|
|
27
|
+
e = !0;
|
|
28
|
+
};
|
|
29
|
+
}, [M, V]);
|
|
30
|
+
let W = w(() => {
|
|
31
|
+
let e = /* @__PURE__ */ new Map();
|
|
32
|
+
if (N.kind === "ready") for (let t of N.workspaces) e.set(t.id, t.name);
|
|
33
|
+
return e;
|
|
34
|
+
}, [N]), G = S(async () => {
|
|
35
|
+
if (F) {
|
|
36
|
+
R(!0), B(null);
|
|
37
|
+
try {
|
|
38
|
+
await x(M, F.delegationId), I(null), U();
|
|
39
|
+
} catch {
|
|
40
|
+
B(j("authorizedApps.errors.revoke", "We could not revoke access. Try again in a moment."));
|
|
41
|
+
} finally {
|
|
42
|
+
R(!1);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}, [
|
|
46
|
+
M,
|
|
47
|
+
j,
|
|
48
|
+
F,
|
|
49
|
+
U
|
|
50
|
+
]);
|
|
51
|
+
return /* @__PURE__ */ A("div", {
|
|
52
|
+
className: "min-h-full bg-bg-canvas",
|
|
53
|
+
children: [/* @__PURE__ */ A("div", {
|
|
54
|
+
className: "mx-auto w-full max-w-4xl space-y-4 px-4 py-6 md:px-6 lg:px-8",
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("h1", {
|
|
57
|
+
className: "text-xl font-semibold text-text-primary",
|
|
58
|
+
children: j("authorizedApps.title", "Authorized apps")
|
|
59
|
+
}), /* @__PURE__ */ k("p", {
|
|
60
|
+
className: "mt-1 text-sm text-text-secondary",
|
|
61
|
+
children: j("authorizedApps.description", "AI assistants and other apps you allowed to use your account. Each one works only in the workspace you chose, with your own role.")
|
|
62
|
+
})] }),
|
|
63
|
+
N.kind === "loading" && /* @__PURE__ */ A("div", {
|
|
64
|
+
className: "space-y-3",
|
|
65
|
+
"aria-busy": "true",
|
|
66
|
+
children: [/* @__PURE__ */ k(v, { className: "h-20 w-full" }), /* @__PURE__ */ k(v, { className: "h-20 w-full" })]
|
|
67
|
+
}),
|
|
68
|
+
N.kind === "error" && /* @__PURE__ */ k(f, { children: /* @__PURE__ */ A(h, { children: [/* @__PURE__ */ k(g, { children: j("authorizedApps.error.title", "We could not load your authorized apps") }), /* @__PURE__ */ k(m, { children: /* @__PURE__ */ k(d, {
|
|
69
|
+
variant: "outline",
|
|
70
|
+
size: "sm",
|
|
71
|
+
onClick: U,
|
|
72
|
+
children: j("authorizedApps.retry", "Try again")
|
|
73
|
+
}) })] }) }),
|
|
74
|
+
N.kind === "ready" && N.connections.length === 0 && /* @__PURE__ */ k(_, {
|
|
75
|
+
icon: /* @__PURE__ */ k(E, {
|
|
76
|
+
className: "size-6 text-action-primary-bg",
|
|
77
|
+
"aria-hidden": "true"
|
|
78
|
+
}),
|
|
79
|
+
title: j("authorizedApps.empty.title", "No authorized apps"),
|
|
80
|
+
description: j("authorizedApps.empty.body", "When you connect an app such as Claude or ChatGPT, it appears here.")
|
|
81
|
+
}),
|
|
82
|
+
N.kind === "ready" && N.connections.map((e) => /* @__PURE__ */ k(f, {
|
|
83
|
+
"data-testid": "authorized-app",
|
|
84
|
+
children: /* @__PURE__ */ A(p, {
|
|
85
|
+
className: "flex flex-col gap-3 py-4 sm:flex-row sm:items-center sm:justify-between",
|
|
86
|
+
children: [/* @__PURE__ */ A("div", {
|
|
87
|
+
className: "space-y-1",
|
|
88
|
+
children: [
|
|
89
|
+
/* @__PURE__ */ A("div", {
|
|
90
|
+
className: "flex flex-wrap items-center gap-2",
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ k("span", {
|
|
93
|
+
className: "font-medium text-text-primary",
|
|
94
|
+
children: e.clientName
|
|
95
|
+
}),
|
|
96
|
+
e.verifiedClient ? /* @__PURE__ */ A(u, {
|
|
97
|
+
variant: "success",
|
|
98
|
+
children: [/* @__PURE__ */ k(O, { "aria-hidden": "true" }), j("oauthConnect.verified", "Verified")]
|
|
99
|
+
}) : /* @__PURE__ */ A(u, {
|
|
100
|
+
variant: "warning",
|
|
101
|
+
children: [/* @__PURE__ */ k(D, { "aria-hidden": "true" }), j("oauthConnect.unverified", "Unverified app")]
|
|
102
|
+
}),
|
|
103
|
+
/* @__PURE__ */ k(u, {
|
|
104
|
+
variant: "outline",
|
|
105
|
+
children: e.access === "BUILD" ? j("oauthConnect.access.build", "Read and build") : j("oauthConnect.access.read", "Read only")
|
|
106
|
+
})
|
|
107
|
+
]
|
|
108
|
+
}),
|
|
109
|
+
/* @__PURE__ */ k("p", {
|
|
110
|
+
className: "text-sm text-text-secondary",
|
|
111
|
+
children: j("authorizedApps.workspaces", "Workspace: {{names}}", { names: e.workspaceIds.map((e) => W.get(e) ?? j("authorizedApps.unknownWorkspace", "a workspace you left")).join(", ") })
|
|
112
|
+
}),
|
|
113
|
+
/* @__PURE__ */ k("p", {
|
|
114
|
+
className: "text-xs text-text-secondary",
|
|
115
|
+
children: j("authorizedApps.granted", "Allowed on {{date}}", { date: new Date(e.grantedAt).toLocaleDateString() })
|
|
116
|
+
})
|
|
117
|
+
]
|
|
118
|
+
}), /* @__PURE__ */ k(d, {
|
|
119
|
+
variant: "outline",
|
|
120
|
+
onClick: () => {
|
|
121
|
+
B(null), I(e);
|
|
122
|
+
},
|
|
123
|
+
children: j("authorizedApps.revoke", "Revoke access")
|
|
124
|
+
})]
|
|
125
|
+
})
|
|
126
|
+
}, e.delegationId))
|
|
127
|
+
]
|
|
128
|
+
}), /* @__PURE__ */ k(n, {
|
|
129
|
+
open: F !== null,
|
|
130
|
+
onOpenChange: (e) => {
|
|
131
|
+
!e && !L && I(null);
|
|
132
|
+
},
|
|
133
|
+
children: /* @__PURE__ */ A(a, { children: [
|
|
134
|
+
/* @__PURE__ */ A(c, { children: [/* @__PURE__ */ k(l, { children: j("authorizedApps.confirm.title", "Revoke access for {{client}}?", { client: F?.clientName ?? "" }) }), /* @__PURE__ */ k(o, { children: j("authorizedApps.confirm.body", "The app stops working with your account right away. To use it again, connect it again from the app.") })] }),
|
|
135
|
+
z && /* @__PURE__ */ k("p", {
|
|
136
|
+
role: "alert",
|
|
137
|
+
className: "text-sm text-status-error-text",
|
|
138
|
+
children: z
|
|
139
|
+
}),
|
|
140
|
+
/* @__PURE__ */ A(s, { children: [/* @__PURE__ */ k(i, {
|
|
141
|
+
disabled: L,
|
|
142
|
+
children: j("authorizedApps.confirm.cancel", "Keep access")
|
|
143
|
+
}), /* @__PURE__ */ k(r, {
|
|
144
|
+
disabled: L,
|
|
145
|
+
onClick: (e) => {
|
|
146
|
+
e.preventDefault(), G();
|
|
147
|
+
},
|
|
148
|
+
children: j("authorizedApps.confirm.revoke", "Revoke")
|
|
149
|
+
})] })
|
|
150
|
+
] })
|
|
151
|
+
})]
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
export { j as AuthorizedAppsPage, j as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ConnectAuthorizePage: the consent screen a connector (Claude, ChatGPT, ...)
|
|
3
|
+
* sends the user to (BOFF-15144).
|
|
4
|
+
*
|
|
5
|
+
* The OAuth server parks the connector's request and redirects here with
|
|
6
|
+
* `?request=<id>`. The user, already signed in to the shell, picks one
|
|
7
|
+
* workspace and an access level, then approves or declines. Either way the
|
|
8
|
+
* auth service returns the URL that sends the browser back to the connector.
|
|
9
|
+
*
|
|
10
|
+
* Mount inside the shell's protected routes at `/connect/authorize`, shell-less
|
|
11
|
+
* (no app chrome), so a signed-out user goes through sign-in and comes back
|
|
12
|
+
* with the same query string.
|
|
13
|
+
*/
|
|
14
|
+
export interface ConnectAuthorizePageProps {
|
|
15
|
+
/** Display name of the product the connector will act in, e.g. "FluidGrids". */
|
|
16
|
+
productName: string;
|
|
17
|
+
/** Override for tests; defaults to `window.location.search`. */
|
|
18
|
+
search?: string;
|
|
19
|
+
/** Override for tests; defaults to `window.location.assign`. */
|
|
20
|
+
navigate?: (url: string) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare function ConnectAuthorizePage({ productName, search, navigate, }: ConnectAuthorizePageProps): import('react').JSX.Element;
|
|
23
|
+
export default ConnectAuthorizePage;
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { useAuthToken as e } from "../../shared/providers/shell/AuthTokenProvider.js";
|
|
2
|
+
import { useShellLabel as t } from "../../shared/providers/shell/useShellLabel.js";
|
|
3
|
+
import { Badge as n } from "../../ui/badge.js";
|
|
4
|
+
import { Button as r } from "../../ui/button.js";
|
|
5
|
+
import { Card as i, CardContent as a, CardDescription as o, CardFooter as s, CardHeader as c, CardTitle as l } from "../../ui/card.js";
|
|
6
|
+
import { NativeSelect as u } from "../../ui/select.js";
|
|
7
|
+
import { Skeleton as d } from "../../ui/skeleton.js";
|
|
8
|
+
import { OAuthRequestError as f, approveAuthorization as p, denyAuthorization as m, fetchAuthorizationRequest as h, fetchWorkspaces as g, isSafeRedirect as _ } from "./operations.js";
|
|
9
|
+
import { useCallback as v, useEffect as y, useMemo as b, useState as x } from "react";
|
|
10
|
+
import { ShieldAlertIcon as S, ShieldCheckIcon as C } from "lucide-react";
|
|
11
|
+
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
12
|
+
// src/platform-pages/oauth/ConnectAuthorizePage.tsx
|
|
13
|
+
function E(e) {
|
|
14
|
+
window.location.assign(e);
|
|
15
|
+
}
|
|
16
|
+
function D({ productName: D, search: k, navigate: A = E }) {
|
|
17
|
+
let j = t(), { accessToken: M } = e(), N = b(() => new URLSearchParams(k ?? window.location.search).get("request") ?? "", [k]), [P, F] = x(() => N ? { kind: "loading" } : { kind: "expired" }), [I, L] = x(""), [R, z] = x("READ"), [B, V] = x(null), [H, U] = x(null);
|
|
18
|
+
y(() => {
|
|
19
|
+
if (!N) return;
|
|
20
|
+
let e = !1;
|
|
21
|
+
return Promise.all([h(M, N), g(M)]).then(([t, n]) => {
|
|
22
|
+
e || (F({
|
|
23
|
+
kind: "ready",
|
|
24
|
+
request: t,
|
|
25
|
+
workspaces: n
|
|
26
|
+
}), z(t.requestedAccess), n.length === 1 && n[0] && L(n[0].id));
|
|
27
|
+
}).catch((t) => {
|
|
28
|
+
e || F(t instanceof f && t.code === "NOT_FOUND" ? { kind: "expired" } : { kind: "error" });
|
|
29
|
+
}), () => {
|
|
30
|
+
e = !0;
|
|
31
|
+
};
|
|
32
|
+
}, [M, N]);
|
|
33
|
+
let W = v(async (e) => {
|
|
34
|
+
V(e), U(null);
|
|
35
|
+
try {
|
|
36
|
+
let t = e === "approve" ? await p(M, {
|
|
37
|
+
requestId: N,
|
|
38
|
+
workspaceId: I,
|
|
39
|
+
access: R
|
|
40
|
+
}) : await m(M, N);
|
|
41
|
+
if (!_(t)) throw new f("Unexpected redirect", void 0);
|
|
42
|
+
A(t);
|
|
43
|
+
} catch (e) {
|
|
44
|
+
if (V(null), e instanceof f && e.code === "NOT_FOUND") {
|
|
45
|
+
F({ kind: "expired" });
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (e instanceof f && e.code === "FORBIDDEN") {
|
|
49
|
+
U(j("oauthConnect.errors.workspace", "You are not a member of that workspace."));
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
U(j("oauthConnect.errors.generic", "Something went wrong. Try again in a moment."));
|
|
53
|
+
}
|
|
54
|
+
}, [
|
|
55
|
+
M,
|
|
56
|
+
R,
|
|
57
|
+
j,
|
|
58
|
+
A,
|
|
59
|
+
N,
|
|
60
|
+
I
|
|
61
|
+
]);
|
|
62
|
+
return /* @__PURE__ */ w("div", {
|
|
63
|
+
className: "flex min-h-screen items-center justify-center bg-bg-canvas px-4 py-10",
|
|
64
|
+
children: /* @__PURE__ */ T("div", {
|
|
65
|
+
className: "w-full max-w-lg",
|
|
66
|
+
children: [
|
|
67
|
+
P.kind === "loading" && /* @__PURE__ */ T(i, {
|
|
68
|
+
"aria-busy": "true",
|
|
69
|
+
children: [/* @__PURE__ */ T(c, { children: [/* @__PURE__ */ w(d, { className: "h-6 w-2/3" }), /* @__PURE__ */ w(d, { className: "mt-2 h-4 w-full" })] }), /* @__PURE__ */ T(a, {
|
|
70
|
+
className: "space-y-3",
|
|
71
|
+
children: [/* @__PURE__ */ w(d, { className: "h-10 w-full" }), /* @__PURE__ */ w(d, { className: "h-20 w-full" })]
|
|
72
|
+
})]
|
|
73
|
+
}),
|
|
74
|
+
P.kind === "expired" && /* @__PURE__ */ w(i, { children: /* @__PURE__ */ T(c, { children: [/* @__PURE__ */ w(l, { children: j("oauthConnect.expired.title", "This connection request has expired") }), /* @__PURE__ */ w(o, { children: j("oauthConnect.expired.body", "Requests are valid for 30 minutes and can be used once. Go back to the app you were connecting and start again.") })] }) }),
|
|
75
|
+
P.kind === "error" && /* @__PURE__ */ w(i, { children: /* @__PURE__ */ T(c, { children: [/* @__PURE__ */ w(l, { children: j("oauthConnect.error.title", "We could not load this request") }), /* @__PURE__ */ w(o, { children: j("oauthConnect.error.body", "Reload the page to try again.") })] }) }),
|
|
76
|
+
P.kind === "ready" && /* @__PURE__ */ T(i, { children: [
|
|
77
|
+
/* @__PURE__ */ T(c, { children: [
|
|
78
|
+
/* @__PURE__ */ T("div", {
|
|
79
|
+
className: "flex flex-wrap items-center gap-2",
|
|
80
|
+
children: [/* @__PURE__ */ w(l, { children: j("oauthConnect.title", "Connect {{client}} to {{product}}", {
|
|
81
|
+
client: P.request.clientName,
|
|
82
|
+
product: D
|
|
83
|
+
}) }), P.request.verifiedClient ? /* @__PURE__ */ T(n, {
|
|
84
|
+
variant: "success",
|
|
85
|
+
children: [/* @__PURE__ */ w(C, { "aria-hidden": "true" }), j("oauthConnect.verified", "Verified")]
|
|
86
|
+
}) : /* @__PURE__ */ T(n, {
|
|
87
|
+
variant: "warning",
|
|
88
|
+
children: [/* @__PURE__ */ w(S, { "aria-hidden": "true" }), j("oauthConnect.unverified", "Unverified app")]
|
|
89
|
+
})]
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ w(o, { children: j("oauthConnect.description", "{{client}} wants to use {{product}} as you. After you approve, you will be sent back to {{host}}.", {
|
|
92
|
+
client: P.request.clientName,
|
|
93
|
+
product: D,
|
|
94
|
+
host: P.request.redirectHost
|
|
95
|
+
}) }),
|
|
96
|
+
!P.request.verifiedClient && /* @__PURE__ */ w("p", {
|
|
97
|
+
className: "mt-2 text-sm text-status-warning-text",
|
|
98
|
+
children: j("oauthConnect.unverifiedWarning", "We could not confirm who made this app. Only continue if you started this connection yourself and you trust {{host}}.", { host: P.request.redirectHost })
|
|
99
|
+
})
|
|
100
|
+
] }),
|
|
101
|
+
/* @__PURE__ */ T(a, {
|
|
102
|
+
className: "space-y-5",
|
|
103
|
+
children: [
|
|
104
|
+
/* @__PURE__ */ T("div", {
|
|
105
|
+
className: "space-y-2",
|
|
106
|
+
children: [
|
|
107
|
+
/* @__PURE__ */ w("label", {
|
|
108
|
+
htmlFor: "oauth-connect-workspace",
|
|
109
|
+
className: "text-sm font-medium text-text-primary",
|
|
110
|
+
children: j("oauthConnect.workspace.label", "Workspace")
|
|
111
|
+
}),
|
|
112
|
+
P.workspaces.length === 0 ? /* @__PURE__ */ w("p", {
|
|
113
|
+
className: "text-sm text-text-secondary",
|
|
114
|
+
children: j("oauthConnect.workspace.none", "You are not a member of any workspace yet.")
|
|
115
|
+
}) : /* @__PURE__ */ w(u, {
|
|
116
|
+
id: "oauth-connect-workspace",
|
|
117
|
+
"aria-label": j("oauthConnect.workspace.label", "Workspace"),
|
|
118
|
+
placeholder: j("oauthConnect.workspace.placeholder", "Choose a workspace"),
|
|
119
|
+
value: I || void 0,
|
|
120
|
+
onValueChange: L,
|
|
121
|
+
options: P.workspaces.map((e) => ({
|
|
122
|
+
value: e.id,
|
|
123
|
+
label: e.name
|
|
124
|
+
}))
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ w("p", {
|
|
127
|
+
className: "text-xs text-text-secondary",
|
|
128
|
+
children: j("oauthConnect.workspace.hint", "The app can only see and change this one workspace, with your own role.")
|
|
129
|
+
})
|
|
130
|
+
]
|
|
131
|
+
}),
|
|
132
|
+
/* @__PURE__ */ T("fieldset", {
|
|
133
|
+
className: "space-y-2",
|
|
134
|
+
children: [/* @__PURE__ */ w("legend", {
|
|
135
|
+
className: "text-sm font-medium text-text-primary",
|
|
136
|
+
children: j("oauthConnect.access.label", "Access")
|
|
137
|
+
}), /* @__PURE__ */ T("div", {
|
|
138
|
+
role: "radiogroup",
|
|
139
|
+
className: "grid gap-2 sm:grid-cols-2",
|
|
140
|
+
children: [/* @__PURE__ */ w(O, {
|
|
141
|
+
selected: R === "READ",
|
|
142
|
+
onSelect: () => z("READ"),
|
|
143
|
+
title: j("oauthConnect.access.read", "Read only"),
|
|
144
|
+
body: j("oauthConnect.access.readBody", "See workflows, runs and logs. Cannot change anything.")
|
|
145
|
+
}), /* @__PURE__ */ w(O, {
|
|
146
|
+
selected: R === "BUILD",
|
|
147
|
+
disabled: P.request.requestedAccess !== "BUILD",
|
|
148
|
+
onSelect: () => z("BUILD"),
|
|
149
|
+
title: j("oauthConnect.access.build", "Read and build"),
|
|
150
|
+
body: j("oauthConnect.access.buildBody", "Also create, edit and run workflows. Deleting always asks for confirmation.")
|
|
151
|
+
})]
|
|
152
|
+
})]
|
|
153
|
+
}),
|
|
154
|
+
H && /* @__PURE__ */ w("p", {
|
|
155
|
+
role: "alert",
|
|
156
|
+
className: "text-sm text-status-error-text",
|
|
157
|
+
children: H
|
|
158
|
+
})
|
|
159
|
+
]
|
|
160
|
+
}),
|
|
161
|
+
/* @__PURE__ */ T(s, {
|
|
162
|
+
className: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
163
|
+
children: [/* @__PURE__ */ w(r, {
|
|
164
|
+
variant: "outline",
|
|
165
|
+
disabled: B !== null,
|
|
166
|
+
onClick: () => void W("deny"),
|
|
167
|
+
children: j("oauthConnect.deny", "Cancel")
|
|
168
|
+
}), /* @__PURE__ */ w(r, {
|
|
169
|
+
disabled: B !== null || !I,
|
|
170
|
+
onClick: () => void W("approve"),
|
|
171
|
+
children: B === "approve" ? j("oauthConnect.approving", "Connecting…") : j("oauthConnect.approve", "Allow access")
|
|
172
|
+
})]
|
|
173
|
+
})
|
|
174
|
+
] })
|
|
175
|
+
]
|
|
176
|
+
})
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
function O({ selected: e, disabled: t = !1, onSelect: n, title: r, body: i }) {
|
|
180
|
+
return /* @__PURE__ */ T("button", {
|
|
181
|
+
type: "button",
|
|
182
|
+
role: "radio",
|
|
183
|
+
"aria-checked": e,
|
|
184
|
+
disabled: t,
|
|
185
|
+
onClick: n,
|
|
186
|
+
className: `rounded-card border p-3 text-start transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)] disabled:cursor-not-allowed disabled:opacity-50 ${e ? "border-action-primary-bg bg-[var(--color-accent-soft)]" : "border-border-default bg-bg-surface hover:bg-bg-sunken"}`,
|
|
187
|
+
children: [/* @__PURE__ */ w("span", {
|
|
188
|
+
className: "block text-sm font-medium text-text-primary",
|
|
189
|
+
children: r
|
|
190
|
+
}), /* @__PURE__ */ w("span", {
|
|
191
|
+
className: "mt-1 block text-xs text-text-secondary",
|
|
192
|
+
children: i
|
|
193
|
+
})]
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
export { D as ConnectAuthorizePage, D as default };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GraphQL operations for connector consent and the Authorized apps page
|
|
3
|
+
* (BOFF-15144). All go to the global gateway as the signed-in user; the auth
|
|
4
|
+
* service refuses app and delegated tokens on every one of them.
|
|
5
|
+
*/
|
|
6
|
+
export type OAuthAccessLevel = 'READ' | 'BUILD';
|
|
7
|
+
export interface OAuthAuthorizationRequest {
|
|
8
|
+
requestId: string;
|
|
9
|
+
clientName: string;
|
|
10
|
+
redirectHost: string;
|
|
11
|
+
verifiedClient: boolean;
|
|
12
|
+
product: string;
|
|
13
|
+
requestedAccess: OAuthAccessLevel;
|
|
14
|
+
expiresAt: string;
|
|
15
|
+
}
|
|
16
|
+
export interface OAuthConnection {
|
|
17
|
+
delegationId: string;
|
|
18
|
+
clientName: string;
|
|
19
|
+
verifiedClient: boolean;
|
|
20
|
+
workspaceIds: string[];
|
|
21
|
+
access: OAuthAccessLevel;
|
|
22
|
+
grantedAt: string;
|
|
23
|
+
}
|
|
24
|
+
export interface WorkspaceOption {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
}
|
|
28
|
+
/** A GraphQL error with the server's code, for choosing what to show. */
|
|
29
|
+
export declare class OAuthRequestError extends Error {
|
|
30
|
+
readonly code: string | undefined;
|
|
31
|
+
constructor(message: string, code: string | undefined);
|
|
32
|
+
}
|
|
33
|
+
export declare function fetchAuthorizationRequest(authToken: string | null | undefined, requestId: string): Promise<OAuthAuthorizationRequest>;
|
|
34
|
+
export declare function approveAuthorization(authToken: string | null | undefined, input: {
|
|
35
|
+
requestId: string;
|
|
36
|
+
workspaceId: string;
|
|
37
|
+
access: OAuthAccessLevel;
|
|
38
|
+
}): Promise<string>;
|
|
39
|
+
export declare function denyAuthorization(authToken: string | null | undefined, requestId: string): Promise<string>;
|
|
40
|
+
export declare function fetchConnections(authToken: string | null | undefined): Promise<OAuthConnection[]>;
|
|
41
|
+
export declare function revokeConnection(authToken: string | null | undefined, delegationId: string): Promise<void>;
|
|
42
|
+
/** The user's workspaces (first 200), for the picker and for naming connections. */
|
|
43
|
+
export declare function fetchWorkspaces(authToken: string | null | undefined): Promise<WorkspaceOption[]>;
|
|
44
|
+
/**
|
|
45
|
+
* Only send the browser to an http(s) URL. The auth service builds the
|
|
46
|
+
* redirect from the client's registered URI, so this is a second guard, not
|
|
47
|
+
* the first.
|
|
48
|
+
*/
|
|
49
|
+
export declare function isSafeRedirect(url: string): boolean;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { graphqlFetch as e } from "../../shared/graphql/fetch.js";
|
|
2
|
+
// src/platform-pages/oauth/operations.ts
|
|
3
|
+
var t = class extends Error {
|
|
4
|
+
code;
|
|
5
|
+
constructor(e, t) {
|
|
6
|
+
super(e), this.code = t, this.name = "OAuthRequestError";
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
async function n(n, r, i) {
|
|
10
|
+
let a = await e({
|
|
11
|
+
gateway: "global",
|
|
12
|
+
query: r,
|
|
13
|
+
variables: i,
|
|
14
|
+
authToken: n ?? void 0
|
|
15
|
+
}), o = a.errors?.[0];
|
|
16
|
+
if (o || !a.data) {
|
|
17
|
+
let e = o?.extensions?.code;
|
|
18
|
+
throw new t(o?.message ?? "Request failed", typeof e == "string" ? e : void 0);
|
|
19
|
+
}
|
|
20
|
+
return a.data;
|
|
21
|
+
}
|
|
22
|
+
var r = "\n query OAuthAuthorizationRequest($requestId: String!) {\n oauthAuthorizationRequest(requestId: $requestId) {\n requestId clientName redirectHost verifiedClient product requestedAccess expiresAt\n }\n }\n", i = "\n mutation ApproveOAuthAuthorization($input: ApproveOAuthAuthorizationInput!) {\n approveOAuthAuthorization(input: $input) { redirectTo }\n }\n", a = "\n mutation DenyOAuthAuthorization($requestId: String!) {\n denyOAuthAuthorization(requestId: $requestId) { redirectTo }\n }\n", o = "\n query MyOAuthConnections {\n myOAuthConnections { delegationId clientName verifiedClient workspaceIds access grantedAt }\n }\n", s = "\n mutation RevokeOAuthConnection($id: ID!, $reason: String) {\n revokeDelegation(id: $id, reason: $reason)\n }\n", c = "\n query OAuthConsentWorkspaces($limit: Int, $offset: Int) {\n myWorkspaces(limit: $limit, offset: $offset) { items { id name } }\n }\n";
|
|
23
|
+
async function l(e, t) {
|
|
24
|
+
return (await n(e, r, { requestId: t })).oauthAuthorizationRequest;
|
|
25
|
+
}
|
|
26
|
+
async function u(e, t) {
|
|
27
|
+
return (await n(e, i, { input: t })).approveOAuthAuthorization.redirectTo;
|
|
28
|
+
}
|
|
29
|
+
async function d(e, t) {
|
|
30
|
+
return (await n(e, a, { requestId: t })).denyOAuthAuthorization.redirectTo;
|
|
31
|
+
}
|
|
32
|
+
async function f(e) {
|
|
33
|
+
return (await n(e, o)).myOAuthConnections;
|
|
34
|
+
}
|
|
35
|
+
async function p(e, t) {
|
|
36
|
+
await n(e, s, {
|
|
37
|
+
id: t,
|
|
38
|
+
reason: "Revoked from Authorized apps"
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
async function m(e) {
|
|
42
|
+
return (await n(e, c, {
|
|
43
|
+
limit: 200,
|
|
44
|
+
offset: 0
|
|
45
|
+
})).myWorkspaces.items;
|
|
46
|
+
}
|
|
47
|
+
function h(e) {
|
|
48
|
+
try {
|
|
49
|
+
let t = new URL(e);
|
|
50
|
+
return t.protocol === "https:" || t.protocol === "http:";
|
|
51
|
+
} catch {
|
|
52
|
+
return !1;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export { t as OAuthRequestError, u as approveAuthorization, d as denyAuthorization, l as fetchAuthorizationRequest, f as fetchConnections, m as fetchWorkspaces, h as isSafeRedirect, p as revokeConnection };
|
package/dist/platform-pages.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { AppearanceSettingsPage as e } from "./platform-pages/AppearanceSettingsPage.js";
|
|
2
2
|
import { AffiliatesPage as t } from "./platform-pages/AffiliatesPage.js";
|
|
3
3
|
import { AcceptShareRoute as n, resolveAcceptedShareDestination as r } from "./platform-pages/AcceptShareRoute.js";
|
|
4
|
-
|
|
4
|
+
import { ConnectAuthorizePage as i } from "./platform-pages/oauth/ConnectAuthorizePage.js";
|
|
5
|
+
import { AuthorizedAppsPage as a } from "./platform-pages/oauth/AuthorizedAppsPage.js";
|
|
6
|
+
export { n as AcceptShareRoute, t as AffiliatesPage, e as AppearanceSettingsPage, a as AuthorizedAppsPage, i as ConnectAuthorizePage, r as resolveAcceptedShareDestination };
|
|
@@ -22,6 +22,7 @@ export { useSessionStorage } from './useSessionStorage';
|
|
|
22
22
|
export { usePrevious, usePreviousDistinct, usePreviousHistory } from './usePrevious';
|
|
23
23
|
export { useToggle, useToggleObject, useConditionalToggle } from './useToggle';
|
|
24
24
|
export { usePagination, type UsePaginationOptions, type UsePaginationResult, } from './usePagination';
|
|
25
|
+
export { useInfiniteScroll, type UseInfiniteScrollOptions } from './useInfiniteScroll';
|
|
25
26
|
export { useAsync, useAsyncImmediate, type UseAsyncReturn } from './useAsync';
|
|
26
27
|
export * from '../keyboard';
|
|
27
28
|
export * from '../logger';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface UseInfiniteScrollOptions {
|
|
2
|
+
/** More items exist after the ones already shown. */
|
|
3
|
+
hasMore: boolean;
|
|
4
|
+
/** A page is being fetched; no new request starts until it finishes. */
|
|
5
|
+
loading: boolean;
|
|
6
|
+
/** Fetch the next page. Called at most once per time the end comes into view. */
|
|
7
|
+
onLoadMore: () => void;
|
|
8
|
+
/**
|
|
9
|
+
* How far before the end of the list to start loading, as an
|
|
10
|
+
* IntersectionObserver `rootMargin`. Default: 300px below the viewport.
|
|
11
|
+
*/
|
|
12
|
+
rootMargin?: string;
|
|
13
|
+
/** Stop watching, e.g. while an error is shown. */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Infinite scrolling for a list (BOFF-15331): put the returned ref on an
|
|
18
|
+
* element after the last item, and the next page loads as that element comes
|
|
19
|
+
* near the viewport.
|
|
20
|
+
*
|
|
21
|
+
* - One request at a time: nothing is watched while `loading` is true.
|
|
22
|
+
* - Short pages keep loading: when a page finishes and the end of the list is
|
|
23
|
+
* still in view, the next page loads too, so a page that does not fill the
|
|
24
|
+
* screen never leaves the list stuck.
|
|
25
|
+
* - Nothing happens once `hasMore` is false, or where IntersectionObserver is
|
|
26
|
+
* missing; render a "Load more" button as well for that case and for
|
|
27
|
+
* keyboard users.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* const endRef = useInfiniteScroll({ hasMore, loading: isLoadingMore, onLoadMore: loadMore });
|
|
32
|
+
* return (
|
|
33
|
+
* <>
|
|
34
|
+
* {items.map((item) => <Row key={item.id} item={item} />)}
|
|
35
|
+
* <div ref={endRef} aria-hidden="true" />
|
|
36
|
+
* </>
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export declare function useInfiniteScroll({ hasMore, loading, onLoadMore, rootMargin, disabled, }: UseInfiniteScrollOptions): (element: Element | null) => void;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { useEffect as e, useLayoutEffect as t, useRef as n, useState as r } from "react";
|
|
2
|
+
// src/shared/hooks/useInfiniteScroll.ts
|
|
3
|
+
var i = typeof window > "u" ? e : t;
|
|
4
|
+
function a({ hasMore: t, loading: a, onLoadMore: o, rootMargin: s = "0px 0px 300px 0px", disabled: c = !1 }) {
|
|
5
|
+
let [l, u] = r(null), d = n({
|
|
6
|
+
onLoadMore: o,
|
|
7
|
+
hasMore: t,
|
|
8
|
+
loading: a,
|
|
9
|
+
disabled: c
|
|
10
|
+
});
|
|
11
|
+
return i(() => {
|
|
12
|
+
d.current = {
|
|
13
|
+
onLoadMore: o,
|
|
14
|
+
hasMore: t,
|
|
15
|
+
loading: a,
|
|
16
|
+
disabled: c
|
|
17
|
+
};
|
|
18
|
+
}, [
|
|
19
|
+
o,
|
|
20
|
+
t,
|
|
21
|
+
a,
|
|
22
|
+
c
|
|
23
|
+
]), e(() => {
|
|
24
|
+
if (!l || c || !t || a || typeof IntersectionObserver > "u") return;
|
|
25
|
+
let e = !0, n = new IntersectionObserver((t) => {
|
|
26
|
+
if (!e || !t.some((e) => e.isIntersecting)) return;
|
|
27
|
+
let r = d.current;
|
|
28
|
+
r.loading || !r.hasMore || r.disabled || (e = !1, n.disconnect(), r.onLoadMore());
|
|
29
|
+
}, { rootMargin: s });
|
|
30
|
+
return n.observe(l), () => {
|
|
31
|
+
e = !1, n.disconnect();
|
|
32
|
+
};
|
|
33
|
+
}, [
|
|
34
|
+
l,
|
|
35
|
+
t,
|
|
36
|
+
a,
|
|
37
|
+
c,
|
|
38
|
+
s
|
|
39
|
+
]), u;
|
|
40
|
+
}
|
|
41
|
+
export { a as useInfiniteScroll };
|
package/dist/shared-hooks.js
CHANGED
|
@@ -17,30 +17,31 @@ import { useSessionStorage as j } from "./shared/hooks/useSessionStorage.js";
|
|
|
17
17
|
import { usePrevious as M, usePreviousDistinct as N, usePreviousHistory as P } from "./shared/hooks/usePrevious.js";
|
|
18
18
|
import { useConditionalToggle as F, useToggle as I, useToggleObject as L } from "./shared/hooks/useToggle.js";
|
|
19
19
|
import { usePagination as R } from "./shared/hooks/usePagination.js";
|
|
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
|
|
20
|
+
import { useInfiniteScroll as z } from "./shared/hooks/useInfiniteScroll.js";
|
|
21
|
+
import { useAsync as B, useAsyncImmediate as V } from "./shared/hooks/useAsync.js";
|
|
22
|
+
import { usePWA as H } from "./shared/hooks/usePWA.js";
|
|
23
|
+
import { useHasAnimated as U } from "./shared/hooks/useHasAnimated.js";
|
|
24
|
+
import { MODIFIER_KEYS as W, PLATFORM_TYPES as G } from "./shared/keyboard/types.js";
|
|
25
|
+
import { useKeyboardShortcuts as te } from "./shared/keyboard/useKeyboardShortcuts.js";
|
|
26
|
+
import { useHotkeys as K } from "./shared/keyboard/useHotkeys.js";
|
|
27
|
+
import { useShortcutHelp as q } from "./shared/keyboard/useShortcutHelp.js";
|
|
28
|
+
import { GLOBAL_SHORTCUT_CATEGORIES as J, createGlobalShortcuts as Y, getGlobalShortcutsByCategory as X, mergeShortcuts as Z } from "./shared/keyboard/globalShortcuts.js";
|
|
29
|
+
import { COMMAND_CHORD_ID_PREFIX as Q, commandChordShortcuts as ne, isChordShortcut as re, normalizeChord as ie, withCommandChords as ae } from "./shared/keyboard/commandChords.js";
|
|
30
|
+
import { useLogger as oe } from "./shared/logger/useLogger.js";
|
|
31
|
+
import { useReferralAttribution as se } from "./shared/hooks/useReferralAttribution.js";
|
|
32
|
+
import { useRecordProductVisit as ce } from "./shared/hooks/useRecordProductVisit.js";
|
|
33
|
+
import { usePushDeviceRegistration as le } from "./shared/hooks/usePushDeviceRegistration.js";
|
|
34
|
+
import { PUSH_DEVICE_ID_STORAGE_KEY as ue, getOrCreatePushDeviceId as de, registerPushDevice as fe, unregisterPushDevice as pe } from "./shared/native/push-registration.js";
|
|
35
|
+
import { QUOTA_EXHAUSTED_EVENT as me, dispatchQuotaExhausted as he, useQuotaErrorToast as ge } from "./shared/hooks/useQuotaErrorToast.js";
|
|
36
|
+
import { PLAN_USAGE_SNAPSHOT_EVENT as _e, publishPlanUsageSnapshot as ve, useUpgradePrompt as ye } from "./shared/hooks/useUpgradePrompt.js";
|
|
37
|
+
import { appendContextToPath as be, useCurrentContextSearchParams as xe } from "./shared/hooks/useCurrentContextSearchParams.js";
|
|
38
|
+
import { UNSAVED_CHANGE_LABEL_MAX as Se, listUnsavedChanges as Ce, registerUnsavedChange as we, unsavedChangesBlocking as Te, useUnsavedChanges as Ee } from "./shared/navigation/unsavedChanges.js";
|
|
39
|
+
import De, { use as Oe } from "react";
|
|
39
40
|
// src/shared/hooks/index.ts
|
|
40
|
-
var $ =
|
|
41
|
-
function
|
|
42
|
-
let e =
|
|
41
|
+
var $ = De.createContext(null);
|
|
42
|
+
function ke() {
|
|
43
|
+
let e = Oe($);
|
|
43
44
|
if (!e) throw Error("useMicrofrontendContext must be used within a MicrofrontendProvider");
|
|
44
45
|
return e;
|
|
45
46
|
}
|
|
46
|
-
export { s as BREAKPOINTS,
|
|
47
|
+
export { s as BREAKPOINTS, Q as COMMAND_CHORD_ID_PREFIX, i as ConsoleTransport, J as GLOBAL_SHORTCUT_CATEGORIES, t as LogLevel, ee as LogManager, n as Logger, W as MODIFIER_KEYS, $ as MicrofrontendContext, _e as PLAN_USAGE_SNAPSHOT_EVENT, G as PLATFORM_TYPES, ue as PUSH_DEVICE_ID_STORAGE_KEY, me as QUOTA_EXHAUSTED_EVENT, Se as UNSAVED_CHANGE_LABEL_MAX, be as appendContextToPath, ne as commandChordShortcuts, Y as createGlobalShortcuts, f as detectPlatform, he as dispatchQuotaExhausted, p as formatKeyCombo, m as getDisplayKeysForPlatform, X as getGlobalShortcutsByCategory, de as getOrCreatePushDeviceId, h as getShortcutLabel, re as isChordShortcut, g as isMac, _ as isMobileDevice, v as isTabletDevice, Ce as listUnsavedChanges, r as logManager, y as matchesKeyCombo, Z as mergeShortcuts, ie as normalizeChord, b as normalizeKey, x as normalizePlatformCombo, S as parseKeyCombo, ve as publishPlanUsageSnapshot, fe as registerPushDevice, we as registerUnsavedChange, C as shouldEnableKeyboardShortcuts, w as shouldIgnoreShortcut, pe as unregisterPushDevice, Te as unsavedChangesBlocking, B as useAsync, V as useAsyncImmediate, c as useBreakpoint, F as useConditionalToggle, D as useCopyToClipboard, xe as useCurrentContextSearchParams, e as useDebounce, O as useExclusiveMenu, U as useHasAnimated, K as useHotkeys, z as useInfiniteScroll, T as useKeyPress, E as useKeyboardShortcut, te as useKeyboardShortcuts, A as useLocalStorage, oe as useLogger, o as useMediaQuery, ke as useMicrofrontendContext, l as useMobileBreakpoint, u as useOnClickOutside, d as useOnClickOutsideWithRef, H as usePWA, R as usePagination, M as usePrevious, N as usePreviousDistinct, P as usePreviousHistory, le as usePushDeviceRegistration, ge as useQuotaErrorToast, ce as useRecordProductVisit, se as useReferralAttribution, k as useReturnFocus, j as useSessionStorage, q as useShortcutHelp, a as useThrottle, I as useToggle, L as useToggleObject, Ee as useUnsavedChanges, ye as useUpgradePrompt, ae as withCommandChords };
|
package/dist/shared.js
CHANGED
|
@@ -122,41 +122,42 @@ import { useSessionStorage as os } from "./shared/hooks/useSessionStorage.js";
|
|
|
122
122
|
import { usePrevious as ss, usePreviousDistinct as cs, usePreviousHistory as ls } from "./shared/hooks/usePrevious.js";
|
|
123
123
|
import { useConditionalToggle as us, useToggle as ds, useToggleObject as fs } from "./shared/hooks/useToggle.js";
|
|
124
124
|
import { usePagination as ps } from "./shared/hooks/usePagination.js";
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import {
|
|
148
|
-
import {
|
|
149
|
-
import {
|
|
150
|
-
import {
|
|
151
|
-
import {
|
|
152
|
-
import {
|
|
153
|
-
import {
|
|
154
|
-
import {
|
|
155
|
-
import {
|
|
156
|
-
import {
|
|
157
|
-
import {
|
|
158
|
-
import {
|
|
125
|
+
import { useInfiniteScroll as ms } from "./shared/hooks/useInfiniteScroll.js";
|
|
126
|
+
import { useAsync as hs, useAsyncImmediate as gs } from "./shared/hooks/useAsync.js";
|
|
127
|
+
import { MODIFIER_KEYS as _s, PLATFORM_TYPES as vs } from "./shared/keyboard/types.js";
|
|
128
|
+
import { useKeyboardShortcuts as ys } from "./shared/keyboard/useKeyboardShortcuts.js";
|
|
129
|
+
import { useHotkeys as bs } from "./shared/keyboard/useHotkeys.js";
|
|
130
|
+
import { useShortcutHelp as xs } from "./shared/keyboard/useShortcutHelp.js";
|
|
131
|
+
import { GLOBAL_SHORTCUT_CATEGORIES as Ss, createGlobalShortcuts as Cs, getGlobalShortcutsByCategory as ws, mergeShortcuts as Ts } from "./shared/keyboard/globalShortcuts.js";
|
|
132
|
+
import { COMMAND_CHORD_ID_PREFIX as Es, commandChordShortcuts as Ds, isChordShortcut as Os, normalizeChord as ks, withCommandChords as As } from "./shared/keyboard/commandChords.js";
|
|
133
|
+
import { useLogger as js } from "./shared/logger/useLogger.js";
|
|
134
|
+
import { useHasAnimated as Ms } from "./shared/hooks/useHasAnimated.js";
|
|
135
|
+
import { useReferralAttribution as Ns } from "./shared/hooks/useReferralAttribution.js";
|
|
136
|
+
import { useRecordProductVisit as Ps } from "./shared/hooks/useRecordProductVisit.js";
|
|
137
|
+
import { usePushDeviceRegistration as Fs } from "./shared/hooks/usePushDeviceRegistration.js";
|
|
138
|
+
import { QUOTA_EXHAUSTED_EVENT as Is, dispatchQuotaExhausted as Ls, useQuotaErrorToast as Rs } from "./shared/hooks/useQuotaErrorToast.js";
|
|
139
|
+
import { PLAN_USAGE_SNAPSHOT_EVENT as zs, publishPlanUsageSnapshot as Bs, useUpgradePrompt as Vs } from "./shared/hooks/useUpgradePrompt.js";
|
|
140
|
+
import { appendContextToPath as Hs, useCurrentContextSearchParams as Us } from "./shared/hooks/useCurrentContextSearchParams.js";
|
|
141
|
+
import { UNSAVED_CHANGE_LABEL_MAX as Ws, listUnsavedChanges as Gs, registerUnsavedChange as Ks, unsavedChangesBlocking as qs, useUnsavedChanges as Js } from "./shared/navigation/unsavedChanges.js";
|
|
142
|
+
import { MicrofrontendProvider as Ys } from "./shared-providers.js";
|
|
143
|
+
import { withTourProgressStatus as Xs } from "./shared/tours/progress.js";
|
|
144
|
+
import { detectDeviceType as Zs, getResponsiveSelector as Qs } from "./shared/tours/types.js";
|
|
145
|
+
import { useTourPlayer as $s } from "./shared/tours/useTourPlayer.js";
|
|
146
|
+
import { TourSpotlight as ec } from "./shared/tours/TourSpotlight.js";
|
|
147
|
+
import { TourTooltip as tc } from "./shared/tours/TourTooltip.js";
|
|
148
|
+
import { TourPlayerProvider as nc, useIsTourPlaying as rc, useStartTour as ic, useStopTour as ac, useTourPlayerContext as oc } from "./shared/tours/TourPlayerProvider.js";
|
|
149
|
+
import { TourPlayer as sc, TourTriggerButton as cc, usePlayTour as lc } from "./shared/tours/TourPlayer.js";
|
|
150
|
+
import { BIGCONSOLE_TOUR_ROUTE_CATALOG as uc, BUILDMYIQ_TOUR_ROUTE_CATALOG as dc, BUILT_IN_TOUR_ROUTE_CATALOGS as fc, COLLABKIN_TOUR_ROUTE_CATALOG as pc, FLUIDGRIDS_TOUR_ROUTE_CATALOG as mc, INTELWATCHTOWER_TOUR_ROUTE_CATALOG as hc, MANUFACTUREDOPS_TOUR_ROUTE_CATALOG as gc, VIBECONTROLS_TOUR_ROUTE_CATALOG as _c, getBuiltInTourRouteCatalog as vc, listBuiltInTourRouteCatalogProductIds as yc } from "./shared/tours/catalogs.js";
|
|
151
|
+
import { createTourPageIdResolver as bc, getTourContextRank as xc, getTourRouteCatalog as Sc, getTourRouteCatalogVersion as Cc, getTourRouteModules as wc, getTourRoutePages as Tc, hasRegisteredTourRouteCatalog as Ec, isTourVisibleForContext as Dc, normalizeTourPath as Oc, registerTourRouteCatalog as kc, resolveTourTargetPath as Ac, subscribeTourRouteCatalogs as jc } from "./shared/tours/routeCatalog.js";
|
|
152
|
+
import { ToursProvider as Mc, useAutoStartTour as Nc, useSafeToursContext as Pc, useTours as Fc, useToursContext as Ic } from "./shared/tours/ToursContext.js";
|
|
153
|
+
import { TourInitializer as Lc } from "./shared/tours/TourInitializer.js";
|
|
154
|
+
import { shouldMountWebVitalsSink as Rc } from "./shared/rum/mount.js";
|
|
155
|
+
import { useRegisterTourRouteCatalog as zc, useTourRouteCatalog as Bc } from "./shared/tours/useTourRouteCatalog.js";
|
|
156
|
+
import { AppShellProvider as Vc, resolveAppShellObservabilityConfig as Hc } from "./shared/providers/AppShellProvider.js";
|
|
157
|
+
import { cn as Uc } from "./shared-utils.js";
|
|
158
|
+
import { TourTrigger as Wc } from "./shared/tours/TourTrigger.js";
|
|
159
|
+
import { acknowledgeNativePurchase as Gc, getNativeProducts as Kc, getNativePurchases as qc, installNativeIAP as Jc, isNativeIAPAvailable as Yc, purchaseNativeProduct as Xc, restoreNativePurchases as Zc } from "./shared/native/purchases.js";
|
|
159
160
|
import "./shared-native.js";
|
|
160
161
|
// src/shared/index.ts
|
|
161
|
-
var
|
|
162
|
-
export { No as ASSISTANT_WIDGET_TOGGLE_EVENT, oa as ATHELETEBRIDGE_ANALYTICS_ROUTES, sa as ATHELETEBRIDGE_RYBBIT_EVENTS, Li as AccessDenied, bi as ActorIdentity, ja as AnalyticsConsentBanner, Rr as ApolloClient, zr as ApolloProvider, qi as AppErrorBoundary, or as AppInitializer, Bc as AppShellProvider, Po as AssistantWidget, Dt as BACKEND_ERROR_EVENT, lc as BIGCONSOLE_TOUR_ROUTE_CATALOG, Ue as BOTMANOR_PRODUCT_SLUG, Zo as BREAKPOINTS, ia as BUILDMYIQ_RYBBIT_EVENTS, uc as BUILDMYIQ_TOUR_ROUTE_CATALOG, dc as BUILT_IN_TOUR_ROUTE_CATALOGS, qt as BYPASS_FETCH_RESPONSE_CACHE_CONTEXT_KEY, pa as BackendAuditSink, fa as BroadcastChannelSink, Qe as CANONICAL_DOCS_HOSTS, p as CHART_SERIES_COUNT, fc as COLLABKIN_TOUR_ROUTE_CATALOG, Ts as COMMAND_CHORD_ID_PREFIX, st as COMMON_SHELL_LESS_ROUTES, Ot as CONNECTION_STATUS_EVENT, Ma as CONSENT_BANNER_OFFSET_VAR, Wi as ConditionalShell, pr as ConsoleTransport, Ra as ContextConversationWidget, m as DATA_TYPES, pt as DEFAULT_PAGE_SIZE, io as DEFAULT_QUOTA_UPGRADE_COPY, ba as DEFAULT_RUM_SAMPLE_RATES, ct as DEFAULT_SHELL_CONFIG, te as DESKTOP_UPDATE_UNSUPPORTED, ne as DESKTOP_WINDOW_STATE_DEFAULT, Jo as DesktopUpdateToast, da as DevtoolsSink, ho as DocsLink, h as EDGE_KINDS, ji as ErrorBoundary, zi as ErrorFallback, ln as EventBusProvider, Zc as FE_SHARED_VERSION, ua as FLUIDGRIDS_RYBBIT_EVENTS, pc as FLUIDGRIDS_TOUR_ROUTE_CATALOG, Ji as FeatureFlagProvider, ta as FeatureGate, mt as GATEWAYS, aa as GGNOMAD_RYBBIT_EVENTS, xs as GLOBAL_SHORTCUT_CATEGORIES, en as GatewayProvider, Fr as INLINE_ENCODE, mc as INTELWATCHTOWER_TOUR_ROUTE_CATALOG, Br as InMemoryCache, Qa as KeyboardHelpDialogWrapper, Do as LandingGateView, Oo as LandingOrDashboardRedirect, Bi as LoadingFallback, lr as LogLevel, dr as LogManager, ur as Logger, ai as MAIN_CONTENT_ID, hc as MANUFACTUREDOPS_TOUR_ROUTE_CATALOG, _r as MARKETING_LEGAL_PATHS, xa as MAX_RUM_BODY_BYTES, Sa as MAX_RUM_REPORTS, gs as MODIFIER_KEYS, oi as MainLandmark, Fo as Markdown, ka as MicrofrontendContext, Ui as MicrofrontendErrorBoundary, Js as MicrofrontendProvider, g as NODE_CATEGORIES, _ as NODE_STATES, ga as OtelBrowserSink, Rs as PLAN_USAGE_SNAPSHOT_EVENT, _s as PLATFORM_TYPES, We as PRODUCTS, Le as PRODUCT_SLUG_EMIT, Re as PRODUCT_SLUG_RENAMES, Co as PRODUCT_SWITCH_HANDOFF_PARAM, Ge as PRODUCT_URLS, go as PUBLIC_PRODUCT_DOCS_URL_QUERY, hi as PULL_TO_REFRESH_THRESHOLD, Di as PUSH_DEVICE_ID_STORAGE_KEY, Ki as PWAInstallBanner, Vi as PageLoadingFallback, Pi as PermissionButton, Ri as PermissionDenied, Fi as PermissionGate, Ii as PermissionLink, si as PublicLayout, Er as QUOTA_EXHAUSTED_CODE, Fs as QUOTA_EXHAUSTED_EVENT, $a as QuotaMeter, ao as QuotaUpgradeBridge, Ca as REPORT_PUBLIC_WEB_VITALS_DOCUMENT, wa as REPORT_WEB_VITALS_DOCUMENT, Dr as RESOURCE_CAP_EXCEEDED_CODE, Mi as RequireAuth, Ni as RequireGuest, Na as RybbitSink, na as SEMANTICFED_ANALYTICS_ROUTES, ra as SEMANTICFED_RYBBIT_EVENTS, Jt as SEND_UNBATCHED_CONTEXT_KEY, Me as SESSION_BRIDGE_PAGE_PATH, Ne as SESSION_BRIDGE_ROUTE_PATH, Kt as SSELink, Hn as SSORedirectSpinner, Jn as SSO_DEPOSITED_PARAM, Or as STORAGE_QUOTA_EXCEEDED_CODE, di as SafeAreaView, Hi as SectionLoadingFallback, ci as SkipToContentLink, la as THECULTUREPOST_RYBBIT_EVENTS, ca as TIMECAMPUS_RYBBIT_EVENTS, Ic as TourInitializer, oc as TourPlayer, tc as TourPlayerProvider, $s as TourSpotlight, ec as TourTooltip, Uc as TourTrigger, sc as TourTriggerButton, jc as ToursProvider, Us as UNSAVED_CHANGE_LABEL_MAX, kr as UPGRADE_ERROR_CODES, eo as UPGRADE_PROMPT_EVENT, ro as UpgradeInlineBanner, to as UpgradePromptModal, gc as VIBECONTROLS_TOUR_ROUTE_CATALOG, bt as WORKSPACE_CONTEXT_CHANGED, xt as WORKSPACE_CONTEXT_MISMATCH_EVENT, St as WORKSPACE_WRITE_REFUSED_EVENT, Ct as WORKSPACE_WRITE_REFUSED_MESSAGE, Oa as WebVitalsSink, wt as WorkspaceContextChangedError, sn as WsLink, Wc as acknowledgeNativePurchase, n as alertTokens, Vs as appendContextToPath, Rn as assignLocationWithAllowlist, mn as attemptTokenRefresh, Yn as beginSsoNavigation, re as bootDesktopShell, xi as buildActorFallback, $e as buildProductDocsUrl, Ar as buildQuotaExhaustedMessage, Xn as buildSsoDepositUrl, _a as canReportRum, et as canonicalizeDocsOrigin, A as capitalizeFirst, j as capitalizeWords, oo as captureQuotaDialogOwners, r as categoryTokens, v as chartSeriesColor, y as chartSeriesIndex, Un as checkRemoteSLO, Wn as checkSLO, so as claimQuotaDialog, hn as clearAuthSessionStorage, It as clearGraphqlFetchResponseCache, Gn as clearLocalAuthState, bn as clearSSoCookie, xn as clearShellSsoCookies, Zn as clearSsoDepositState, Qn as clearSsoNavigation, mr as clearUserContext, Hc as cn, Es as commandChordShortcuts, ma as compileRybbitRoutePattern, gi as computePullOffset, _i as computePullProgress, $n as consumeSsoDepositMarker, t as createApolloClient, un as createEventBus, Ss as createGlobalShortcuts, Yt as createGraphQLClient, wr as createProfileScopedStorage, Ta as createRumReporter, yc as createTourPageIdResolver, b as dataTypeColor, x as dataTypeTextClasses, ie as desktopCheckForUpdates, ae as desktopDeepLinkToPath, oe as desktopInstallUpdate, se as desktopNotify, ce as desktopOpenExternal, le as desktopSetBadgeCount, ue as desktopSetLocale, de as desktopSetTheme, fe as desktopSetTrayQuickActions, Xs as detectDeviceType, za as detectPlatform, va as deviceClass, kt as dispatchBackendErrorEvent, co as dispatchProductQuotaExhausted, Is as dispatchQuotaExhausted, no as dispatchUpgradePrompt, Ir as downscaleImage, S as edgeColor, ze as emitProductSlug, At as extractBackendError, jr as extractQuotaExhaustedExtensions, Mr as extractUpgradeErrorExtensions, _o as fetchRegistryDocsUrl, Ke as findProductConfig, li as focusSkipTarget, M as formatBytes, N as formatCompactNumber, P as formatCurrency, F as formatCurrencyCompact, I as formatDate, L as formatDateTime, R as formatDuration, Ba as formatKeyCombo, z as formatList, B as formatNumber, V as formatOrdinal, H as formatPercentage, U as formatRelativeTime, W as formatTime, i as getAlertTokens, _c as getBuiltInTourRouteCatalog, Q as getCapacitorPlatform, tt as getCatalogDocsOrigin, a as getCategoryTokens, pe as getDesktopAuthBridgeConfig, me as getDesktopBridge, he as getDesktopGatewayBases, ge as getDesktopGatewayUrls, _e as getDesktopRuntimeConfig, ve as getDesktopUpdateState, ye as getDesktopWindowState, Va as getDisplayKeysForPlatform, ht as getGatewayConfig, gt as getGatewayUrl, Xt as getGlobalClient, Cs as getGlobalShortcutsByCategory, _t as getGraphQLEndpoint, be as getLegacyDesktopRuntime, $ as getNativeAppIdHeader, On as getNativeBridge, xo as getNativeEntryRoutes, Gc as getNativeProducts, Kc as getNativePurchases, Oi as getOrCreatePushDeviceId, kn as getPlatform, qe as getProductUrl, Je as getProductsWithUrls, Tr as getProfileScopedKey, o as getProgressTokens, Ci as getPushOptInController, Zs as getResponsiveSelector, Kn as getSSORedirectUrl, Sn as getSSoCookie, lt as getShellConfig, Ha as getShortcutLabel, s as getStatusBadgeTokens, c as getStatusTokens, Lt as getStoredAuthToken, Rt as getStoredLocale, zt as getStoredOrganizationId, Bt as getStoredProjectId, Vt as getStoredWorkspaceId, Ht as getStoredWorkspaceToken, bc as getTourContextRank, xc as getTourRouteCatalog, Sc as getTourRouteCatalogVersion, Cc as getTourRouteModules, wc as getTourRoutePages, l as getTrendTokens, Zt as getWorkspaceClient, vt as getWorkspaceTokenPayload, Vr as gql, Ut as graphqlFetch, Wt as graphqlFetchPinned, gn as hasAuthGraphQLErrors, wo as hasProductSwitchHandoff, Tc as hasRegisteredTourRouteCatalog, ko as hasStoredValidSession, Qt as initializeAppClients, hr as initializeLogger, xe as installDesktopDeepLinkHandler, Se as installDesktopNavigateHandler, ke as installGatewayFetchRewrite, qc as installNativeIAP, jt as isAbortError, zn as isAllowedRedirectUrl, Ye as isAlphaAppShell, An as isAndroid, _n as isAuthGraphQLError, vn as isAuthNetworkError, Mt as isBackendErrorDisplay, ee as isCapacitorNative, Ds as isChordShortcut, X as isChunkLoadError, Ce as isDesktop, jn as isElectron, Mn as isIOS, Nn as isInstalledApp, Ua as isMac, Wa as isMobileDevice, Pn as isNative, Jc as isNativeIAPAvailable, Nr as isQuotaExhaustedError, ha as isRybbitSkippedRoute, Be as isSameProductSlug, Pe as isSessionBridgePath, Cn as isSharedSsoCookieDomain, ut as isShellLessRoute, er as isSsoNavigationPending, Fn as isStandalonePWA, Ga as isTabletDevice, Ec as isTourVisibleForContext, Nt as isTransportError, wn as isTrustedSsoOrigin, Pr as isUpgradeError, In as isWeb, Ln as isWebBrowser, Tt as isWorkspaceContextChangedError, yt as isWorkspaceTokenValidForContext, Z as lazyWithRetry, Ve as legacyProductSlug, vc as listBuiltInTourRouteCatalogProductIds, Ws as listUnsavedChanges, fr as logManager, Pt as markConnectionHealthy, tr as markSsoDepositDone, nr as markSsoDepositPending, Ka as matchesKeyCombo, ws as mergeShortcuts, rr as mintSsoSessionTokens, Xr as nativeActionSheet, Zr as nativeConfirm, Qr as nativeCopyText, $r as nativeImpact, ei as nativeNotify, ti as nativeOpenUrl, ni as nativeSelection, ri as nativeShare, ii as nativeToast, C as nodeCategoryClasses, w as nodeCategoryColor, T as nodeCategorySubtleColor, E as nodeStateColor, D as nodeStateRingClasses, Os as normalizeChord, nt as normalizeDocsPath, qa as normalizeKey, Ja as normalizePlatformCombo, He as normalizeProductSlug, Dc as normalizeTourPath, we as onDesktopUpdateState, Te as onDesktopWindowState, Bn as openUrlInNewTabWithAllowlist, Ya as parseKeyCombo, G as pluralize, cn as prepareWorkspaceRequest, u as progressTokens, Pa as publishConsentBannerOffset, zs as publishPlanUsageSnapshot, Yc as purchaseNativeProduct, lo as quotaEventKind, Fa as readAnalyticsConsent, Ia as readAnalyticsConsentChoice, Et as readContextInputWorkspaceId, fi as readInitialNetworkStatus, vo as readRegistryDocsUrl, Tn as readShellSsoCookie, ir as readSsoDepositState, wi as recordPushPermissionPromptDismissed, yn as redirectToLogin, qn as redirectToSSO, pi as reduceNetworkStatus, Ee as registerDesktopNavigator, ki as registerPushDevice, Ti as registerPushOptInController, Oc as registerTourRouteCatalog, Gs as registerUnsavedChange, Vn as replaceLocationWithAllowlist, $t as resetAppClients, Uo as resolveActionSheetOutcome, Vc as resolveAppShellObservabilityConfig, Fe as resolveAuthBridgeConfig, rt as resolveDocsEnvironment, vr as resolveDocsOrigin, yr as resolveDocsUrl, De as resolveExternalGatewayUrls, Ae as resolveGatewayBases, Gt as resolveGatewayUrl, Oe as resolveGatewayUrls, Ao as resolveLandingGate, br as resolveLegalPath, xr as resolveMarketingOrigin, Sr as resolveMarketingUrl, it as resolveProductDocsOrigin, Cr as resolveProductDomain, uo as resolveQuotaUpgradeCopy, Ea as resolveRumSampleRate, Ie as resolveShellAuthBridgeConfig, kc as resolveTourTargetPath, Xc as restoreNativePurchases, ya as rumSection, Lr as selectInlineBase64, La as setAnalyticsConsent, En as setSSoCookie, Dn as setShellSsoCookies, gr as setUserContext, ar as shouldAttemptSsoDeposit, Xa as shouldEnableKeyboardShortcuts, Za as shouldIgnoreShortcut, Lc as shouldMountWebVitalsSink, Ei as shouldPromptForPushPermission, dt as shouldShowBreadcrumb, So as shouldShowNativeWelcome, ft as shouldShowSidebar, Ft as shouldToastBackendError, Hr as skipToken, K as slugify, jo as startProductSwitchHandoff, d as statusTokens, To as stripProductSwitchHandoff, Ac as subscribeTourRouteCatalogs, je as suppressConsole, Xe as toAlphaAppUrl, q as toCamelCase, Ze as toCurrentEstateAppUrl, O as toDataType, at as toEnvironmentDocsOrigin, k as toNodeCategory, J as toPascalCase, Da as toRumNavigationType, ot as toTrustedDocsOrigin, f as trendTokens, Y as truncateText, Ai as unregisterPushDevice, Ks as unsavedChangesBlocking, Wo as useActionSheet, Si as useActorProfiles, Ur as useApolloClient, zo as useAppState, ms as useAsync, hs as useAsyncImmediate, Mc as useAutoStartTour, Qo as useBreakpoint, us as useConditionalToggle, e as useCopyToClipboard, Hs as useCurrentContextSearchParams, Yo as useDebounce, Go as useDesktop, Ko as useDesktopUpdateState, qo as useDesktopWindowState, Bo as useDeviceInfo, dn as useEvent, fn as useEventBus, pn as useEventEmitter, is as useExclusiveMenu, Zi as useFeatureFlag, Qi as useFeatureFlagDetails, $i as useFeatureFlagValue, Yi as useFeatureFlags, tn as useGateway, nn as useGatewayClient, Vo as useHaptics, js as useHasAnimated, on as useHasAuthToken, ys as useHotkeys, ui as useInsideMainLandmark, nc as useIsTourPlaying, ns as useKeyPress, rs as useKeyboardShortcut, vs as useKeyboardShortcuts, Wr as useLazyQuery, as as useLocalStorage, As as useLogger, Yr as useMediaQuery, Aa as useMicrofrontendContext, $o as useMobileBreakpoint, Gr as useMutation, Ro as useNativeKeyboard, Io as useNativePlatform, mi as useNetworkStatus, es as useOnClickOutside, ts as useOnClickOutsideWithRef, ea as useOptionalFeatureFlag, Xi as useOptionalFeatureFlags, Gi as usePWA, ps as usePagination, cc as usePlayTour, ss as usePrevious, cs as usePreviousDistinct, ls as usePreviousHistory, yo as useProductDocsOrigin, bo as useProductDocsUrl, vi as usePullToRefresh, Ps as usePushDeviceRegistration, Kr as useQuery, fo as useQuotaDialogOwnership, Ls as useQuotaErrorToast, po as useQuotaUpgradeBridge, Ns as useRecordProductVisit, Ms as useReferralAttribution, Rc as useRegisterTourRouteCatalog, sr as useRegistryHelpers, yi as useReturnFocus, Lo as useSafeArea, rn as useSafeGateway, an as useSafeGatewayClient, Nc as useSafeToursContext, os as useSessionStorage, cr as useShellNavigate, bs as useShortcutHelp, rc as useStartTour, Ho as useStatusBar, ic as useStopTour, qr as useSubscription, Jr as useSuspenseQuery, Xo as useThrottle, ds as useToggle, fs as useToggleObject, Qs as useTourPlayer, ac as useTourPlayerContext, zc as useTourRouteCatalog, Pc as useTours, Fc as useToursContext, qs as useUnsavedChanges, Bs as useUpgradePrompt, Mo as useVoiceInput, ks as withCommandChords, Eo as withProductSwitchHandoff, mo as withQuotaDialogOwnership, Ys as withTourProgressStatus };
|
|
162
|
+
var Qc = "1.0.0";
|
|
163
|
+
export { No as ASSISTANT_WIDGET_TOGGLE_EVENT, oa as ATHELETEBRIDGE_ANALYTICS_ROUTES, sa as ATHELETEBRIDGE_RYBBIT_EVENTS, Li as AccessDenied, bi as ActorIdentity, ja as AnalyticsConsentBanner, Rr as ApolloClient, zr as ApolloProvider, qi as AppErrorBoundary, or as AppInitializer, Vc as AppShellProvider, Po as AssistantWidget, Dt as BACKEND_ERROR_EVENT, uc as BIGCONSOLE_TOUR_ROUTE_CATALOG, Ue as BOTMANOR_PRODUCT_SLUG, Zo as BREAKPOINTS, ia as BUILDMYIQ_RYBBIT_EVENTS, dc as BUILDMYIQ_TOUR_ROUTE_CATALOG, fc as BUILT_IN_TOUR_ROUTE_CATALOGS, qt as BYPASS_FETCH_RESPONSE_CACHE_CONTEXT_KEY, pa as BackendAuditSink, fa as BroadcastChannelSink, Qe as CANONICAL_DOCS_HOSTS, p as CHART_SERIES_COUNT, pc as COLLABKIN_TOUR_ROUTE_CATALOG, Es as COMMAND_CHORD_ID_PREFIX, st as COMMON_SHELL_LESS_ROUTES, Ot as CONNECTION_STATUS_EVENT, Ma as CONSENT_BANNER_OFFSET_VAR, Wi as ConditionalShell, pr as ConsoleTransport, Ra as ContextConversationWidget, m as DATA_TYPES, pt as DEFAULT_PAGE_SIZE, io as DEFAULT_QUOTA_UPGRADE_COPY, ba as DEFAULT_RUM_SAMPLE_RATES, ct as DEFAULT_SHELL_CONFIG, te as DESKTOP_UPDATE_UNSUPPORTED, ne as DESKTOP_WINDOW_STATE_DEFAULT, Jo as DesktopUpdateToast, da as DevtoolsSink, ho as DocsLink, h as EDGE_KINDS, ji as ErrorBoundary, zi as ErrorFallback, ln as EventBusProvider, Qc as FE_SHARED_VERSION, ua as FLUIDGRIDS_RYBBIT_EVENTS, mc as FLUIDGRIDS_TOUR_ROUTE_CATALOG, Ji as FeatureFlagProvider, ta as FeatureGate, mt as GATEWAYS, aa as GGNOMAD_RYBBIT_EVENTS, Ss as GLOBAL_SHORTCUT_CATEGORIES, en as GatewayProvider, Fr as INLINE_ENCODE, hc as INTELWATCHTOWER_TOUR_ROUTE_CATALOG, Br as InMemoryCache, Qa as KeyboardHelpDialogWrapper, Do as LandingGateView, Oo as LandingOrDashboardRedirect, Bi as LoadingFallback, lr as LogLevel, dr as LogManager, ur as Logger, ai as MAIN_CONTENT_ID, gc as MANUFACTUREDOPS_TOUR_ROUTE_CATALOG, _r as MARKETING_LEGAL_PATHS, xa as MAX_RUM_BODY_BYTES, Sa as MAX_RUM_REPORTS, _s as MODIFIER_KEYS, oi as MainLandmark, Fo as Markdown, ka as MicrofrontendContext, Ui as MicrofrontendErrorBoundary, Ys as MicrofrontendProvider, g as NODE_CATEGORIES, _ as NODE_STATES, ga as OtelBrowserSink, zs as PLAN_USAGE_SNAPSHOT_EVENT, vs as PLATFORM_TYPES, We as PRODUCTS, Le as PRODUCT_SLUG_EMIT, Re as PRODUCT_SLUG_RENAMES, Co as PRODUCT_SWITCH_HANDOFF_PARAM, Ge as PRODUCT_URLS, go as PUBLIC_PRODUCT_DOCS_URL_QUERY, hi as PULL_TO_REFRESH_THRESHOLD, Di as PUSH_DEVICE_ID_STORAGE_KEY, Ki as PWAInstallBanner, Vi as PageLoadingFallback, Pi as PermissionButton, Ri as PermissionDenied, Fi as PermissionGate, Ii as PermissionLink, si as PublicLayout, Er as QUOTA_EXHAUSTED_CODE, Is as QUOTA_EXHAUSTED_EVENT, $a as QuotaMeter, ao as QuotaUpgradeBridge, Ca as REPORT_PUBLIC_WEB_VITALS_DOCUMENT, wa as REPORT_WEB_VITALS_DOCUMENT, Dr as RESOURCE_CAP_EXCEEDED_CODE, Mi as RequireAuth, Ni as RequireGuest, Na as RybbitSink, na as SEMANTICFED_ANALYTICS_ROUTES, ra as SEMANTICFED_RYBBIT_EVENTS, Jt as SEND_UNBATCHED_CONTEXT_KEY, Me as SESSION_BRIDGE_PAGE_PATH, Ne as SESSION_BRIDGE_ROUTE_PATH, Kt as SSELink, Hn as SSORedirectSpinner, Jn as SSO_DEPOSITED_PARAM, Or as STORAGE_QUOTA_EXCEEDED_CODE, di as SafeAreaView, Hi as SectionLoadingFallback, ci as SkipToContentLink, la as THECULTUREPOST_RYBBIT_EVENTS, ca as TIMECAMPUS_RYBBIT_EVENTS, Lc as TourInitializer, sc as TourPlayer, nc as TourPlayerProvider, ec as TourSpotlight, tc as TourTooltip, Wc as TourTrigger, cc as TourTriggerButton, Mc as ToursProvider, Ws as UNSAVED_CHANGE_LABEL_MAX, kr as UPGRADE_ERROR_CODES, eo as UPGRADE_PROMPT_EVENT, ro as UpgradeInlineBanner, to as UpgradePromptModal, _c as VIBECONTROLS_TOUR_ROUTE_CATALOG, bt as WORKSPACE_CONTEXT_CHANGED, xt as WORKSPACE_CONTEXT_MISMATCH_EVENT, St as WORKSPACE_WRITE_REFUSED_EVENT, Ct as WORKSPACE_WRITE_REFUSED_MESSAGE, Oa as WebVitalsSink, wt as WorkspaceContextChangedError, sn as WsLink, Gc as acknowledgeNativePurchase, n as alertTokens, Hs as appendContextToPath, Rn as assignLocationWithAllowlist, mn as attemptTokenRefresh, Yn as beginSsoNavigation, re as bootDesktopShell, xi as buildActorFallback, $e as buildProductDocsUrl, Ar as buildQuotaExhaustedMessage, Xn as buildSsoDepositUrl, _a as canReportRum, et as canonicalizeDocsOrigin, A as capitalizeFirst, j as capitalizeWords, oo as captureQuotaDialogOwners, r as categoryTokens, v as chartSeriesColor, y as chartSeriesIndex, Un as checkRemoteSLO, Wn as checkSLO, so as claimQuotaDialog, hn as clearAuthSessionStorage, It as clearGraphqlFetchResponseCache, Gn as clearLocalAuthState, bn as clearSSoCookie, xn as clearShellSsoCookies, Zn as clearSsoDepositState, Qn as clearSsoNavigation, mr as clearUserContext, Uc as cn, Ds as commandChordShortcuts, ma as compileRybbitRoutePattern, gi as computePullOffset, _i as computePullProgress, $n as consumeSsoDepositMarker, t as createApolloClient, un as createEventBus, Cs as createGlobalShortcuts, Yt as createGraphQLClient, wr as createProfileScopedStorage, Ta as createRumReporter, bc as createTourPageIdResolver, b as dataTypeColor, x as dataTypeTextClasses, ie as desktopCheckForUpdates, ae as desktopDeepLinkToPath, oe as desktopInstallUpdate, se as desktopNotify, ce as desktopOpenExternal, le as desktopSetBadgeCount, ue as desktopSetLocale, de as desktopSetTheme, fe as desktopSetTrayQuickActions, Zs as detectDeviceType, za as detectPlatform, va as deviceClass, kt as dispatchBackendErrorEvent, co as dispatchProductQuotaExhausted, Ls as dispatchQuotaExhausted, no as dispatchUpgradePrompt, Ir as downscaleImage, S as edgeColor, ze as emitProductSlug, At as extractBackendError, jr as extractQuotaExhaustedExtensions, Mr as extractUpgradeErrorExtensions, _o as fetchRegistryDocsUrl, Ke as findProductConfig, li as focusSkipTarget, M as formatBytes, N as formatCompactNumber, P as formatCurrency, F as formatCurrencyCompact, I as formatDate, L as formatDateTime, R as formatDuration, Ba as formatKeyCombo, z as formatList, B as formatNumber, V as formatOrdinal, H as formatPercentage, U as formatRelativeTime, W as formatTime, i as getAlertTokens, vc as getBuiltInTourRouteCatalog, Q as getCapacitorPlatform, tt as getCatalogDocsOrigin, a as getCategoryTokens, pe as getDesktopAuthBridgeConfig, me as getDesktopBridge, he as getDesktopGatewayBases, ge as getDesktopGatewayUrls, _e as getDesktopRuntimeConfig, ve as getDesktopUpdateState, ye as getDesktopWindowState, Va as getDisplayKeysForPlatform, ht as getGatewayConfig, gt as getGatewayUrl, Xt as getGlobalClient, ws as getGlobalShortcutsByCategory, _t as getGraphQLEndpoint, be as getLegacyDesktopRuntime, $ as getNativeAppIdHeader, On as getNativeBridge, xo as getNativeEntryRoutes, Kc as getNativeProducts, qc as getNativePurchases, Oi as getOrCreatePushDeviceId, kn as getPlatform, qe as getProductUrl, Je as getProductsWithUrls, Tr as getProfileScopedKey, o as getProgressTokens, Ci as getPushOptInController, Qs as getResponsiveSelector, Kn as getSSORedirectUrl, Sn as getSSoCookie, lt as getShellConfig, Ha as getShortcutLabel, s as getStatusBadgeTokens, c as getStatusTokens, Lt as getStoredAuthToken, Rt as getStoredLocale, zt as getStoredOrganizationId, Bt as getStoredProjectId, Vt as getStoredWorkspaceId, Ht as getStoredWorkspaceToken, xc as getTourContextRank, Sc as getTourRouteCatalog, Cc as getTourRouteCatalogVersion, wc as getTourRouteModules, Tc as getTourRoutePages, l as getTrendTokens, Zt as getWorkspaceClient, vt as getWorkspaceTokenPayload, Vr as gql, Ut as graphqlFetch, Wt as graphqlFetchPinned, gn as hasAuthGraphQLErrors, wo as hasProductSwitchHandoff, Ec as hasRegisteredTourRouteCatalog, ko as hasStoredValidSession, Qt as initializeAppClients, hr as initializeLogger, xe as installDesktopDeepLinkHandler, Se as installDesktopNavigateHandler, ke as installGatewayFetchRewrite, Jc as installNativeIAP, jt as isAbortError, zn as isAllowedRedirectUrl, Ye as isAlphaAppShell, An as isAndroid, _n as isAuthGraphQLError, vn as isAuthNetworkError, Mt as isBackendErrorDisplay, ee as isCapacitorNative, Os as isChordShortcut, X as isChunkLoadError, Ce as isDesktop, jn as isElectron, Mn as isIOS, Nn as isInstalledApp, Ua as isMac, Wa as isMobileDevice, Pn as isNative, Yc as isNativeIAPAvailable, Nr as isQuotaExhaustedError, ha as isRybbitSkippedRoute, Be as isSameProductSlug, Pe as isSessionBridgePath, Cn as isSharedSsoCookieDomain, ut as isShellLessRoute, er as isSsoNavigationPending, Fn as isStandalonePWA, Ga as isTabletDevice, Dc as isTourVisibleForContext, Nt as isTransportError, wn as isTrustedSsoOrigin, Pr as isUpgradeError, In as isWeb, Ln as isWebBrowser, Tt as isWorkspaceContextChangedError, yt as isWorkspaceTokenValidForContext, Z as lazyWithRetry, Ve as legacyProductSlug, yc as listBuiltInTourRouteCatalogProductIds, Gs as listUnsavedChanges, fr as logManager, Pt as markConnectionHealthy, tr as markSsoDepositDone, nr as markSsoDepositPending, Ka as matchesKeyCombo, Ts as mergeShortcuts, rr as mintSsoSessionTokens, Xr as nativeActionSheet, Zr as nativeConfirm, Qr as nativeCopyText, $r as nativeImpact, ei as nativeNotify, ti as nativeOpenUrl, ni as nativeSelection, ri as nativeShare, ii as nativeToast, C as nodeCategoryClasses, w as nodeCategoryColor, T as nodeCategorySubtleColor, E as nodeStateColor, D as nodeStateRingClasses, ks as normalizeChord, nt as normalizeDocsPath, qa as normalizeKey, Ja as normalizePlatformCombo, He as normalizeProductSlug, Oc as normalizeTourPath, we as onDesktopUpdateState, Te as onDesktopWindowState, Bn as openUrlInNewTabWithAllowlist, Ya as parseKeyCombo, G as pluralize, cn as prepareWorkspaceRequest, u as progressTokens, Pa as publishConsentBannerOffset, Bs as publishPlanUsageSnapshot, Xc as purchaseNativeProduct, lo as quotaEventKind, Fa as readAnalyticsConsent, Ia as readAnalyticsConsentChoice, Et as readContextInputWorkspaceId, fi as readInitialNetworkStatus, vo as readRegistryDocsUrl, Tn as readShellSsoCookie, ir as readSsoDepositState, wi as recordPushPermissionPromptDismissed, yn as redirectToLogin, qn as redirectToSSO, pi as reduceNetworkStatus, Ee as registerDesktopNavigator, ki as registerPushDevice, Ti as registerPushOptInController, kc as registerTourRouteCatalog, Ks as registerUnsavedChange, Vn as replaceLocationWithAllowlist, $t as resetAppClients, Uo as resolveActionSheetOutcome, Hc as resolveAppShellObservabilityConfig, Fe as resolveAuthBridgeConfig, rt as resolveDocsEnvironment, vr as resolveDocsOrigin, yr as resolveDocsUrl, De as resolveExternalGatewayUrls, Ae as resolveGatewayBases, Gt as resolveGatewayUrl, Oe as resolveGatewayUrls, Ao as resolveLandingGate, br as resolveLegalPath, xr as resolveMarketingOrigin, Sr as resolveMarketingUrl, it as resolveProductDocsOrigin, Cr as resolveProductDomain, uo as resolveQuotaUpgradeCopy, Ea as resolveRumSampleRate, Ie as resolveShellAuthBridgeConfig, Ac as resolveTourTargetPath, Zc as restoreNativePurchases, ya as rumSection, Lr as selectInlineBase64, La as setAnalyticsConsent, En as setSSoCookie, Dn as setShellSsoCookies, gr as setUserContext, ar as shouldAttemptSsoDeposit, Xa as shouldEnableKeyboardShortcuts, Za as shouldIgnoreShortcut, Rc as shouldMountWebVitalsSink, Ei as shouldPromptForPushPermission, dt as shouldShowBreadcrumb, So as shouldShowNativeWelcome, ft as shouldShowSidebar, Ft as shouldToastBackendError, Hr as skipToken, K as slugify, jo as startProductSwitchHandoff, d as statusTokens, To as stripProductSwitchHandoff, jc as subscribeTourRouteCatalogs, je as suppressConsole, Xe as toAlphaAppUrl, q as toCamelCase, Ze as toCurrentEstateAppUrl, O as toDataType, at as toEnvironmentDocsOrigin, k as toNodeCategory, J as toPascalCase, Da as toRumNavigationType, ot as toTrustedDocsOrigin, f as trendTokens, Y as truncateText, Ai as unregisterPushDevice, qs as unsavedChangesBlocking, Wo as useActionSheet, Si as useActorProfiles, Ur as useApolloClient, zo as useAppState, hs as useAsync, gs as useAsyncImmediate, Nc as useAutoStartTour, Qo as useBreakpoint, us as useConditionalToggle, e as useCopyToClipboard, Us as useCurrentContextSearchParams, Yo as useDebounce, Go as useDesktop, Ko as useDesktopUpdateState, qo as useDesktopWindowState, Bo as useDeviceInfo, dn as useEvent, fn as useEventBus, pn as useEventEmitter, is as useExclusiveMenu, Zi as useFeatureFlag, Qi as useFeatureFlagDetails, $i as useFeatureFlagValue, Yi as useFeatureFlags, tn as useGateway, nn as useGatewayClient, Vo as useHaptics, Ms as useHasAnimated, on as useHasAuthToken, bs as useHotkeys, ms as useInfiniteScroll, ui as useInsideMainLandmark, rc as useIsTourPlaying, ns as useKeyPress, rs as useKeyboardShortcut, ys as useKeyboardShortcuts, Wr as useLazyQuery, as as useLocalStorage, js as useLogger, Yr as useMediaQuery, Aa as useMicrofrontendContext, $o as useMobileBreakpoint, Gr as useMutation, Ro as useNativeKeyboard, Io as useNativePlatform, mi as useNetworkStatus, es as useOnClickOutside, ts as useOnClickOutsideWithRef, ea as useOptionalFeatureFlag, Xi as useOptionalFeatureFlags, Gi as usePWA, ps as usePagination, lc as usePlayTour, ss as usePrevious, cs as usePreviousDistinct, ls as usePreviousHistory, yo as useProductDocsOrigin, bo as useProductDocsUrl, vi as usePullToRefresh, Fs as usePushDeviceRegistration, Kr as useQuery, fo as useQuotaDialogOwnership, Rs as useQuotaErrorToast, po as useQuotaUpgradeBridge, Ps as useRecordProductVisit, Ns as useReferralAttribution, zc as useRegisterTourRouteCatalog, sr as useRegistryHelpers, yi as useReturnFocus, Lo as useSafeArea, rn as useSafeGateway, an as useSafeGatewayClient, Pc as useSafeToursContext, os as useSessionStorage, cr as useShellNavigate, xs as useShortcutHelp, ic as useStartTour, Ho as useStatusBar, ac as useStopTour, qr as useSubscription, Jr as useSuspenseQuery, Xo as useThrottle, ds as useToggle, fs as useToggleObject, $s as useTourPlayer, oc as useTourPlayerContext, Bc as useTourRouteCatalog, Fc as useTours, Ic as useToursContext, Js as useUnsavedChanges, Vs as useUpgradePrompt, Mo as useVoiceInput, As as withCommandChords, Eo as withProductSwitchHandoff, mo as withQuotaDialogOwnership, Xs as withTourProgressStatus };
|