@burdenoff/fe-libs 2026.1113.11 → 2026.1114.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +55 -8
  2. package/dist/admin-overview/AdminOverviewList.d.ts +8 -0
  3. package/dist/admin-overview/AdminOverviewList.js +217 -0
  4. package/dist/admin-overview/AdminOverviewPage.d.ts +7 -0
  5. package/dist/admin-overview/AdminOverviewPage.js +286 -199
  6. package/dist/admin-overview/adminOverviewModel.d.ts +44 -0
  7. package/dist/admin-overview/adminOverviewModel.js +48 -0
  8. package/dist/admin-overview/nodes/ProjectNode.js +30 -29
  9. package/dist/admin-overview/nodes/TenantNode.js +33 -32
  10. package/dist/admin-overview/operations.d.ts +10 -0
  11. package/dist/admin-overview/operations.js +41 -2
  12. package/dist/node_modules/pdfjs-dist/build/pdf.js +21 -0
  13. package/dist/node_modules/pdfjs-dist/build/pdf.worker.min.js +21 -0
  14. package/dist/platform-pages/AcceptShareRoute.js +15 -16
  15. package/dist/platform-pages/AffiliatesPage.js +4 -5
  16. package/dist/shared/assistant/createSandboxAssistantTransport.js +0 -1
  17. package/dist/shared/assistant/index.d.ts +1 -0
  18. package/dist/shared/assistant/ui/AssistantMarkdownRenderer.d.ts +4 -23
  19. package/dist/shared/assistant/ui/AssistantMarkdownRenderer.js +52 -55
  20. package/dist/shared/assistant/ui/AssistantMessageItem.js +37 -38
  21. package/dist/shared/assistant/ui/AssistantSpeechProvider.js +24 -25
  22. package/dist/shared/assistant/ui/composer/AssistantConnectSourceItem.js +3 -3
  23. package/dist/shared/assistant/ui/composer/connectSource.js +1 -2
  24. package/dist/shared/assistant/uiActions/assistantHref.d.ts +2 -30
  25. package/dist/shared/assistant/uiActions/assistantHref.js +7 -43
  26. package/dist/shared/assistant/uiActions/assistantLinkNavigation.d.ts +12 -0
  27. package/dist/shared/assistant/uiActions/assistantLinkNavigation.js +42 -0
  28. package/dist/shared/assistant/uiActions/inAppLinks.js +9 -8
  29. package/dist/shared/components/ContextConversationWidget.js +6 -7
  30. package/dist/shared/components/assistantWidget/MessageContent.js +3 -4
  31. package/dist/shared/components/contextConversationWidget/Composer.js +9 -10
  32. package/dist/shared/components/contextConversationWidget/MessageItem.js +0 -1
  33. package/dist/shared/components/contextConversationWidget/NoWorkspaceCard.js +0 -1
  34. package/dist/shared/components/contextConversationWidget/PendingAttachmentsBar.js +0 -1
  35. package/dist/shared/components/contextConversationWidget/ReplyBanner.js +0 -1
  36. package/dist/shared/components/contextConversationWidget/WidgetHeader.js +8 -9
  37. package/dist/shared/hooks/usePushDeviceRegistration.js +9 -10
  38. package/dist/shared/hooks/useRecordProductVisit.js +8 -9
  39. package/dist/shared/tours/ToursContext.js +6 -7
  40. package/dist/shared-assistant.js +160 -159
  41. package/dist/shared-hooks.js +10 -12
  42. package/dist/shared-plugins.js +0 -1
  43. package/dist/shared-providers-shell.js +7 -8
  44. package/dist/shared.js +83 -87
  45. package/dist/third-party/pdfjs-dist/ATTRIBUTION.txt +54 -0
  46. package/dist/third-party/pdfjs-dist/LICENSE +177 -0
  47. package/dist/third-party/pdfjs-dist/manifest.json +19 -0
  48. package/dist/utils/index.js +1 -1
  49. package/package.json +29 -2
  50. package/dist/shared/actors/index.js +0 -3
  51. package/dist/shared/assistant/speech/index.js +0 -6
  52. package/dist/shared/plugins/iframe-mount/index.js +0 -5
