@vertesia/ui 0.66.0 → 0.67.0

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.
@@ -254,7 +254,7 @@ export default function MessageItem({ message, showPulsatingCircle = false }: Me
254
254
  components={{
255
255
  a: ({ node, ...props }: { node?: any; href?: string; children?: React.ReactNode }) => {
256
256
  const href = props.href || "";
257
- if (href.startsWith("/store/")) {
257
+ if (href.includes("/store/objects")) {
258
258
  return (
259
259
  <NavLink
260
260
  href={href}
@@ -3,11 +3,12 @@ import Markdown from "react-markdown";
3
3
  import remarkGfm from "remark-gfm";
4
4
 
5
5
  import { useUserSession } from "@vertesia/ui/session";
6
- import { Button, Link, Spinner, useToast } from "@vertesia/ui/core";
6
+ import { Button, Spinner, useToast } from "@vertesia/ui/core";
7
7
  import { JSONDisplay } from "@vertesia/ui/widgets";
8
8
  import { ContentObject, ImageRenditionFormat } from "@vertesia/common";
9
9
  import { Copy, Download, SquarePen } from "lucide-react";
10
10
  import { PropertiesEditorModal } from "./PropertiesEditorModal";
11
+ import { NavLink } from "@vertesia/ui/router";
11
12
 
12
13
  interface ContentOverviewProps {
13
14
  object: ContentObject;
@@ -320,17 +321,18 @@ export function ContentOverview({
320
321
  components={{
321
322
  a: ({ node, ...props }: { node?: any; href?: string; children?: React.ReactNode }) => {
322
323
  const href = props.href || "";
323
- if (href.startsWith("/store/objects/")) {
324
+ if (href.includes("/store/objects/")) {
324
325
  return (
325
- <Link
326
+ <NavLink
327
+ topLevelNav
326
328
  href={href}
327
329
  className="text-info"
328
330
  >
329
331
  {props.children}
330
- </Link>
332
+ </NavLink>
331
333
  );
332
334
  }
333
- return <a {...props} target="_blank" rel="noopener noreferrer" />;
335
+ return <a {...props} data-debug="test" target="_blank" rel="noopener noreferrer" />;
334
336
  },
335
337
  p: ({ node, ...props }: { node?: any; children?: React.ReactNode }) => (
336
338
  <p {...props} className={`my-0`} />
@@ -12,7 +12,7 @@ export function FullHeightLayout({ className, children }: FlexibleHeightLayoutPr
12
12
  "flex flex-col",
13
13
  "h-full",
14
14
  "overflow-y-auto",
15
- // "dark:bg-slate-900 text-slate-950 dark:text-slate-200",
15
+ "px-2",
16
16
  className
17
17
  )}
18
18
  >
@@ -50,7 +50,7 @@ FullHeightLayout.Body = function Body({ className, children }: BodyProps) {
50
50
  className={clsx(
51
51
  "grow overflow-auto",
52
52
  "min-h-0",
53
- "px-4 py-2",
53
+ "p-2",
54
54
  className
55
55
  )}
56
56
  >