@hachej/boring-core 0.1.53 → 0.1.54

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.
@@ -267,3 +267,24 @@
267
267
  font-weight: 600;
268
268
  color: color-mix(in oklch, var(--foreground) 88%, transparent);
269
269
  }
270
+
271
+ /* Optional marketing/nav links rendered beside the brand in the public top bar
272
+ (ChatFirstPublicShellOptions.navLinks). The authed workspace is unaffected. */
273
+ .public-topbar-nav {
274
+ display: flex;
275
+ align-items: center;
276
+ gap: 1rem;
277
+ margin-left: 0.75rem;
278
+ }
279
+
280
+ .public-topbar-nav a {
281
+ font-size: 0.8125rem;
282
+ font-weight: 500;
283
+ text-decoration: none;
284
+ color: color-mix(in oklch, var(--foreground) 65%, transparent);
285
+ transition: color 0.15s ease;
286
+ }
287
+
288
+ .public-topbar-nav a:hover {
289
+ color: var(--foreground);
290
+ }
@@ -33,6 +33,15 @@ interface ChatFirstPublicShellOptions {
33
33
  * otherwise the fixed-position arrows overlay the open panel. Defaults to on.
34
34
  */
35
35
  showTeachingArrows?: boolean;
36
+ /**
37
+ * Marketing/navigation links rendered in the public (no-auth) top bar next to
38
+ * the brand — e.g. About, Pricing, Docs. The authenticated workspace top bar
39
+ * is unaffected. Use plain hrefs (router or full-page routes both work).
40
+ */
41
+ navLinks?: Array<{
42
+ label: string;
43
+ href: string;
44
+ }>;
36
45
  }
37
46
 
38
47
  type ChatEntryMode = 'auth-first' | 'chat-first';
@@ -425,7 +425,8 @@ function ChatFirstPublicShell({
425
425
  children: (appTitle?.[0] ?? "B").toUpperCase()
426
426
  }
427
427
  ),
428
- /* @__PURE__ */ jsx4("span", { className: "truncate text-[13px] font-medium leading-none tracking-tight text-foreground", children: appTitle })
428
+ /* @__PURE__ */ jsx4("span", { className: "truncate text-[13px] font-medium leading-none tracking-tight text-foreground", children: appTitle }),
429
+ publicShell?.navLinks?.length ? /* @__PURE__ */ jsx4("nav", { className: "public-topbar-nav", "aria-label": "Site", children: publicShell.navLinks.map((link) => /* @__PURE__ */ jsx4("a", { href: link.href, children: link.label }, link.href)) }) : null
429
430
  ] }),
430
431
  className: workspaceProps.className,
431
432
  surfaceButtonBottomOffset: 456,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hachej/boring-core",
3
- "version": "0.1.53",
3
+ "version": "0.1.54",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Foundation package for boring-ui-v2 apps: DB, auth, config, HTTP app factory, and frontend app shell.",
@@ -79,9 +79,9 @@
79
79
  "react-router-dom": "^7.14.2",
80
80
  "smol-toml": "^1.6.1",
81
81
  "zod": "^3.25.76",
82
- "@hachej/boring-agent": "0.1.53",
83
- "@hachej/boring-workspace": "0.1.53",
84
- "@hachej/boring-ui-kit": "0.1.53"
82
+ "@hachej/boring-ui-kit": "0.1.54",
83
+ "@hachej/boring-workspace": "0.1.54",
84
+ "@hachej/boring-agent": "0.1.54"
85
85
  },
86
86
  "devDependencies": {
87
87
  "@testing-library/jest-dom": "^6.9.1",