@@ -0,0 +1,44 @@
1
+ import { OrganizationSummary, TenantSummary, WorkspaceSummary } from './operations';
2
+ /** Every in-app destination the overview links to. One place, so the graph and the list agree. */
3
+ export declare const adminOverviewLinks: {
4
+ readonly organizations: () => string;
5
+ readonly organization: (organizationId: string) => string;
6
+ readonly organizationMembers: (organizationId: string) => string;
7
+ /** The Organizations list narrowed to one tenant (the list reads `tenantId`). */
8
+ readonly tenantOrganizations: (tenantId: string) => string;
9
+ readonly workspaces: () => string;
10
+ readonly workspace: (workspaceId: string) => string;
11
+ readonly projects: () => string;
12
+ /** The project itself, not the workspace's project list. */
13
+ readonly project: (workspaceId: string, projectId: string) => string;
14
+ readonly activity: () => string;
15
+ readonly invitePeople: () => string;
16
+ readonly myInvites: () => string;
17
+ };
18
+ /** An organization as the overview list shows it. `memberCount` is null when the gateway did not send it. */
19
+ export interface OverviewOrganization {
20
+ id: string;
21
+ name: string;
22
+ tenantId: string | null;
23
+ memberCount: number | null;
24
+ workspaces: WorkspaceSummary[];
25
+ }
26
+ export interface OverviewSummary {
27
+ organizations: OverviewOrganization[];
28
+ /** Workspaces whose organization is not in the caller's list (shown on their own). */
29
+ otherWorkspaces: WorkspaceSummary[];
30
+ workspaceCount: number;
31
+ /** Sum of the organizations' member counts, or null when no count is known. */
32
+ peopleCount: number | null;
33
+ }
34
+ /**
35
+ * Groups workspaces under their organization, in the order the gateway sent
36
+ * them. People are counted per organization (an organization member is counted
37
+ * once even when they belong to several of its workspaces).
38
+ */
39
+ export declare function summarizeOverview(organizations: readonly OrganizationSummary[], workspaces: readonly WorkspaceSummary[]): OverviewSummary;
40
+ /**
41
+ * The raw identifiers behind "Show technical details": tenants, organizations
42
+ * and workspaces with their IDs, one per line. Never translated.
43
+ */
44
+ export declare function technicalDetailsText(tenants: readonly TenantSummary[], organizations: readonly OrganizationSummary[], workspaces: readonly WorkspaceSummary[]): string;
@@ -0,0 +1,48 @@
1
+ // src/admin-overview/adminOverviewModel.ts
2
+ var e = {
3
+ organizations: () => "/organizations",
4
+ organization: (e) => `/organizations/${encodeURIComponent(e)}`,
5
+ organizationMembers: (e) => `/organizations/${encodeURIComponent(e)}/members`,
6
+ tenantOrganizations: (e) => `/organizations?tenantId=${encodeURIComponent(e)}`,
7
+ workspaces: () => "/workspaces/list",
8
+ workspace: (e) => `/workspaces/${encodeURIComponent(e)}`,
9
+ projects: () => "/workspaces/projects",
10
+ project: (e, t) => `/workspaces/${encodeURIComponent(e)}/projects/${encodeURIComponent(t)}`,
11
+ activity: () => "/workspaces/activity",
12
+ invitePeople: () => "/organizations/invite",
13
+ myInvites: () => "/organizations/invites"
14
+ };
15
+ function t(e, t) {
16
+ let n = /* @__PURE__ */ new Map(), r = new Set(e.map((e) => e.id)), i = [];
17
+ for (let e of t) {
18
+ let t = e.organizationId;
19
+ if (t && r.has(t)) {
20
+ let r = n.get(t) ?? [];
21
+ r.push(e), n.set(t, r);
22
+ } else i.push(e);
23
+ }
24
+ let a = null;
25
+ return {
26
+ organizations: e.map((e) => {
27
+ let t = typeof e.memberCount == "number" ? e.memberCount : null;
28
+ return t !== null && (a = (a ?? 0) + t), {
29
+ id: e.id,
30
+ name: e.name,
31
+ tenantId: e.tenantId,
32
+ memberCount: t,
33
+ workspaces: n.get(e.id) ?? []
34
+ };
35
+ }),
36
+ otherWorkspaces: i,
37
+ workspaceCount: t.length,
38
+ peopleCount: a
39
+ };
40
+ }
41
+ function n(e, t, n) {
42
+ let r = [];
43
+ for (let t of e) r.push(`Tenant ${t.name}: ${t.id}`);
44
+ for (let e of t) r.push(`Organization ${e.name}: ${e.id}`), e.tenantId && r.push(` Tenant ID: ${e.tenantId}`);
45
+ for (let e of n) r.push(`Workspace ${e.name}: ${e.id}`);
46
+ return r.join("\n");
47
+ }
48
+ export { e as adminOverviewLinks, t as summarizeOverview, n as technicalDetailsText };
@@ -1,68 +1,69 @@
1
1
  import { useShellNavigate as e } from "../../shared/utils/appHelpers.js";
