konpeki 0.3.0 → 0.4.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.
- package/AGENTS.md +21 -28
- package/AUTHORING.md +68 -229
- package/CONTRIBUTING.md +10 -23
- package/README.md +96 -87
- package/SETUP.md +50 -114
- package/docs/development.md +43 -248
- package/docs/workflow.md +6 -108
- package/html/README.md +140 -0
- package/html/browser.ts +103 -0
- package/html/document.ts +38 -0
- package/html/floor.ts +34 -0
- package/html/index.html +5 -0
- package/html/inspect.ts +313 -0
- package/html/preview.css +62 -0
- package/html/preview.tsx +463 -0
- package/html/review-hints.ts +63 -0
- package/html/server.ts +99 -0
- package/html/source.ts +104 -0
- package/html/starter.ts +6 -0
- package/html/theme-authoring.md +176 -0
- package/html/theme.md +61 -0
- package/index.html +9 -9
- package/package.json +21 -35
- package/plugin.json +1 -1
- package/public/og.png +0 -0
- package/runtime/browser-B-29TH1a.mjs +595 -0
- package/runtime/floor-Cmk7G3pU.mjs +41 -0
- package/runtime/konpeki.mjs +90 -1410
- package/runtime/server-BAqC_5WD.mjs +2 -0
- package/runtime/server-DfRpfcY9.mjs +205 -0
- package/runtime/source-B_Ui9tMp.mjs +141 -0
- package/runtime/source-CZQq9GUO.mjs +2 -0
- package/skills/konpeki/SKILL.md +88 -172
- package/skills/konpeki/assets/blank.html +17 -0
- package/skills/konpeki/floor.md +76 -0
- package/skills/konpeki/references/cover.md +27 -0
- package/skills/konpeki/references/long-document.md +40 -0
- package/skills/konpeki/references/one-pager.md +27 -0
- package/skills/konpeki/references/patterns.md +118 -0
- package/skills/konpeki/references/resume.md +28 -0
- package/skills/konpeki/references/slides.md +28 -0
- package/skills/konpeki/scripts/ensure-runtime.mjs +10 -31
- package/skills/konpeki/scripts/prepare-document.mjs +25 -14
- package/src/components/PageBoard.tsx +156 -0
- package/src/lib/alignment.ts +21 -0
- package/src/lib/page-board.ts +25 -0
- package/src/lib/review-position.ts +19 -0
- package/src/styles/base.css +4 -6
- package/src/styles/feedback.css +97 -61
- package/src/styles/shell.css +95 -323
- package/theme-base.css +90 -0
- package/theme.css +56 -0
- package/vite.config.ts +2 -5
- package/composition/README.md +0 -156
- package/composition/compile.ts +0 -227
- package/composition/document.ts +0 -600
- package/composition/schema.json +0 -3001
- package/composition/schema.ts +0 -437
- package/composition/theme-tokens.ts +0 -16
- package/composition/types.ts +0 -269
- package/composition/validate.ts +0 -226
- package/composition/vector.ts +0 -143
- package/composition/visualizations.ts +0 -319
- package/design/README.md +0 -17
- package/design/palettes/README.md +0 -14
- package/design/palettes/base.ts +0 -14
- package/design/palettes/candidates.ts +0 -19
- package/design/palettes/index.ts +0 -78
- package/design/review/color-theme.md +0 -44
- package/design/review/layout.md +0 -16
- package/design/review/text.md +0 -18
- package/design/review/typography.md +0 -15
- package/design/review/visuals.md +0 -31
- package/design/semantic-patterns.md +0 -43
- package/design/themes/README.md +0 -40
- package/design/themes/index.ts +0 -24
- package/design/visual-languages/technical-product.md +0 -17
- package/design/visual-review.md +0 -88
- package/lib/assets.d.ts +0 -8
- package/lib/charts.ts +0 -18
- package/lib/contrast.ts +0 -16
- package/lib/layouts.ts +0 -50
- package/lib/slide.tsx +0 -42
- package/lib/taste.ts +0 -17
- package/lib/text.tsx +0 -89
- package/lib/typeface.ts +0 -44
- package/scripts/migrate-react-page.ts +0 -120
- package/skills/konpeki/assets/blank.json +0 -23
- package/slides/README.md +0 -153
- package/slides/architecture/PROMPT.md +0 -31
- package/slides/architecture/index.tsx +0 -102
- package/slides/article-brief/PROMPT.md +0 -35
- package/slides/article-brief/index.tsx +0 -71
- package/slides/bar-chart/PROMPT.md +0 -39
- package/slides/bar-chart/index.tsx +0 -97
- package/slides/comparison/PROMPT.md +0 -29
- package/slides/comparison/index.tsx +0 -95
- package/slides/decision-memo/PROMPT.md +0 -34
- package/slides/decision-memo/index.tsx +0 -85
- package/slides/delivery-plan/PROMPT.md +0 -45
- package/slides/delivery-plan/index.tsx +0 -105
- package/slides/experiment/PROMPT.md +0 -44
- package/slides/experiment/index.tsx +0 -127
- package/slides/incident-workflow/PROMPT.md +0 -57
- package/slides/incident-workflow/index.tsx +0 -78
- package/slides/introducing-konpeki/PROMPT.md +0 -40
- package/slides/introducing-konpeki/README.md +0 -76
- package/slides/introducing-konpeki/SOURCE.md +0 -26
- package/slides/introducing-konpeki/author.ts +0 -165
- package/slides/introducing-konpeki/composition.json +0 -3270
- package/slides/line-chart/PROMPT.md +0 -40
- package/slides/line-chart/index.tsx +0 -72
- package/slides/migration/PROMPT.md +0 -38
- package/slides/migration/index.tsx +0 -89
- package/slides/og-images/PROMPT.md +0 -21
- package/slides/og-images/index.tsx +0 -76
- package/slides/product-introduction/PROMPT.md +0 -24
- package/slides/product-introduction/index.tsx +0 -105
- package/slides/research-brief/PROMPT.md +0 -40
- package/slides/research-brief/index.tsx +0 -104
- package/slides/results-explanation/PROMPT.md +0 -32
- package/slides/results-explanation/index.tsx +0 -96
- package/slides/retrospective/PROMPT.md +0 -43
- package/slides/retrospective/index.tsx +0 -105
- package/slides/sankey/PROMPT.md +0 -11
- package/slides/sankey/index.tsx +0 -93
- package/slides/teaching/PROMPT.md +0 -45
- package/slides/teaching/index.tsx +0 -124
- package/slides/vertical-bar-charts/PROMPT.md +0 -13
- package/slides/vertical-bar-charts/index.tsx +0 -97
- package/src/app/App.tsx +0 -820
- package/src/components/BuildOrb.tsx +0 -40
- package/src/components/Canvas.tsx +0 -1185
- package/src/components/DiagramTypeIcon.tsx +0 -78
- package/src/components/InspectorPanel.tsx +0 -773
- package/src/components/LeftPanel.tsx +0 -120
- package/src/components/PageSizePicker.tsx +0 -30
- package/src/components/Presentation.tsx +0 -105
- package/src/components/RevisionNotes.tsx +0 -56
- package/src/components/RightPanel.tsx +0 -201
- package/src/components/VectorOverflowWarning.tsx +0 -46
- package/src/components/WorkspaceChrome.tsx +0 -288
- package/src/components/ui.tsx +0 -53
- package/src/lib/examples/react-page-migration.json +0 -1295
- package/src/lib/examples.ts +0 -42
- package/src/lib/export-png.ts +0 -104
- package/src/lib/file-session.ts +0 -87
- package/src/lib/history.ts +0 -53
- package/src/lib/model.ts +0 -188
- package/src/lib/page-size.ts +0 -24
- package/src/lib/presentation.ts +0 -17
- package/src/lib/review.ts +0 -26
- package/src/lib/storage.ts +0 -71
- package/src/lib/theme.ts +0 -25
- package/src/lib/use-file-session.ts +0 -227
- package/src/main.tsx +0 -29
- package/src/styles/canvas.css +0 -299
- package/src/styles/chrome.css +0 -384
- package/src/styles/component-previews.css +0 -386
- package/src/styles/left-panel.css +0 -166
- package/src/styles/presentation.css +0 -72
- package/src/styles/right-panel.css +0 -1215
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { DiagramType } from "../../composition/types.ts";
|
|
2
|
-
|
|
3
|
-
export function DiagramTypeIcon({
|
|
4
|
-
type,
|
|
5
|
-
className = "",
|
|
6
|
-
}: {
|
|
7
|
-
type: DiagramType;
|
|
8
|
-
className?: string;
|
|
9
|
-
}) {
|
|
10
|
-
const nodes = (points: [number, number][]) =>
|
|
11
|
-
points.map(([cx, cy], index) => (
|
|
12
|
-
<circle key={index} cx={cx} cy={cy} r="2.5" />
|
|
13
|
-
));
|
|
14
|
-
return (
|
|
15
|
-
<svg
|
|
16
|
-
className={`diagram-type-icon ${className}`.trim()}
|
|
17
|
-
viewBox="0 0 48 32"
|
|
18
|
-
aria-hidden="true"
|
|
19
|
-
>
|
|
20
|
-
{type === "architecture" ? <>
|
|
21
|
-
<rect x="19" y="11" width="10" height="10" rx="2" />
|
|
22
|
-
{nodes([[6, 7], [42, 7], [6, 25], [42, 25]])}
|
|
23
|
-
<path d="M19 14 8 8m21 6 11-6M19 18 8 24m21-6 11 6" />
|
|
24
|
-
</> : type === "it-current-state" ? <>
|
|
25
|
-
<rect x="3" y="4" width="14" height="8" rx="1" /><rect x="28" y="3" width="17" height="10" rx="1" /><rect x="8" y="21" width="16" height="8" rx="1" /><rect x="34" y="20" width="11" height="9" rx="1" /><path d="M17 8h11M15 12l-3 9m12 4h10M36 13l3 7" />
|
|
26
|
-
</> : type === "high-level" ? <>
|
|
27
|
-
<rect x="3" y="8" width="12" height="16" rx="2" /><rect x="18" y="8" width="12" height="16" rx="2" /><rect x="33" y="8" width="12" height="16" rx="2" />
|
|
28
|
-
</> : type === "deployment" ? <>
|
|
29
|
-
<rect x="3" y="4" width="42" height="24" rx="2" /><path d="M24 4v24" /><rect x="7" y="9" width="12" height="7" rx="1" /><rect x="29" y="17" width="12" height="7" rx="1" /><path d="M19 12h7l-2-2m2 2-2 2" />
|
|
30
|
-
</> : type === "nested" ? <>
|
|
31
|
-
<rect x="3" y="4" width="42" height="24" rx="2" /><rect x="9" y="9" width="30" height="14" rx="2" /><rect x="16" y="13" width="16" height="6" rx="1" />
|
|
32
|
-
</> : type === "flowchart" ? <>
|
|
33
|
-
<rect x="2" y="11" width="10" height="9" rx="2" /><path d="m24 8 8 8-8 8-8-8Z M12 16h4m16 0h8" /><circle cx="43" cy="16" r="3" />
|
|
34
|
-
</> : type === "sequence" ? <>
|
|
35
|
-
{nodes([[8, 5], [24, 5], [40, 5]])}<path d="M8 9v18M24 9v18M40 9v18M8 13h16l-3-2m3 2-3 2M40 20H24l3-2m-3 2 3 2" />
|
|
36
|
-
</> : type === "state-machine" ? <>
|
|
37
|
-
{nodes([[8, 16], [24, 7], [40, 16], [24, 25]])}<path d="m11 14 10-5m6 0 10 5m0 4-10 5m-6 0-10-5" />
|
|
38
|
-
</> : type === "swimlane" ? <>
|
|
39
|
-
<path d="M2 9h44M2 22h44M15 3v26" /><rect x="19" y="12" width="9" height="6" rx="1" /><path d="M28 15h9" />
|
|
40
|
-
</> : type === "process" ? <>
|
|
41
|
-
{nodes([[6, 16], [18, 16], [30, 16], [42, 16]])}<path d="M9 16h6m6 0h6m6 0h6" />
|
|
42
|
-
</> : type === "user-journey" ? <>
|
|
43
|
-
<path d="M4 20C12 7 20 25 28 12s12-3 16-6" />{nodes([[5, 19], [16, 15], [28, 12], [43, 6]])}<path d="M7 26h8m3 0h8m3 0h8" />
|
|
44
|
-
</> : type === "data-flow" ? <>
|
|
45
|
-
<rect x="2" y="11" width="11" height="10" rx="2" /><circle cx="25" cy="16" r="6" /><path d="M13 16h6m12 0h8l-3-3m3 3-3 3" /><path d="M40 10v12" />
|
|
46
|
-
</> : type === "dp-integration" ? <>
|
|
47
|
-
<rect x="2" y="7" width="11" height="18" rx="2" /><rect x="19" y="4" width="10" height="24" rx="2" /><rect x="35" y="7" width="11" height="18" rx="2" /><path d="M13 16h6m10 0h6" />
|
|
48
|
-
</> : type === "er-data-model" ? <>
|
|
49
|
-
<rect x="2" y="8" width="14" height="16" rx="1" /><rect x="32" y="8" width="14" height="16" rx="1" /><path d="m24 10 6 6-6 6-6-6Zm-8 6h2m12 0h2" />
|
|
50
|
-
</> : type === "database-schema" ? <>
|
|
51
|
-
<rect x="2" y="6" width="15" height="20" rx="1" /><path d="M2 12h15M6 16h7M6 20h7" /><rect x="31" y="6" width="15" height="20" rx="1" /><path d="M31 12h15M35 16h7M17 17h14" />
|
|
52
|
-
</> : type === "medallion" ? <>
|
|
53
|
-
<ellipse cx="12" cy="16" rx="9" ry="12" /><ellipse cx="24" cy="16" rx="9" ry="12" /><ellipse cx="36" cy="16" rx="9" ry="12" /><path d="M8 16h8m4 0h8m4 0h8" />
|
|
54
|
-
</> : type === "layer-stack" ? <>
|
|
55
|
-
<path d="m24 3 18 7-18 7-18-7Zm-18 13 18 7 18-7M6 22l18 7 18-7" />
|
|
56
|
-
</> : type === "dp-security-matrix" ? <>
|
|
57
|
-
<rect x="7" y="4" width="34" height="24" rx="1" /><path d="M7 12h34M7 20h34M18 4v24M29 4v24" /><circle cx="35" cy="16" r="2" />
|
|
58
|
-
</> : type === "dependency-graph" ? <>
|
|
59
|
-
{nodes([[6, 8], [6, 24], [24, 16], [42, 8], [42, 24]])}<path d="M8 9 21 15M8 23l13-6m6-2 13-6m-13 8 13 6" />
|
|
60
|
-
</> : type === "uml-class" ? <>
|
|
61
|
-
<rect x="10" y="3" width="28" height="26" rx="1" /><path d="M10 10h28M10 18h28M15 14h12M15 22h17M15 25h12" />
|
|
62
|
-
</> : type === "tree" ? <>
|
|
63
|
-
{nodes([[24, 5], [12, 16], [36, 16], [6, 27], [18, 27], [30, 27], [42, 27]])}<path d="M22 7 14 14m12-7 8 7M11 18l-4 7m7-7 3 7m18-7-4 7m7-7 3 7" />
|
|
64
|
-
</> : type === "org-chart" ? <>
|
|
65
|
-
<rect x="19" y="2" width="10" height="7" rx="1" /><path d="M24 9v7M8 16h32M8 16v6M24 16v6M40 16v6" /><rect x="3" y="22" width="10" height="7" rx="1" /><rect x="19" y="22" width="10" height="7" rx="1" /><rect x="35" y="22" width="10" height="7" rx="1" />
|
|
66
|
-
</> : type === "pyramid-funnel" ? <path d="M5 4h38l-6 7H11Zm8 10h22l-5 6H18Zm7 9h8l-4 6Z" />
|
|
67
|
-
: type === "timeline" ? <>{nodes([[7, 16], [20, 16], [33, 16], [44, 16]])}<path d="M3 16h42M7 13V7M20 19v7M33 13V7" /></>
|
|
68
|
-
: type === "gantt" ? <><path d="M12 3v26M2 9h44M2 16h44M2 23h44" /><path className="filled" d="M16 5h15v3H16zm8 7h18v3H24zm-7 7h13v3H17zm14 7h11v3H31z" /></>
|
|
69
|
-
: type === "kanban" ? <><rect x="3" y="3" width="42" height="26" rx="2" /><path d="M17 3v26M31 3v26" /><rect x="6" y="8" width="8" height="5" rx="1" /><rect x="20" y="8" width="8" height="8" rx="1" /><rect x="34" y="8" width="8" height="12" rx="1" /></>
|
|
70
|
-
: type === "story-map" ? <><path d="M3 10h42M15 3v26M28 3v26M3 21h42" /><rect x="5" y="4" width="8" height="4" rx="1" /><rect x="17" y="13" width="9" height="5" rx="1" /><rect x="31" y="23" width="11" height="4" rx="1" /></>
|
|
71
|
-
: type === "quadrant" ? <><path d="M5 27V4m0 23h39M24 4v23M5 16h39" />{nodes([[13, 10], [20, 21], [32, 8], [39, 23]])}</>
|
|
72
|
-
: type === "wardley-map" ? <><path d="M5 27V4m0 23h39M10 22 20 15l8 5 10-12M20 15l-3-7m11 12 8 4" />{nodes([[10, 22], [20, 15], [17, 8], [28, 20], [38, 8], [36, 24]])}</>
|
|
73
|
-
: type === "loop-flywheel" ? <><circle cx="24" cy="16" r="11" /><path d="m29 5 5 1-2 5M19 27l-5-1 2-5" />{nodes([[24, 5], [35, 16], [24, 27], [13, 16]])}</>
|
|
74
|
-
: type === "venn" ? <><circle cx="19" cy="16" r="10" /><circle cx="29" cy="16" r="10" /></>
|
|
75
|
-
: <><path d="M5 16h37M37 12l5 4-5 4M13 16 7 7M20 16l-4-12M27 16l7-10M34 16l8 8" />{nodes([[7, 7], [16, 4], [34, 6], [42, 24]])}</>}
|
|
76
|
-
</svg>
|
|
77
|
-
);
|
|
78
|
-
}
|