veslx 0.1.65 → 0.1.67

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 (44) hide show
  1. package/README.md +0 -16
  2. package/dist/client/components/mdx-components.js +0 -14
  3. package/dist/client/components/mdx-components.js.map +1 -1
  4. package/dist/client/components/post-list-item.js +13 -8
  5. package/dist/client/components/post-list-item.js.map +1 -1
  6. package/dist/client/components/post-list.js +6 -1
  7. package/dist/client/components/post-list.js.map +1 -1
  8. package/dist/client/lib/content-classification.js +11 -2
  9. package/dist/client/lib/content-classification.js.map +1 -1
  10. package/dist/client/plugin/src/client.js +7 -40
  11. package/dist/client/plugin/src/client.js.map +1 -1
  12. package/dist/plugin/src/client.js +7 -0
  13. package/dist/plugin/src/plugin.js +5 -2
  14. package/package.json +1 -1
  15. package/plugin/src/client.tsx +10 -0
  16. package/plugin/src/plugin.ts +5 -2
  17. package/src/components/index.ts +0 -3
  18. package/src/components/mdx-components.tsx +0 -21
  19. package/src/components/post-list-item.tsx +17 -10
  20. package/src/components/post-list.tsx +8 -2
  21. package/src/lib/content-classification.ts +12 -2
  22. package/dist/client/components/parameter-badge.js +0 -48
  23. package/dist/client/components/parameter-badge.js.map +0 -1
  24. package/dist/client/components/parameter-table.js +0 -216
  25. package/dist/client/components/parameter-table.js.map +0 -1
  26. package/dist/client/components/slides/figure-slide.js +0 -14
  27. package/dist/client/components/slides/figure-slide.js.map +0 -1
  28. package/dist/client/components/slides/hero-slide.js +0 -21
  29. package/dist/client/components/slides/hero-slide.js.map +0 -1
  30. package/dist/client/components/slides/slide-outline.js +0 -28
  31. package/dist/client/components/slides/slide-outline.js.map +0 -1
  32. package/dist/client/components/slides/text-slide.js +0 -18
  33. package/dist/client/components/slides/text-slide.js.map +0 -1
  34. package/dist/client/components/veslx-cat.js +0 -40
  35. package/dist/client/components/veslx-cat.js.map +0 -1
  36. package/dist/client/lib/parameter-utils.js +0 -108
  37. package/dist/client/lib/parameter-utils.js.map +0 -1
  38. package/src/components/parameter-badge.tsx +0 -78
  39. package/src/components/parameter-table.tsx +0 -369
  40. package/src/components/slides/figure-slide.tsx +0 -16
  41. package/src/components/slides/hero-slide.tsx +0 -34
  42. package/src/components/slides/slide-outline.tsx +0 -38
  43. package/src/components/slides/text-slide.tsx +0 -35
  44. package/src/components/veslx-cat.tsx +0 -73
@@ -1,35 +0,0 @@
1
-
2
- export function TextSlide({
3
- title,
4
- subtitle,
5
- children,
6
- }: {
7
- title?: string;
8
- subtitle?: string;
9
- children?: React.ReactNode;
10
- }) {
11
- return (
12
- <div>
13
- {(title || subtitle) && (
14
- <header className="flex flex-col gap-2">
15
- {title && (
16
- <h2 className="text-[clamp(1.75rem,4vw,3rem)] font-semibold leading-tight tracking-[-0.02em] text-foreground">
17
- {title}
18
- </h2>
19
- )}
20
- {subtitle && (
21
- <p className="text-[clamp(0.95rem,1.5vw,1.25rem)] text-muted-foreground">
22
- {subtitle}
23
- </p>
24
- )}
25
- </header>
26
- )}
27
-
28
- {children && (
29
- <div className="text-[clamp(1rem,1.8vw,1.35rem)] leading-[1.6] text-foreground/90 space-y-4 [&>ul]:space-y-2 [&>ul]:list-disc [&>ul]:pl-6 [&>ol]:space-y-2 [&>ol]:list-decimal [&>ol]:pl-6">
30
- {children}
31
- </div>
32
- )}
33
- </div>
34
- );
35
- }
@@ -1,73 +0,0 @@
1
- import { useFileContent } from "../../plugin/src/client";
2
- import { cn } from "@/lib/utils";
3
- import { FigureHeader } from "@/components/gallery/components/figure-header";
4
- import { FigureCaption } from "@/components/gallery/components/figure-caption";
5
-
6
- interface VeslxCatProps {
7
- /** Path to the file */
8
- path: string;
9
- /** Optional title */
10
- title?: string;
11
- /** Optional subtitle */
12
- subtitle?: string;
13
- /** Optional caption */
14
- caption?: string;
15
- /** Optional caption label */
16
- captionLabel?: string;
17
- /** Optional class override */
18
- className?: string;
19
- }
20
-
21
- export function VeslxCat({
22
- path,
23
- title,
24
- subtitle,
25
- caption,
26
- captionLabel,
27
- className,
28
- }: VeslxCatProps) {
29
- const { content, loading, error } = useFileContent(path);
30
-
31
- const header = (title || subtitle) ? (
32
- <div className="mb-3">
33
- <FigureHeader title={title} subtitle={subtitle} />
34
- </div>
35
- ) : null;
36
- const footer = (caption || captionLabel) ? (
37
- <FigureCaption caption={caption} label={captionLabel} />
38
- ) : null;
39
-
40
- if (loading) {
41
- return (
42
- <div className={cn("not-prose my-6", className)}>
43
- {header}
44
- <pre className="w-full overflow-x-auto p-4 text-xs bg-muted border border-border rounded-md font-mono">
45
- loading…
46
- </pre>
47
- {footer}
48
- </div>
49
- );
50
- }
51
-
52
- if (error) {
53
- return (
54
- <div className={cn("not-prose my-6", className)}>
55
- {header}
56
- <pre className="w-full overflow-x-auto p-4 text-xs bg-destructive/5 border border-destructive/30 rounded-md font-mono text-destructive">
57
- {error}
58
- </pre>
59
- {footer}
60
- </div>
61
- );
62
- }
63
-
64
- return (
65
- <div className={cn("not-prose my-6", className)}>
66
- {header}
67
- <pre className="w-full overflow-x-auto p-4 text-xs bg-muted border border-border rounded-md font-mono">
68
- {content ?? ""}
69
- </pre>
70
- {footer}
71
- </div>
72
- );
73
- }