flowbook 0.2.12 → 0.2.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbook",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "flowbook": "dist/cli.js"
@@ -8,6 +8,37 @@ interface FlowViewProps {
8
8
  export function FlowView({ flow }: FlowViewProps) {
9
9
  return (
10
10
  <div className="p-8 max-w-5xl mx-auto">
11
+ {/* Title */}
12
+ <h1 className="text-2xl font-bold mb-1" style={{ color: 'var(--fb-text-primary)' }}>
13
+ {flow.title}
14
+ </h1>
15
+
16
+ {/* Description */}
17
+ {flow.description && (
18
+ <p className="text-sm mb-4" style={{ color: 'var(--fb-text-secondary)' }}>
19
+ {flow.description}
20
+ </p>
21
+ )}
22
+
23
+ {/* Tags */}
24
+ {flow.tags.length > 0 && (
25
+ <div className="flex flex-wrap gap-2 mb-6">
26
+ {flow.tags.map((tag) => (
27
+ <span
28
+ key={tag}
29
+ className="px-2 py-0.5 rounded-full text-xs font-medium"
30
+ style={{
31
+ background: 'rgba(99, 102, 241, 0.15)',
32
+ color: '#a5b4fc',
33
+ border: '1px solid rgba(99, 102, 241, 0.25)',
34
+ }}
35
+ >
36
+ {tag}
37
+ </span>
38
+ ))}
39
+ </div>
40
+ )}
41
+
11
42
  {/* Diagrams */}
12
43
  <div className="space-y-6">
13
44
  {flow.mermaidBlocks.map((block, i) => (