2
2
  import "../../shared-utils.js";
3
- import { MANAGE_BUTTON_CLASS as t, NODE_CARD_CLASS_BASE as n, nodeBorderColor as r, nodeBoxShadow as i } from "./nodeStyles.js";
4
- import { Package as a, Settings as o } from "lucide-react";
5
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
6
- import { Handle as l, Position as u } from "@xyflow/react";
3
+ import { adminOverviewLinks as t } from "../adminOverviewModel.js";
4
+ import { MANAGE_BUTTON_CLASS as n, NODE_CARD_CLASS_BASE as r, nodeBorderColor as i, nodeBoxShadow as a } from "./nodeStyles.js";
5
+ import { Package as o, Settings as s } from "lucide-react";
6
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
7
+ import { Handle as u, Position as d } from "@xyflow/react";
7
8
  // src/admin-overview/nodes/ProjectNode.tsx
8
- function d({ data: d }) {
9
- let f = e(), { entity: p, isHighlighted: m } = d;
10
- return /* @__PURE__ */ c("div", {
11
- className: `${n} min-w-[200px]`,
9
+ function f({ data: f }) {
10
+ let p = e(), { entity: m, isHighlighted: h } = f;
11
+ return /* @__PURE__ */ l("div", {
12
+ className: `${r} min-w-[200px]`,
12
13
  style: {
13
14
  background: "var(--color-bg-surface)",
14
- borderColor: r(m),
15
+ borderColor: i(h),
15
16
  color: "var(--color-text-primary)",
16
- boxShadow: i(m)
17
+ boxShadow: a(h)
17
18
  },
18
- "data-testid": `admin-overview-project-${p.id}`,
19
- children: [/* @__PURE__ */ s(l, {
19
+ "data-testid": `admin-overview-project-${m.id}`,
20
+ children: [/* @__PURE__ */ c(u, {
20
21
  type: "target",
21
- position: u.Top,
22
+ position: d.Top,
22
23
  style: {
23
24
  background: "var(--color-action-primary-bg)",
24
25
  width: 8,
25
26
  height: 8
26
27
  }
27
- }), /* @__PURE__ */ c("div", {
28
+ }), /* @__PURE__ */ l("div", {
28
29
  className: "flex items-center justify-between px-3 py-2",
29
- children: [/* @__PURE__ */ c("div", {
30
+ children: [/* @__PURE__ */ l("div", {
30
31
  className: "flex items-center gap-2 min-w-0",
31
- children: [/* @__PURE__ */ s(a, {
32
+ children: [/* @__PURE__ */ c(o, {
32
33
  size: 14,
33
34
  style: { color: "var(--color-action-primary-bg)" }
34
- }), /* @__PURE__ */ c("div", {
35
+ }), /* @__PURE__ */ l("div", {
35
36
  className: "min-w-0",
36
37
  children: [
37
- /* @__PURE__ */ s("div", {
38
+ /* @__PURE__ */ c("div", {
38
39
  className: "text-[10px] font-semibold uppercase tracking-wide",
39
40
  style: { color: "var(--color-text-secondary)" },
40
41
  children: "Project"
41
42
  }),
42
- /* @__PURE__ */ s("div", {
43
+ /* @__PURE__ */ c("div", {
43
44
  className: "text-sm font-medium truncate",
44
- title: p.name,
45
- children: p.name
45
+ title: m.name,
46
+ children: m.name
46
47
  }),
47
- p.key ? /* @__PURE__ */ c("div", {
48
+ m.key ? /* @__PURE__ */ l("div", {
48
49
  className: "text-[11px] truncate",
49
50
  style: { color: "var(--color-text-secondary)" },
50
- children: [p.key, p.archived ? " · archived" : ""]
51
+ children: [m.key, m.archived ? " · archived" : ""]
51
52
  }) : null
52
53
  ]
53
54
  })]
54
- }), /* @__PURE__ */ s("button", {
55
+ }), /* @__PURE__ */ c("button", {
55
56
  type: "button",
56
57
  onClick: (e) => {
57
- e.stopPropagation(), f(`/workspaces/${p.workspaceId}/projects`);
58
+ e.stopPropagation(), p(t.project(m.workspaceId, m.id));
58
59
  },
59
- className: t,
60
+ className: n,
60
61
  style: { color: "var(--color-action-primary-bg)" },
61
62
  title: "Manage project",
62
- "aria-label": `Manage project ${p.name}`,
63
- children: /* @__PURE__ */ s(o, { size: 12 })
63
+ "aria-label": `Manage project ${m.name}`,
64
+ children: /* @__PURE__ */ c(s, { size: 12 })
64
65
  })]
65
66
  })]
66
67
  });
67
68
  }
68
- export { d as ProjectNode };
69
+ export { f as ProjectNode };
@@ -1,77 +1,78 @@
1
1
  import { useShellNavigate as e } from "../../shared/utils/appHelpers.js";
2
2
  import "../../shared-utils.js";
3
- import { MANAGE_BUTTON_CLASS as t, NODE_CARD_CLASS_BASE as n, nodeBorderColor as r, nodeBoxShadow as i } from "./nodeStyles.js";
4
- import { Building2 as a, Settings as o } from "lucide-react";
5
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
6
- import { Handle as l, Position as u } from "@xyflow/react";
3
+ import { adminOverviewLinks as t } from "../adminOverviewModel.js";
4
+ import { MANAGE_BUTTON_CLASS as n, NODE_CARD_CLASS_BASE as r, nodeBorderColor as i, nodeBoxShadow as a } from "./nodeStyles.js";
5
+ import { Building2 as o, Settings as s } from "lucide-react";
6
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
7
+ import { Handle as u, Position as d } from "@xyflow/react";
7
8
  // src/admin-overview/nodes/TenantNode.tsx
8
- function d({ data: d }) {
9
- let f = e(), { entity: p, workspaceCount: m, isHighlighted: h } = d;
10
- return /* @__PURE__ */ c("div", {
11
- className: `${n} min-w-[220px]`,
9
+ function f({ data: f }) {
10
+ let p = e(), { entity: m, workspaceCount: h, isHighlighted: g } = f;
11
+ return /* @__PURE__ */ l("div", {
12
+ className: `${r} min-w-[220px]`,
12
13
  style: {
13
14
  background: "var(--color-bg-subtle, var(--color-bg-surface))",
14
- borderColor: r(h),
15
+ borderColor: i(g),
15
16
  borderStyle: "dashed",
16
17
  color: "var(--color-text-primary)",
17
- boxShadow: i(h)
18
+ boxShadow: a(g)
18
19
  },
19
- "data-testid": `admin-overview-tenant-${p.id}`,
20
- children: [/* @__PURE__ */ s(l, {
20
+ "data-testid": `admin-overview-tenant-${m.id}`,
21
+ children: [/* @__PURE__ */ c(u, {
21
22
  type: "source",
22
- position: u.Bottom,
23
+ position: d.Bottom,
23
24
  style: {
24
25
  background: "var(--color-action-primary-bg)",
25
26
  width: 8,
26
27
  height: 8
27
28
  }
28
- }), /* @__PURE__ */ c("div", {
29
+ }), /* @__PURE__ */ l("div", {
29
30
  className: "flex items-center justify-between px-3 py-2",
30
- children: [/* @__PURE__ */ c("div", {
31
+ children: [/* @__PURE__ */ l("div", {
31
32
  className: "flex items-center gap-2 min-w-0",
32
- children: [/* @__PURE__ */ s(a, {
33
+ children: [/* @__PURE__ */ c(o, {
33
34
  size: 14,
34
35
  style: { color: "var(--color-action-primary-bg)" }
35
- }), /* @__PURE__ */ c("div", {
36
+ }), /* @__PURE__ */ l("div", {
36
37
  className: "min-w-0",
37
38
  children: [
38
- /* @__PURE__ */ s("div", {
39
+ /* @__PURE__ */ c("div", {
39
40
  className: "text-[10px] font-semibold uppercase tracking-wide",
40
41
  style: { color: "var(--color-text-secondary)" },
41
42
  children: "Tenant"
42
43
  }),
43
- /* @__PURE__ */ s("div", {
44
+ /* @__PURE__ */ c("div", {
44
45
  className: "text-sm font-medium truncate",
45
- title: p.name,
46
- children: p.name
46
+ title: m.name,
47
+ children: m.name
47
48
  }),
48
- /* @__PURE__ */ c("div", {
49
+ /* @__PURE__ */ l("div", {
49
50
  className: "text-[11px] mt-0.5 flex items-center gap-1.5",
50
51
  style: { color: "var(--color-text-secondary)" },
51
52
  children: [
52
- /* @__PURE__ */ s("span", {
53
+ /* @__PURE__ */ c("span", {
53
54
  className: "px-1 py-0.5 rounded text-[9px] font-medium uppercase tracking-wide",
54
55
  style: { border: "1px solid var(--color-border-default)" },
55
- children: p.type ?? "shared"
56
+ children: m.type ?? "shared"
56
57
  }),
57
- /* @__PURE__ */ s("span", { children: "·" }),
58
- /* @__PURE__ */ c("span", { children: [m, " ws"] })
58
+ /* @__PURE__ */ c("span", { children: "·" }),
59
+ /* @__PURE__ */ l("span", { children: [h, " ws"] })
59
60
  ]
60
61
  })
61
62
  ]
62
63
  })]
63
- }), /* @__PURE__ */ s("button", {
64
+ }), /* @__PURE__ */ c("button", {
64
65
  type: "button",
65
66
  onClick: (e) => {
66
- e.stopPropagation(), f(`/organizations?tenantId=${p.id}`);
67
+ e.stopPropagation(), p(t.tenantOrganizations(m.id));
67
68
  },
68
- className: t,
69
+ className: n,
69
70
  style: { color: "var(--color-action-primary-bg)" },
70
71
  title: "View tenant organizations",
71
- "aria-label": `View organizations for tenant ${p.name}`,
72
- children: /* @__PURE__ */ s(o, { size: 14 })
72
+ "aria-label": `View organizations for tenant ${m.name}`,
73
+ children: /* @__PURE__ */ c(s, { size: 14 })
73
74
  })]
74
75
  })]
75
76
  });
76
77
  }
77
- export { d as TenantNode };
78
+ export { f as TenantNode };
@@ -8,6 +8,12 @@
8
8
  * fetch (workspace-scoped token is issued on demand) — see AdminOverviewPage.
9
9
  */
10
10
  export declare const GET_ADMIN_OVERVIEW_CONTEXT: import('graphql').DocumentNode;
11
+ /**
12
+ * The same context query with the organizations' member and workspace counts,
13
+ * for the plain list the FluidGrids variant opens on (BOFF-11854). Same
14
+ * `myOrganizations` / `myWorkspaces` / `myTenants` call, two more fields.
15
+ */
16
+ export declare const GET_ADMIN_OVERVIEW_CONTEXT_WITH_COUNTS: import('graphql').DocumentNode;
11
17
  /**
12
18
  * Raw GraphQL document string for the workspace-gateway project fetch.
13
19
  * Kept as a string (not gql) because we execute it via `fetch`, not Apollo.
@@ -18,6 +24,10 @@ export interface OrganizationSummary {
18
24
  name: string;
19
25
  slug: string | null;
20
26
  tenantId: string | null;
27
+ /** Only in GET_ADMIN_OVERVIEW_CONTEXT_WITH_COUNTS. */
28
+ memberCount?: number | null;
29
+ /** Only in GET_ADMIN_OVERVIEW_CONTEXT_WITH_COUNTS. */
30
+ workspaceCount?: number | null;
21
31
  }
22
32
  export interface WorkspaceSummary {
23
33
  id: string;
@@ -37,5 +37,44 @@ var t = e`
37
37
  hasMore
38
38
  }
39
39
  }
40
- `, n = "\n query AdminOverviewGetMyProjects($pagination: PaginationInput) {\n myProjects(pagination: $pagination) {\n items {\n id\n name\n key\n workspaceId\n status\n archived\n }\n total\n hasMore\n }\n }\n";
41
- export { t as GET_ADMIN_OVERVIEW_CONTEXT, n as GET_MY_PROJECTS_DOC };
40
+ `, n = e`
41
+ query AdminOverviewGetContextWithCounts($limit: Int, $offset: Int) {
42
+ myOrganizations(limit: $limit, offset: $offset) {
43
+ items {
44
+ id
45
+ name
46
+ slug
47
+ tenantId
48
+ memberCount
49
+ workspaceCount
50
+ }
51
+ total
52
+ hasMore
53
+ }
54
+ myWorkspaces(limit: $limit, offset: $offset) {
55
+ items {
56
+ id
57
+ name
58
+ type
59
+ status
60
+ tenantId
61
+ organizationId
62
+ memberCount
63
+ }
64
+ total
65
+ hasMore
66
+ }
67
+ myTenants(limit: $limit, offset: $offset) {
68
+ items {
69
+ id
70
+ name
71
+ slug
72
+ status
73
+ type
74
+ }
75
+ total
76
+ hasMore
77
+ }
78
+ }
79
+ `, r = "\n query AdminOverviewGetMyProjects($pagination: PaginationInput) {\n myProjects(pagination: $pagination) {\n items {\n id\n name\n key\n workspaceId\n status\n archived\n }\n total\n hasMore\n }\n }\n";
80
+ export { t as GET_ADMIN_OVERVIEW_CONTEXT, n as GET_ADMIN_OVERVIEW_CONTEXT_WITH_COUNTS, r as GET_MY_PROJECTS_DOC };
@@ -1,3 +1,24 @@
1
+ /**
2
+ * @licstart The following is the entire license notice for the
3
+ * JavaScript code in this page
4
+ *
5
+ * Copyright 2024 Mozilla Foundation
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ * @licend The above is the entire license notice for the
19
+ * JavaScript code in this page
20
+ */
21
+ /*! Modified by Burdenoff: transformed from the upstream PDF.js distribution to preserved-module ESM by Vite/Rolldown; upstream notices and accompanying license are retained. */
1
22
  // node_modules/pdfjs-dist/build/pdf.mjs
2
23
  var e = typeof process == "object" && process + "" == "[object process]" && !process.versions.nw && !(process.versions.electron && process.type && process.type !== "browser"), t = [
3
24
  Infinity,
@@ -1,3 +1,24 @@
1
+ /**
2
+ * @licstart The following is the entire license notice for the
3
+ * JavaScript code in this page
4
+ *
5
+ * Copyright 2024 Mozilla Foundation
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ * @licend The above is the entire license notice for the
19
+ * JavaScript code in this page
20
+ */
21
+ /*! Modified by Burdenoff: transformed from the upstream PDF.js distribution to preserved-module ESM by Vite/Rolldown; upstream notices and accompanying license are retained. */
1
22
  // node_modules/pdfjs-dist/build/pdf.worker.min.mjs
2
23
  var e = !(typeof process != "object" || process + "" != "[object process]" || process.versions.nw || process.versions.electron && process.type && process.type !== "browser"), t = [
3
24
  1 / 0,
@@ -1,8 +1,7 @@
1
- import "../sharing.js";
2
- import { graphqlFetch as e } from "../shared/graphql/fetch.js";
3
- import { useShellNavigate as t } from "../shared/utils/appHelpers.js";
4
- import { useAuth as n } from "../shared/providers/shell/AuthProvider.js";
5
- import { AcceptSharePage as r } from "../sharing/AcceptSharePage.js";
1
+ import { AcceptSharePage as e } from "../sharing/AcceptSharePage.js";
2
+ import { graphqlFetch as t } from "../shared/graphql/fetch.js";
3
+ import { useShellNavigate as n } from "../shared/utils/appHelpers.js";
4
+ import { useAuth as r } from "../shared/providers/shell/AuthProvider.js";
6
5
  import "../shared-utils.js";
7
6
  import { useCallback as i, useRef as a } from "react";
8
7
  import { jsx as o } from "react/jsx-runtime";
@@ -13,11 +12,11 @@ function d(e, t, n) {
13
12
  return !e || !n ? t : n(e) ?? t;
14
13
  }
15
14
  function f({ homePath: f, resolveDestination: p }) {
16
- let { token: m } = s(), h = n(), g = t(), _ = h.user?.email ?? null, v = a(void 0), y = i(async (t) => {
17
- let n = (await e({
15
+ let { token: m } = s(), h = r(), g = n(), _ = h.user?.email ?? null, v = a(void 0), y = i(async (e) => {
16
+ let n = (await t({
18
17
  gateway: "workspace",
19
18
  query: c,
20
- variables: { token: t },
19
+ variables: { token: e },
21
20
  operationName: "ShareGrantByToken",
22
21
  workspaceId: !0,
23
22
  workspaceToken: !0
@@ -29,28 +28,28 @@ function f({ homePath: f, resolveDestination: p }) {
29
28
  sharerName: n.sharerName ?? void 0,
30
29
  status: n.status
31
30
  }) : null;
32
- }, []), b = i(async (t) => {
33
- let n = await e({
31
+ }, []), b = i(async (e) => {
32
+ let n = await t({
34
33
  gateway: "workspace",
35
34
  query: l,
36
- variables: { token: t },
35
+ variables: { token: e },
37
36
  operationName: "AcceptShare",
38
37
  workspaceId: !0,
39
38
  workspaceToken: !0
40
39
  });
41
40
  if (n.errors?.length) throw Error(n.errors[0].message);
42
- }, []), x = i(async (t) => {
43
- let n = await e({
41
+ }, []), x = i(async (e) => {
42
+ let n = await t({
44
43
  gateway: "workspace",
45
44
  query: u,
46
- variables: { token: t },
45
+ variables: { token: e },
47
46
  operationName: "DeclineShare",
48
47
  workspaceId: !0,
49
48
  workspaceToken: !0
50
49
  });
51
50
  if (n.errors?.length) throw Error(n.errors[0].message);
52
51
  }, []);
53
- return m ? /* @__PURE__ */ o(r, {
52
+ return m ? /* @__PURE__ */ o(e, {
54
53
  token: m,
55
54
  loadPreview: y,
56
55
  accept: b,
@@ -59,7 +58,7 @@ function f({ homePath: f, resolveDestination: p }) {
59
58
  g(d(v.current, f, p));
60
59
  },
61
60
  currentUserEmail: _
62
- }) : /* @__PURE__ */ o(r, {
61
+ }) : /* @__PURE__ */ o(e, {
63
62
  token: "",
64
63
  loadPreview: async () => null,
65
64
  accept: async () => {},
@@ -1,7 +1,6 @@
1
- import { resolveGatewayUrls as e } from "../shared/config/gatewayUrls.js";
2
- import { useAuth as t } from "../shared/providers/shell/AuthProvider.js";
3
- import { useAuthToken as n } from "../shared/providers/shell/AuthTokenProvider.js";
4
- import "../shared-config.js";
1
+ import { useAuth as e } from "../shared/providers/shell/AuthProvider.js";
2
+ import { useAuthToken as t } from "../shared/providers/shell/AuthTokenProvider.js";
3
+ import { resolveGatewayUrls as n } from "../shared/config/gatewayUrls.js";
5
4
  import { useCallback as r, useEffect as i, useMemo as a, useReducer as o, useState as s } from "react";
6
5
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
7
6
  // src/platform-pages/AffiliatesPage.tsx
@@ -83,7 +82,7 @@ async function h(e) {
83
82
  return n.data;
84
83
  }
85
84
  function g({ productSlug: g }) {
86
- let { user: x } = t(), { accessToken: S } = n(), C = S ?? "", w = `${a(() => e(), []).globalBaseUrl}/global/graphql`, [T, E] = o(f, d), [D, O] = o(m, p), [k, A] = s(""), [j, M] = s(() => u(g)), { codes: N, loading: P, error: F } = T, { selectedCodeId: I, analytics: L, notes: R } = D, z = x?.id ?? "", B = r(async () => {
85
+ let { user: x } = e(), { accessToken: S } = t(), C = S ?? "", w = `${a(() => n(), []).globalBaseUrl}/global/graphql`, [T, E] = o(f, d), [D, O] = o(m, p), [k, A] = s(""), [j, M] = s(() => u(g)), { codes: N, loading: P, error: F } = T, { selectedCodeId: I, analytics: L, notes: R } = D, z = x?.id ?? "", B = r(async () => {
87
86
  if (z) {
88
87
  E({ type: "load:start" });
89
88
  try {
@@ -4,7 +4,6 @@ import { AssistantRuntimeManager as s } from "./runtime.js";
4
4
  import { AssistantPromptDelivery as c, trackAssistantSandboxTurn as l } from "./promptDelivery.js";
5
5
  import { buildProgress as u, isReapedSandboxConnectionError as d, isRecoverable as f, mergeMessagesById as p, sanitize as m } from "./progress.js";
6
6
  import { createSandboxBusyGate as h, gateDoneOnSandboxBusy as g } from "./sandboxBusy.js";
7
- import "./gatewayClient.js";
8
7
  import { AssistantQuotaRefusal as _, describeQuotaError as v, isQuotaExhaustedError as y } from "./quota.js";
9
8
  import { TURN_OUTCOME_COPY as b } from "./turnOutcomeCopy.js";
10
9
  import { assistantLlmTerminalCodeOf as x } from "./sandboxProxyError.js";
@@ -296,6 +296,7 @@ export * from './uiActions/backStack';
296
296
  export * from './uiActions/draftPathname';
297
297
  export * from './uiActions/navigateAction';
298
298
  export * from './uiActions/assistantHref';
299
+ export * from './uiActions/assistantLinkNavigation';
299
300
  export * from './uiActions/inAppLinks';
300
301
  export * from './uiActions/entityRoutes';
301
302
  export * from './uiActions/resolveTarget';
@@ -1,10 +1,11 @@
1
- import { FC, MouseEvent, ReactNode } from 'react';
2
- import { assistantRoutePath, assistantUrlTransform, classifyAssistantHref, AssistantLinkKind } from '../uiActions/assistantHref';
1
+ import { FC, ReactNode } from 'react';
2
+ import { assistantRoutePath, browserShouldHandle, classifyAssistantHref, AssistantLinkKind } from '../uiActions/assistantLinkNavigation';
3
+ import { assistantUrlTransform } from '../uiActions/assistantHref';
3
4
  import { NavigationInitiator, UnsavedChange } from '../../navigation/unsavedChanges';
4
5
  interface Props {
5
6
  content: string;
6
7
  }
7
- export { assistantRoutePath, assistantUrlTransform, classifyAssistantHref };
8
+ export { assistantRoutePath, assistantUrlTransform, browserShouldHandle, classifyAssistantHref };
8
9
  export type { AssistantLinkKind };
9
10
  /**
10
11
  * ★ BOFF-8060 (N1a, C7): what a navigator reports about the hand-over, so the
@@ -60,26 +61,6 @@ export interface AssistantNavigateContext {
60
61
  * `initiator`; `createAssistantNavigate` reads it.
61
62
  */
62
63
  export type AssistantNavigate = (path: string, initiator?: AssistantNavigateInitiator, context?: AssistantNavigateContext) => AssistantNavigateResult | void | Promise<AssistantNavigateResult | void>;
63
- /**
64
- * ★★ The cases where the BROWSER must win, not the router. Losing these is how
65
- * "open in new tab", "copy link" and middle-click quietly stop working — the
66
- * reason the anchor also keeps a real `href` rather than becoming a button.
67
- *
68
- * ★★ THE ANCHOR SHOWS THE RESOLVED PATH, NOT THE RAW HREF, and that is a
69
- * correctness fix rather than cosmetics. A document-relative href resolves
70
- * against the CURRENT PAGE in the browser but against the ORIGIN in
71
- * `assistantRoutePath`, so the two click modes disagreed:
72
- *
73
- * on /healthybowl/crops/42, `[x](fields)`
74
- * plain click -> navigate("/fields") (resolved at the root)
75
- * ctrl-click -> browser opens /healthybowl/crops/fields
76
- *
77
- * Same link, two destinations depending on how it was clicked — and "copy link
78
- * address" gave a third answer. Emitting `routePath` as the href makes every
79
- * mode agree, because there is then only one resolved value. A fragment and an
80
- * external URL are left exactly as written: neither is a route.
81
- */
82
- export declare function browserShouldHandle(event: MouseEvent<HTMLAnchorElement>): boolean;
83
64
  /**
84
65
  * ★ Context, not a prop: the renderer is reached by TWO paths — the chat
85
66
  * transcript and the voice transcript drawer — and threading a prop through