@burdenoff/fe-libs 2026.1114.8 → 2026.1114.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chrome/DynamicFooter.d.ts +15 -1
- package/dist/chrome/DynamicFooter.js +65 -70
- package/dist/chrome/Footer.d.ts +43 -1
- package/dist/chrome/Footer.js +121 -125
- package/dist/chrome/footerLegalLinks.d.ts +17 -0
- package/dist/chrome/footerLegalLinks.js +23 -0
- package/dist/shared/assistant/index.d.ts +1 -0
- package/dist/shared/assistant/ui/AssistantChatArea.js +81 -78
- package/dist/shared/assistant/ui/transcriptAutoOpenSlot.d.ts +20 -0
- package/dist/shared/assistant/ui/transcriptAutoOpenSlot.js +27 -0
- package/dist/shared/utils/index.d.ts +2 -0
- package/dist/shared/utils/productSiteLinks.d.ts +57 -0
- package/dist/shared/utils/productSiteLinks.js +53 -0
- package/dist/shared-assistant.js +290 -289
- package/dist/shared-utils.js +10 -9
- package/dist/shared.js +116 -115
- package/dist/utils/index.js +6 -5
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FooterColumn, SocialLink } from './Footer';
|
|
2
|
+
import { LegalPathOverrides } from '../shared/utils/productSiteLinks';
|
|
2
3
|
export interface DynamicFooterProps {
|
|
3
4
|
/** Product slug for fetching social links (e.g., "workspaces", "fluidgrids") */
|
|
4
5
|
productSlug: string;
|
|
@@ -20,6 +21,19 @@ export interface DynamicFooterProps {
|
|
|
20
21
|
socialLinks?: SocialLink[];
|
|
21
22
|
/** Legal page ordering (overrides defaults) */
|
|
22
23
|
legalPageOrder?: string[];
|
|
24
|
+
/**
|
|
25
|
+
* Marketing-site routes for legal page slugs that differ from the shared
|
|
26
|
+
* defaults (`MARKETING_LEGAL_PATHS`). `null` drops a slug the product's site
|
|
27
|
+
* does not serve. Example for Workspaces:
|
|
28
|
+
* `{ 'cookie-policy': '/cookies', 'refund-policy': null }`.
|
|
29
|
+
*/
|
|
30
|
+
legalPaths?: LegalPathOverrides;
|
|
31
|
+
/**
|
|
32
|
+
* Absolute URL of the product's changelog. Without it the Resources column
|
|
33
|
+
* has no Changelog link, because product sites do not share one changelog
|
|
34
|
+
* route.
|
|
35
|
+
*/
|
|
36
|
+
changelogUrl?: string;
|
|
23
37
|
/** Skip API fetches and rely on built-in footer defaults */
|
|
24
38
|
deferRemoteData?: boolean;
|
|
25
39
|
/**
|
|
@@ -28,4 +42,4 @@ export interface DynamicFooterProps {
|
|
|
28
42
|
*/
|
|
29
43
|
hideOnInstalledApp?: boolean;
|
|
30
44
|
}
|
|
31
|
-
export declare function DynamicFooter({ productSlug, productName, tagline, version, copyright, columns: customColumns, socialLinks: customSocialLinks, legalPageOrder, deferRemoteData, hideOnInstalledApp, }: DynamicFooterProps): import('react').JSX.Element;
|
|
45
|
+
export declare function DynamicFooter({ productSlug, productName, tagline, version, copyright, columns: customColumns, socialLinks: customSocialLinks, legalPageOrder, legalPaths, changelogUrl, deferRemoteData, hideOnInstalledApp, }: DynamicFooterProps): import('react').JSX.Element;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DEFAULT_SOCIAL_LINKS as e, Footer as t, getDefaultFooterColumns as n } from "./Footer.js";
|
|
2
2
|
import { useGatewayClient as r } from "../shared/graphql/GatewayContext.js";
|
|
3
3
|
import { BrandMark as i } from "./BrandMark.js";
|
|
4
4
|
import { useActiveContext as a } from "../shared/providers/shell/ActiveContextProvider.js";
|
|
5
5
|
import "../shared-graphql.js";
|
|
6
6
|
import { useI18n as o } from "../shared/providers/shell/I18nProvider.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
7
|
+
import { buildFooterLegalLinks as s } from "./footerLegalLinks.js";
|
|
8
|
+
import { useEffect as c, useMemo as l, useState as u } from "react";
|
|
9
|
+
import { Github as d, Globe as f, Linkedin as p, MessageCircle as m, Twitter as h, Youtube as g } from "lucide-react";
|
|
10
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
11
|
+
import { Link as v } from "react-router";
|
|
12
|
+
import { gql as y } from "@apollo/client/core";
|
|
12
13
|
// src/chrome/DynamicFooter.tsx
|
|
13
|
-
var
|
|
14
|
+
var b = y`
|
|
14
15
|
query GetFooterPublicProduct($slug: String!) {
|
|
15
16
|
publicProduct(slug: $slug) {
|
|
16
17
|
id
|
|
17
18
|
socialLinks
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
`,
|
|
21
|
+
`, x = y`
|
|
21
22
|
query GetFooterPublicContentPages($productId: String!, $limit: Int) {
|
|
22
23
|
publicContentPages(productId: $productId, limit: $limit) {
|
|
23
24
|
items {
|
|
@@ -29,24 +30,13 @@ var y = v`
|
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
|
-
`,
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
security: "security",
|
|
40
|
-
compliance: "compliance",
|
|
41
|
-
about: "about",
|
|
42
|
-
contact: "contact"
|
|
43
|
-
}, S = {
|
|
44
|
-
twitter: /* @__PURE__ */ g(m, { className: "size-5" }),
|
|
45
|
-
x: /* @__PURE__ */ g(m, { className: "size-5" }),
|
|
46
|
-
github: /* @__PURE__ */ g(u, { className: "size-5" }),
|
|
47
|
-
discord: /* @__PURE__ */ g(p, { className: "size-5" }),
|
|
48
|
-
linkedin: /* @__PURE__ */ g(f, { className: "size-5" }),
|
|
49
|
-
youtube: /* @__PURE__ */ g(h, { className: "size-5" })
|
|
33
|
+
`, S = {
|
|
34
|
+
twitter: /* @__PURE__ */ _(h, { className: "size-5" }),
|
|
35
|
+
x: /* @__PURE__ */ _(h, { className: "size-5" }),
|
|
36
|
+
github: /* @__PURE__ */ _(d, { className: "size-5" }),
|
|
37
|
+
discord: /* @__PURE__ */ _(m, { className: "size-5" }),
|
|
38
|
+
linkedin: /* @__PURE__ */ _(p, { className: "size-5" }),
|
|
39
|
+
youtube: /* @__PURE__ */ _(g, { className: "size-5" })
|
|
50
40
|
}, C = [
|
|
51
41
|
"terms-of-service",
|
|
52
42
|
"privacy-policy",
|
|
@@ -60,14 +50,14 @@ var y = v`
|
|
|
60
50
|
function w(e) {
|
|
61
51
|
return e.trim().replace(/[^A-Za-z0-9 ]/g, "").split(/\s+/).map((e, t) => t === 0 ? e.toLowerCase() : e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()).join("");
|
|
62
52
|
}
|
|
63
|
-
function T({ productSlug:
|
|
64
|
-
let { workspaceId:
|
|
65
|
-
|
|
66
|
-
if (!
|
|
53
|
+
function T({ productSlug: d, productName: p, tagline: m, version: h = "v1.0.0", copyright: g, columns: y, socialLinks: T, legalPageOrder: E = C, legalPaths: D, changelogUrl: O, deferRemoteData: k = !1, hideOnInstalledApp: A = !0 }) {
|
|
54
|
+
let { workspaceId: j, projectId: M } = a(), N = r("global"), { t: P } = o(), [F, I] = u(null), [L, R] = u(null);
|
|
55
|
+
c(() => {
|
|
56
|
+
if (!N || k) return;
|
|
67
57
|
let e = !1;
|
|
68
|
-
return
|
|
69
|
-
query:
|
|
70
|
-
variables: { slug:
|
|
58
|
+
return N.query({
|
|
59
|
+
query: b,
|
|
60
|
+
variables: { slug: d },
|
|
71
61
|
fetchPolicy: "cache-first"
|
|
72
62
|
}).then((t) => {
|
|
73
63
|
if (e) return;
|
|
@@ -80,13 +70,13 @@ function T({ productSlug: u, productName: f, tagline: p, version: m = "v1.0.0",
|
|
|
80
70
|
id: e,
|
|
81
71
|
label: e.charAt(0).toUpperCase() + e.slice(1),
|
|
82
72
|
href: t,
|
|
83
|
-
icon: S[e.toLowerCase()] || /* @__PURE__ */
|
|
73
|
+
icon: S[e.toLowerCase()] || /* @__PURE__ */ _(f, { className: "size-5" })
|
|
84
74
|
}));
|
|
85
|
-
t.length > 0 &&
|
|
75
|
+
t.length > 0 && R(t);
|
|
86
76
|
}
|
|
87
77
|
}
|
|
88
|
-
return
|
|
89
|
-
query:
|
|
78
|
+
return N.query({
|
|
79
|
+
query: x,
|
|
90
80
|
variables: {
|
|
91
81
|
productId: n.id,
|
|
92
82
|
limit: 50
|
|
@@ -97,32 +87,36 @@ function T({ productSlug: u, productName: f, tagline: p, version: m = "v1.0.0",
|
|
|
97
87
|
}).then((t) => {
|
|
98
88
|
if (e || !t) return;
|
|
99
89
|
let n = t.data?.publicContentPages?.items;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
href: `/legal/${x[e.slug] || e.slug}`
|
|
105
|
-
}));
|
|
106
|
-
r.length > 0 && P(r);
|
|
90
|
+
n && I(n.map((e) => ({
|
|
91
|
+
slug: e.slug,
|
|
92
|
+
title: e.title
|
|
93
|
+
})));
|
|
107
94
|
}).catch(() => {}), () => {
|
|
108
95
|
e = !0;
|
|
109
96
|
};
|
|
110
97
|
}, [
|
|
111
98
|
T,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
u
|
|
99
|
+
k,
|
|
100
|
+
N,
|
|
101
|
+
d
|
|
116
102
|
]);
|
|
117
|
-
let
|
|
118
|
-
|
|
103
|
+
let z = l(() => {
|
|
104
|
+
if (!F) return null;
|
|
105
|
+
let e = s(F, E, D);
|
|
106
|
+
return e.length > 0 ? e : null;
|
|
107
|
+
}, [
|
|
108
|
+
F,
|
|
109
|
+
E,
|
|
110
|
+
D
|
|
111
|
+
]), B = l(() => {
|
|
112
|
+
let e = y ?? n({ changelogUrl: O }), t = z ? e.map((e) => e.title === "Legal" ? {
|
|
119
113
|
...e,
|
|
120
|
-
links:
|
|
121
|
-
} : e) :
|
|
122
|
-
let n =
|
|
114
|
+
links: z
|
|
115
|
+
} : e) : e, r = (e, t) => {
|
|
116
|
+
let n = P(e);
|
|
123
117
|
return n === e ? t : n;
|
|
124
118
|
};
|
|
125
|
-
return
|
|
119
|
+
return t.map((e) => ({
|
|
126
120
|
...e,
|
|
127
121
|
title: r(`footer.columns.${w(e.title)}`, e.title),
|
|
128
122
|
links: e.links.map((e) => e.brand ? e : {
|
|
@@ -131,30 +125,31 @@ function T({ productSlug: u, productName: f, tagline: p, version: m = "v1.0.0",
|
|
|
131
125
|
})
|
|
132
126
|
}));
|
|
133
127
|
}, [
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
128
|
+
z,
|
|
129
|
+
y,
|
|
130
|
+
O,
|
|
131
|
+
P
|
|
137
132
|
]);
|
|
138
|
-
return /* @__PURE__ */
|
|
139
|
-
logo: /* @__PURE__ */
|
|
140
|
-
productName:
|
|
141
|
-
tagline:
|
|
142
|
-
columns:
|
|
143
|
-
socialLinks: T ??
|
|
144
|
-
version:
|
|
145
|
-
copyright:
|
|
146
|
-
hideOnInstalledApp:
|
|
133
|
+
return /* @__PURE__ */ _(t, {
|
|
134
|
+
logo: /* @__PURE__ */ _(i, { size: "sidenav" }),
|
|
135
|
+
productName: p,
|
|
136
|
+
tagline: m,
|
|
137
|
+
columns: B,
|
|
138
|
+
socialLinks: T ?? L ?? e,
|
|
139
|
+
version: h,
|
|
140
|
+
copyright: g,
|
|
141
|
+
hideOnInstalledApp: A,
|
|
147
142
|
context: {
|
|
148
|
-
workspace:
|
|
149
|
-
project:
|
|
143
|
+
workspace: j ?? void 0,
|
|
144
|
+
project: M ?? void 0
|
|
150
145
|
},
|
|
151
|
-
renderLink: ({ href: e, external: t, children: n, className: r }) => t ? /* @__PURE__ */
|
|
146
|
+
renderLink: ({ href: e, external: t, children: n, className: r }) => t ? /* @__PURE__ */ _("a", {
|
|
152
147
|
href: e,
|
|
153
148
|
target: "_blank",
|
|
154
149
|
rel: "noopener noreferrer",
|
|
155
150
|
className: r,
|
|
156
151
|
children: n
|
|
157
|
-
}) : /* @__PURE__ */
|
|
152
|
+
}) : /* @__PURE__ */ _(v, {
|
|
158
153
|
to: e,
|
|
159
154
|
className: r,
|
|
160
155
|
children: n
|
package/dist/chrome/Footer.d.ts
CHANGED
|
@@ -19,6 +19,12 @@ export interface FooterLink {
|
|
|
19
19
|
brand?: boolean;
|
|
20
20
|
/** Custom icon */
|
|
21
21
|
icon?: ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Render the label as plain text instead of a link. Used when the target
|
|
24
|
+
* cannot be resolved for the current host (local development has no public
|
|
25
|
+
* marketing or docs site), so the footer never links to a dead route.
|
|
26
|
+
*/
|
|
27
|
+
inert?: boolean;
|
|
22
28
|
}
|
|
23
29
|
/**
|
|
24
30
|
* Footer Column Interface
|
|
@@ -96,8 +102,44 @@ export interface FooterProps {
|
|
|
96
102
|
*/
|
|
97
103
|
hideOnInstalledApp?: boolean;
|
|
98
104
|
}
|
|
105
|
+
/** Options for {@link getDefaultFooterColumns}. */
|
|
106
|
+
export interface DefaultFooterColumnsOptions {
|
|
107
|
+
/**
|
|
108
|
+
* Host to resolve the product's public sites from. Defaults to the current
|
|
109
|
+
* page's host.
|
|
110
|
+
*/
|
|
111
|
+
hostname?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Absolute URL of the product's changelog. Product sites do not share one
|
|
114
|
+
* changelog route (some serve it on the docs site, some on the marketing
|
|
115
|
+
* site, some not at all), so the Changelog link is only shown when the
|
|
116
|
+
* product passes its URL, e.g. `resolveDocsUrl('/reference/changelog')`.
|
|
117
|
+
*/
|
|
118
|
+
changelogUrl?: string;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Default footer columns for the product the shell is serving.
|
|
122
|
+
*
|
|
123
|
+
* Resources and Legal point at the product's public documentation and
|
|
124
|
+
* marketing sites (`docs.<domain>` / `www.<domain>`), resolved from the
|
|
125
|
+
* shell's host (BOFF-7244). They used to be app-relative (`/docs`,
|
|
126
|
+
* `/docs/api`, `/changelog`, `/legal/<slug>`), which no shell serves: the
|
|
127
|
+
* first three fell through to the 404 page and `/legal/*` sat behind sign-in
|
|
128
|
+
* with no policy content.
|
|
129
|
+
*
|
|
130
|
+
* - Documentation -> `docs.<domain>/` and API Reference ->
|
|
131
|
+
* `docs.<domain>/developers`, the two docs pages nearly every product site
|
|
132
|
+
* serves.
|
|
133
|
+
* - Terms, Privacy and Security -> `www.<domain>/terms|privacy|security`.
|
|
134
|
+
* "Compliance" is no longer a default: no product site serves `/compliance`.
|
|
135
|
+
* - Changelog only when `changelogUrl` is passed.
|
|
136
|
+
*/
|
|
137
|
+
export declare function getDefaultFooterColumns(options?: DefaultFooterColumnsOptions): FooterColumn[];
|
|
99
138
|
/**
|
|
100
|
-
* Default footer columns for
|
|
139
|
+
* Default footer columns, resolved for the host the module was loaded on.
|
|
140
|
+
*
|
|
141
|
+
* @deprecated Kept for existing importers. Call `getDefaultFooterColumns()`
|
|
142
|
+
* so the links follow the current host (and so tests can pass one).
|
|
101
143
|
*/
|
|
102
144
|
export declare const DEFAULT_FOOTER_COLUMNS: FooterColumn[];
|
|
103
145
|
/**
|
package/dist/chrome/Footer.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { useShellLabel as e } from "../shared/providers/shell/useShellLabel.js";
|
|
2
2
|
import { isInstalledApp as t } from "../shared/native/platform.js";
|
|
3
3
|
import { PluginFooterStrip as n } from "./PluginFooterStrip.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { resolveDocsUrl as r, resolveMarketingUrl as i } from "../shared/utils/productSiteLinks.js";
|
|
5
|
+
import { ExternalLink as a, Github as o, MessageCircle as s, Twitter as c } from "lucide-react";
|
|
6
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
7
|
// src/chrome/Footer.tsx
|
|
7
|
-
function
|
|
8
|
+
function d(e) {
|
|
8
9
|
return {
|
|
9
10
|
0: "lg:grid-cols-2",
|
|
10
11
|
1: "lg:grid-cols-3",
|
|
@@ -15,110 +16,102 @@ function l(e) {
|
|
|
15
16
|
6: "lg:grid-cols-8"
|
|
16
17
|
}[e] ?? "lg:grid-cols-6";
|
|
17
18
|
}
|
|
18
|
-
|
|
19
|
-
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
{
|
|
96
|
-
id: "compliance",
|
|
97
|
-
label: "Compliance",
|
|
98
|
-
href: "/legal/compliance"
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
], d = [
|
|
19
|
+
function f(e, t, n) {
|
|
20
|
+
return n ? {
|
|
21
|
+
id: e,
|
|
22
|
+
label: t,
|
|
23
|
+
href: n,
|
|
24
|
+
external: !0
|
|
25
|
+
} : {
|
|
26
|
+
id: e,
|
|
27
|
+
label: t,
|
|
28
|
+
href: "",
|
|
29
|
+
inert: !0
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function p(e = {}) {
|
|
33
|
+
let { hostname: t, changelogUrl: n } = e, a = [
|
|
34
|
+
f("docs", "Documentation", r("/", t)),
|
|
35
|
+
f("api", "API Reference", r("/developers", t)),
|
|
36
|
+
{
|
|
37
|
+
id: "status",
|
|
38
|
+
label: "Status Page",
|
|
39
|
+
href: "https://status.burdenoff.com",
|
|
40
|
+
external: !0
|
|
41
|
+
}
|
|
42
|
+
];
|
|
43
|
+
return n && a.push({
|
|
44
|
+
id: "changelog",
|
|
45
|
+
label: "Changelog",
|
|
46
|
+
href: n,
|
|
47
|
+
external: !0
|
|
48
|
+
}), [
|
|
49
|
+
{
|
|
50
|
+
title: "Products",
|
|
51
|
+
links: [
|
|
52
|
+
{
|
|
53
|
+
id: "workspaces",
|
|
54
|
+
label: "Workspaces",
|
|
55
|
+
href: "https://burdenoff.com",
|
|
56
|
+
brand: !0
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: "fluidgrids",
|
|
60
|
+
label: "FluidGrids",
|
|
61
|
+
href: "https://www.fluidgrids.ai",
|
|
62
|
+
external: !0,
|
|
63
|
+
brand: !0
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: "bigconsole",
|
|
67
|
+
label: "BigConsole",
|
|
68
|
+
href: "https://bigconsole.com",
|
|
69
|
+
external: !0,
|
|
70
|
+
brand: !0
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: "botmanor",
|
|
74
|
+
label: "BotManor",
|
|
75
|
+
href: "https://www.botmanor.com",
|
|
76
|
+
external: !0,
|
|
77
|
+
brand: !0
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
title: "Resources",
|
|
83
|
+
links: a
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
title: "Legal",
|
|
87
|
+
links: [
|
|
88
|
+
f("terms", "Terms of Service", i("/terms", t)),
|
|
89
|
+
f("privacy", "Privacy Policy", i("/privacy", t)),
|
|
90
|
+
f("security", "Security", i("/security", t))
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
];
|
|
94
|
+
}
|
|
95
|
+
var m = p(), h = [
|
|
103
96
|
{
|
|
104
97
|
id: "twitter",
|
|
105
98
|
label: "Twitter",
|
|
106
99
|
href: "https://twitter.com/burdenoff",
|
|
107
|
-
icon: /* @__PURE__ */
|
|
100
|
+
icon: /* @__PURE__ */ l(c, { className: "size-5" })
|
|
108
101
|
},
|
|
109
102
|
{
|
|
110
103
|
id: "github",
|
|
111
104
|
label: "GitHub",
|
|
112
105
|
href: "https://github.com/algoshred",
|
|
113
|
-
icon: /* @__PURE__ */
|
|
106
|
+
icon: /* @__PURE__ */ l(o, { className: "size-5" })
|
|
114
107
|
},
|
|
115
108
|
{
|
|
116
109
|
id: "discord",
|
|
117
110
|
label: "Discord",
|
|
118
111
|
href: "https://discord.gg/burdenoff",
|
|
119
|
-
icon: /* @__PURE__ */ s
|
|
112
|
+
icon: /* @__PURE__ */ l(s, { className: "size-5" })
|
|
120
113
|
}
|
|
121
|
-
],
|
|
114
|
+
], g = ({ logo: r, productName: i = "Burdenoff Workspaces", tagline: o, columns: s, socialLinks: c = h, copyright: f, version: m, buildInfo: g, context: _, children: v, renderLink: y, hideOnInstalledApp: b = !0 }) => {
|
|
122
115
|
let x = e(), S = (/* @__PURE__ */ new Date()).getFullYear(), C = o ?? x("chrome.footer.tagline", "Enterprise collaboration made simple"), w = {
|
|
123
116
|
products: x("footer.columns.products", "Products"),
|
|
124
117
|
resources: x("footer.columns.resources", "Resources"),
|
|
@@ -135,14 +128,14 @@ var u = [
|
|
|
135
128
|
w.products,
|
|
136
129
|
w.resources,
|
|
137
130
|
w.legal
|
|
138
|
-
], E =
|
|
131
|
+
], E = s ?? p().map((e, t) => ({
|
|
139
132
|
...e,
|
|
140
133
|
title: T[t] ?? e.title,
|
|
141
134
|
links: e.links.map((e) => ({
|
|
142
135
|
...e,
|
|
143
136
|
label: e.brand ? e.label : Object.entries(w).find(([t]) => t === e.id)?.[1] ?? e.label
|
|
144
137
|
}))
|
|
145
|
-
})), D =
|
|
138
|
+
})), D = f ?? x("footer.copyright", `${S} Burdenoff. All rights reserved.`).replace("{year}", String(S)), O = y ?? (({ href: e, external: t, children: n, className: r }) => /* @__PURE__ */ l("a", {
|
|
146
139
|
href: e,
|
|
147
140
|
target: t ? "_blank" : void 0,
|
|
148
141
|
rel: t ? "noopener noreferrer" : void 0,
|
|
@@ -150,34 +143,34 @@ var u = [
|
|
|
150
143
|
children: n
|
|
151
144
|
}));
|
|
152
145
|
if (b && t()) return null;
|
|
153
|
-
let k =
|
|
154
|
-
return /* @__PURE__ */
|
|
146
|
+
let k = d(E.length);
|
|
147
|
+
return /* @__PURE__ */ u("footer", {
|
|
155
148
|
className: "bg-bg-elevated border-t border-border-subtle",
|
|
156
149
|
children: [
|
|
157
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ l("div", {
|
|
158
151
|
className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",
|
|
159
|
-
children: /* @__PURE__ */
|
|
152
|
+
children: /* @__PURE__ */ u("div", {
|
|
160
153
|
className: `grid grid-cols-2 ${k} gap-8`,
|
|
161
|
-
children: [/* @__PURE__ */
|
|
154
|
+
children: [/* @__PURE__ */ u("div", {
|
|
162
155
|
className: "col-span-2",
|
|
163
156
|
children: [
|
|
164
|
-
/* @__PURE__ */
|
|
157
|
+
/* @__PURE__ */ u("div", {
|
|
165
158
|
className: "flex items-center gap-3 mb-4",
|
|
166
|
-
children: [
|
|
159
|
+
children: [r ?? /* @__PURE__ */ l("div", {
|
|
167
160
|
className: "size-8 rounded-md bg-action-primary-bg flex items-center justify-center text-action-primary-text font-bold text-sm",
|
|
168
161
|
children: "B"
|
|
169
|
-
}), /* @__PURE__ */
|
|
162
|
+
}), /* @__PURE__ */ l("span", {
|
|
170
163
|
className: "text-lg font-semibold text-text-primary",
|
|
171
|
-
children:
|
|
164
|
+
children: i
|
|
172
165
|
})]
|
|
173
166
|
}),
|
|
174
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ l("p", {
|
|
175
168
|
className: "text-text-secondary text-sm mb-6 max-w-xs",
|
|
176
169
|
children: C
|
|
177
170
|
}),
|
|
178
|
-
|
|
171
|
+
c.length > 0 && /* @__PURE__ */ l("div", {
|
|
179
172
|
className: "flex items-center gap-4",
|
|
180
|
-
children:
|
|
173
|
+
children: c.map((e) => /* @__PURE__ */ l("a", {
|
|
181
174
|
href: e.href,
|
|
182
175
|
target: "_blank",
|
|
183
176
|
rel: "noopener noreferrer",
|
|
@@ -187,58 +180,61 @@ var u = [
|
|
|
187
180
|
}, e.id))
|
|
188
181
|
})
|
|
189
182
|
]
|
|
190
|
-
}), E.map((e) => /* @__PURE__ */
|
|
183
|
+
}), E.map((e) => /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("h3", {
|
|
191
184
|
className: "text-sm font-semibold text-text-primary mb-4",
|
|
192
185
|
children: e.title
|
|
193
|
-
}), /* @__PURE__ */
|
|
186
|
+
}), /* @__PURE__ */ l("ul", {
|
|
194
187
|
className: "space-y-3",
|
|
195
|
-
children: e.links.map((e) => /* @__PURE__ */
|
|
188
|
+
children: e.links.map((e) => /* @__PURE__ */ l("li", { children: e.inert ? /* @__PURE__ */ u("span", {
|
|
189
|
+
className: "text-sm text-text-muted inline-flex items-center gap-1",
|
|
190
|
+
children: [e.icon, e.label]
|
|
191
|
+
}) : /* @__PURE__ */ u(O, {
|
|
196
192
|
href: e.href,
|
|
197
193
|
external: e.external,
|
|
198
194
|
className: "text-sm text-text-secondary hover:text-text-primary transition-colors inline-flex items-center gap-1",
|
|
199
195
|
children: [
|
|
200
196
|
e.icon,
|
|
201
197
|
e.label,
|
|
202
|
-
e.external && /* @__PURE__ */
|
|
198
|
+
e.external && /* @__PURE__ */ l(a, { className: "size-3" })
|
|
203
199
|
]
|
|
204
200
|
}) }, e.id))
|
|
205
201
|
})] }, e.title))]
|
|
206
202
|
})
|
|
207
203
|
}),
|
|
208
|
-
/* @__PURE__ */
|
|
209
|
-
/* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ l(n, {}),
|
|
205
|
+
/* @__PURE__ */ l("div", {
|
|
210
206
|
className: "border-t border-border-subtle",
|
|
211
|
-
children: /* @__PURE__ */
|
|
207
|
+
children: /* @__PURE__ */ l("div", {
|
|
212
208
|
className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",
|
|
213
|
-
children: /* @__PURE__ */
|
|
209
|
+
children: /* @__PURE__ */ u("div", {
|
|
214
210
|
className: "flex flex-col sm:flex-row justify-between items-center gap-4 text-xs text-text-muted",
|
|
215
211
|
children: [
|
|
216
|
-
/* @__PURE__ */
|
|
212
|
+
/* @__PURE__ */ l("div", {
|
|
217
213
|
className: "flex items-center gap-2",
|
|
218
|
-
children: /* @__PURE__ */
|
|
214
|
+
children: /* @__PURE__ */ u("span", { children: ["© ", D] })
|
|
219
215
|
}),
|
|
220
|
-
_ && Object.values(_).some(Boolean) && /* @__PURE__ */
|
|
216
|
+
_ && Object.values(_).some(Boolean) && /* @__PURE__ */ l("div", {
|
|
221
217
|
className: "flex items-center gap-3",
|
|
222
|
-
children: Object.entries(_).map(([e, t]) => t && /* @__PURE__ */
|
|
218
|
+
children: Object.entries(_).map(([e, t]) => t && /* @__PURE__ */ u("div", {
|
|
223
219
|
className: "flex items-center gap-1",
|
|
224
|
-
children: [/* @__PURE__ */
|
|
220
|
+
children: [/* @__PURE__ */ u("span", {
|
|
225
221
|
className: "capitalize",
|
|
226
222
|
children: [e, ":"]
|
|
227
|
-
}), /* @__PURE__ */
|
|
223
|
+
}), /* @__PURE__ */ l("span", {
|
|
228
224
|
className: "text-text-secondary font-medium",
|
|
229
225
|
children: t
|
|
230
226
|
})]
|
|
231
227
|
}, e))
|
|
232
228
|
}),
|
|
233
|
-
/* @__PURE__ */
|
|
229
|
+
/* @__PURE__ */ u("div", {
|
|
234
230
|
className: "flex items-center gap-3",
|
|
235
231
|
children: [
|
|
236
|
-
|
|
237
|
-
|
|
232
|
+
m && /* @__PURE__ */ l("span", { children: m }),
|
|
233
|
+
m && g && /* @__PURE__ */ l("span", {
|
|
238
234
|
className: "text-border-subtle",
|
|
239
235
|
children: "|"
|
|
240
236
|
}),
|
|
241
|
-
g && /* @__PURE__ */
|
|
237
|
+
g && /* @__PURE__ */ l("span", { children: x("footer.buildInfo", "Build {{build}}", { build: g }) })
|
|
242
238
|
]
|
|
243
239
|
})
|
|
244
240
|
]
|
|
@@ -249,4 +245,4 @@ var u = [
|
|
|
249
245
|
]
|
|
250
246
|
});
|
|
251
247
|
};
|
|
252
|
-
export {
|
|
248
|
+
export { m as DEFAULT_FOOTER_COLUMNS, h as DEFAULT_SOCIAL_LINKS, g as Footer, d as footerLgGridColsClass, p as getDefaultFooterColumns };
|