@datalayer/design 1.0.14 → 1.0.16

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 (40) hide show
  1. package/lib/pages/IconsPage.js +45 -23
  2. package/lib/pages/SvgPage.js +27 -7
  3. package/lib/svg/SvgAgentRuntimes.js +1 -1
  4. package/lib/svg/SvgOg.js +3 -3
  5. package/lib/svg/SvgOgStacked.js +1 -1
  6. package/lib/svg/SvgSessions.d.ts +5 -0
  7. package/lib/svg/SvgSessions.js +167 -0
  8. package/lib/svg/gallery.d.ts +1 -1
  9. package/lib/svg/gallery.js +13 -0
  10. package/lib/svg/index.d.ts +2 -0
  11. package/lib/svg/index.js +2 -0
  12. package/lib/svg/pains/PainFrame.d.ts +156 -0
  13. package/lib/svg/pains/PainFrame.js +117 -0
  14. package/lib/svg/pains/SvgPainAgentTeams.d.ts +13 -0
  15. package/lib/svg/pains/SvgPainAgentTeams.js +37 -0
  16. package/lib/svg/pains/SvgPainAgenticUi.d.ts +12 -0
  17. package/lib/svg/pains/SvgPainAgenticUi.js +14 -0
  18. package/lib/svg/pains/SvgPainBenchmarks.d.ts +13 -0
  19. package/lib/svg/pains/SvgPainBenchmarks.js +23 -0
  20. package/lib/svg/pains/SvgPainChannels.d.ts +13 -0
  21. package/lib/svg/pains/SvgPainChannels.js +53 -0
  22. package/lib/svg/pains/SvgPainLibrary.d.ts +13 -0
  23. package/lib/svg/pains/SvgPainLibrary.js +13 -0
  24. package/lib/svg/pains/SvgPainObservability.d.ts +13 -0
  25. package/lib/svg/pains/SvgPainObservability.js +27 -0
  26. package/lib/svg/pains/SvgPainPlugins.d.ts +13 -0
  27. package/lib/svg/pains/SvgPainPlugins.js +25 -0
  28. package/lib/svg/pains/SvgPainPolicies.d.ts +13 -0
  29. package/lib/svg/pains/SvgPainPolicies.js +29 -0
  30. package/lib/svg/pains/SvgPainProtocols.d.ts +12 -0
  31. package/lib/svg/pains/SvgPainProtocols.js +18 -0
  32. package/lib/svg/pains/SvgPainSandboxes.d.ts +13 -0
  33. package/lib/svg/pains/SvgPainSandboxes.js +11 -0
  34. package/lib/svg/pains/SvgPainSecurity.d.ts +13 -0
  35. package/lib/svg/pains/SvgPainSecurity.js +19 -0
  36. package/lib/svg/pains/SvgPainStudio.d.ts +12 -0
  37. package/lib/svg/pains/SvgPainStudio.js +15 -0
  38. package/lib/svg/pains/index.d.ts +36 -0
  39. package/lib/svg/pains/index.js +32 -0
  40. package/package.json +4 -2
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Pain 11, Rules nobody enforces, answered by Policies & Rules.
3
+ *
4
+ * The pain: the policy is a document set aside, and the agent sends message
5
+ * after message past it. The answer: the rules written into a firewall
6
+ * between the agent and the world, deciding every call: one goes through,
7
+ * one waits to be asked, one is refused.
8
+ */
9
+ import type { ColorPalette } from '@datalayer/primer-addons';
10
+ export declare function SvgPainPolicies({ palette }?: {
11
+ palette?: ColorPalette;
12
+ }): import("react").JSX.Element;
13
+ export default SvgPainPolicies;
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Agent, Bars, Check, Cross, Label, PainFrame } from './PainFrame';
3
+ /** An envelope. */
4
+ function Envelope({ x, y, ink, p, opacity = 1 }) {
5
+ return (_jsxs("g", { opacity: opacity, children: [_jsx("rect", { x: x - 11, y: y - 7.5, width: "22", height: "15", rx: "2", fill: p.bgPanel, stroke: ink, strokeWidth: "1.3" }), _jsx("path", { d: `M${x - 11} ${y - 6.5} L${x} ${y + 1} L${x + 11} ${y - 6.5}`, fill: "none", stroke: ink, strokeWidth: "1.3", strokeLinejoin: "round" })] }));
6
+ }
7
+ const WALL_X = 600;
8
+ export function SvgPainPolicies({ palette } = {}) {
9
+ return (_jsx(PainFrame, { number: 11, feature: "Policies & Rules", palette: palette, title: "Rules nobody enforces", desc: "On the left, the policy sits in a document while the agent sends message after message past it. On the right, the rules are written into a firewall between the agent and the world, which lets one call through, holds one to ask first and refuses one.", children: ({ p, ink, motion }) => {
10
+ const askInk = ink.ask;
11
+ const calls = [
12
+ { y: 128, end: 752, c: ink.answer, verdict: 'ALLOW' },
13
+ { y: 208, end: WALL_X - 14, c: askInk, verdict: 'ASK' },
14
+ { y: 288, end: WALL_X - 14, c: ink.pain, verdict: 'DENY' },
15
+ ];
16
+ return (_jsxs("g", { children: [_jsxs("g", { opacity: "0.75", children: [_jsx("path", { d: "M62 82 h70 l18 18 v104 h-88 Z", fill: p.bgPanel, stroke: ink.muted, strokeWidth: "1.3", strokeLinejoin: "round" }), _jsx("path", { d: "M132 82 v18 h18", fill: "none", stroke: ink.muted, strokeWidth: "1.3", strokeLinejoin: "round" }), _jsx(Bars, { x: 74, y: 116, widths: [58, 64, 48, 62, 40, 56, 30], ink: ink.muted, gap: 11, opacity: 0.5 })] }), _jsx(Label, { x: 106, y: 224, ink: p.textMuted, children: "POLICY" }), _jsx(Agent, { x: 110, y: 296, r: 22, ink: ink.muted, p: p, dim: true }), [
17
+ [176, 300, 1], [214, 270, 0.95], [244, 312, 0.9], [276, 250, 0.85], [300, 292, 0.8],
18
+ [322, 226, 0.75], [340, 326, 0.7], [352, 268, 0.65],
19
+ ].map(([x, y, o], i) => (_jsx(Envelope, { x: x, y: y, ink: ink.pain, p: p, opacity: o }, i))), _jsx("path", { d: "M138 296 C200 296 260 260 352 230", fill: "none", stroke: ink.pain, strokeOpacity: "0.35", strokeWidth: "1.2", strokeDasharray: "3 4" }), Array.from({ length: 11 }, (_, r) => {
20
+ const y = 84 + r * 22;
21
+ const bricks = r % 2 ? [[0, 7], [9, 14], [25, 7]] : [[0, 15], [17, 15]];
22
+ return (_jsx("g", { children: bricks.map(([dx, w]) => (_jsx("rect", { x: WALL_X - 16 + dx, y: y, width: w, height: "18", rx: "2", fill: ink.answer, fillOpacity: 0.14 + (r % 3) * 0.05, stroke: ink.answer, strokeOpacity: "0.55", strokeWidth: "1" }, dx))) }, r));
23
+ }), _jsxs("g", { transform: `translate(${WALL_X - 15} 46)`, children: [_jsx("path", { d: "M0 0 h22 l8 8 v20 h-30 Z", fill: p.bgPanel, stroke: ink.answer, strokeWidth: "1.3", strokeLinejoin: "round" }), _jsx(Bars, { x: 5, y: 11, widths: [18, 14, 18], ink: ink.answer, gap: 5, h: 2.4, opacity: 0.8 })] }), _jsx(Agent, { x: 472, y: 208, r: 26, ink: ink.answer, p: p }), calls.map((c, i) => {
24
+ const d = `M498 208 C530 208 540 ${c.y} 570 ${c.y} L${c.end} ${c.y}`;
25
+ return (_jsxs("g", { children: [_jsx("path", { d: d, fill: "none", stroke: c.c, strokeOpacity: "0.6", strokeWidth: "1.6", strokeDasharray: "5 4", className: i === 0 ? motion.march : undefined }), i === 0 ? (_jsxs("g", { children: [_jsx("circle", { className: motion.travel, r: "3.4", fill: c.c, style: { offsetPath: `path('${d}')` } }), _jsx("circle", { cx: 700, cy: c.y, r: "12", fill: p.bgPanel, stroke: c.c, strokeWidth: "1.6" }), _jsx(Check, { x: 700, y: c.y, s: 5, ink: c.c })] })) : i === 1 ? (_jsxs("g", { className: motion.breathe, children: [_jsx("rect", { x: WALL_X - 24 - 9, y: c.y - 9, width: "18", height: "18", fill: p.bgPanel, stroke: c.c, strokeWidth: "1.6", transform: `rotate(45 ${WALL_X - 24} ${c.y})` }), _jsx("circle", { cx: WALL_X - 24, cy: c.y, r: "2.6", fill: c.c })] })) : (_jsxs("g", { children: [_jsx("circle", { cx: WALL_X - 24, cy: c.y, r: "11", fill: p.bgPanel, stroke: c.c, strokeWidth: "1.6" }), _jsx(Cross, { x: WALL_X - 24, y: c.y, s: 4, ink: c.c })] })), _jsx(Label, { x: 650, y: c.y + (i === 0 ? -18 : 4), ink: c.c, anchor: "start", children: c.verdict })] }, c.verdict));
26
+ })] }));
27
+ } }));
28
+ }
29
+ export default SvgPainPolicies;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Pain 10, Agents that cannot work together, answered by Open Protocols.
3
+ *
4
+ * The pain: three teams' agents, each walled in its own vendor, the links
5
+ * between them broken. The answer: the same three on one open line, MCP,
6
+ * A2A and the Personal Agent Protocol, the work passing between them.
7
+ */
8
+ import type { ColorPalette } from '@datalayer/primer-addons';
9
+ export declare function SvgPainProtocols({ palette }?: {
10
+ palette?: ColorPalette;
11
+ }): import("react").JSX.Element;
12
+ export default SvgPainProtocols;
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Agent, Chip, Cross, PainFrame, Panel } from './PainFrame';
3
+ const BUS_Y = 272;
4
+ export function SvgPainProtocols({ palette } = {}) {
5
+ return (_jsx(PainFrame, { number: 10, feature: "Open Protocols", palette: palette, title: "Agents that cannot work together", desc: "On the left, three teams' agents, each walled in its own vendor's platform, unable to reach each other. On the right, the same agents on open protocols, MCP, A2A and Poppy, handing work to each other.", children: ({ p, ink, motion }) => {
6
+ const inks = [ink.answer, ink.second, ink.third];
7
+ const bus = `M452 ${BUS_Y} H748`;
8
+ return (_jsxs("g", { children: [[0, 1, 2].map((i) => {
9
+ const x = 52 + i * 106;
10
+ return (_jsxs("g", { children: [_jsx(Panel, { x: x, y: 96, w: 92, h: 196, ink: ink.muted, p: p, fill: ink.muted }), _jsx("rect", { x: x, y: 96, width: 92, height: 196, rx: "8", fill: p.bg, opacity: p.isLight ? 0.82 : 0.78 }), _jsx("rect", { x: x + 10, y: 108, width: 36, height: "5", rx: "2.5", fill: ink.muted, opacity: "0.5" }), i === 0 ? _jsx("rect", { x: x + 30, y: 160, width: 32, height: 32, rx: "6", fill: p.bgPanel, stroke: ink.muted, strokeWidth: "1.4", strokeDasharray: "4 3" }) : null, i === 1 ? _jsx(Agent, { x: x + 46, y: 176, r: 18, ink: ink.muted, p: p, dim: true }) : null, i === 2 ? _jsx("path", { d: `M${x + 46} 156 l20 36 h-40 Z`, fill: p.bgPanel, stroke: ink.muted, strokeWidth: "1.4", strokeDasharray: "4 3", strokeLinejoin: "round" }) : null, _jsx(Bars3, { x: x + 18, y: 234, ink: ink.muted })] }, i));
11
+ }), [144, 250].map((x) => (_jsxs("g", { children: [_jsx("line", { x1: x - 22, y1: 176, x2: x - 8, y2: 176, stroke: ink.muted, strokeOpacity: "0.6", strokeWidth: "1.4", strokeDasharray: "3 3" }), _jsx("line", { x1: x + 22, y1: 176, x2: x + 8, y2: 176, stroke: ink.muted, strokeOpacity: "0.6", strokeWidth: "1.4", strokeDasharray: "3 3" }), _jsx("circle", { cx: x + 3, cy: 176, r: "9", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.4" }), _jsx(Cross, { x: x + 3, y: 176, s: 3.5, ink: ink.pain })] }, x))), _jsx("line", { x1: 452, y1: BUS_Y, x2: 748, y2: BUS_Y, stroke: ink.answer, strokeOpacity: "0.25", strokeWidth: "8", strokeLinecap: "round" }), _jsx("path", { d: bus, stroke: ink.answer, strokeWidth: "2", strokeDasharray: "6 6", className: motion.march }), [480, 600, 720].map((x, i) => (_jsxs("g", { children: [_jsx("line", { x1: x, y1: 176, x2: x, y2: BUS_Y, stroke: inks[i], strokeOpacity: "0.6", strokeWidth: "1.6" }), _jsx("circle", { cx: x, cy: BUS_Y, r: "5", fill: p.bgPanel, stroke: inks[i], strokeWidth: "1.8" }), _jsx(Agent, { x: x, y: 150, r: 24, ink: inks[i], p: p })] }, x))), [0, -1.6, -3.2].map((d) => (_jsx("circle", { className: motion.travel, r: "3.4", fill: ink.answer, style: { offsetPath: `path('${bus}')`, animationDelay: `${d}s` } }, d))), _jsx(Chip, { x: 474, y: 296, w: 68, label: "MCP", ink: ink.answer, p: p, filled: true }), _jsx(Chip, { x: 566, y: 296, w: 68, label: "A2A", ink: ink.second, p: p, filled: true }), _jsx(Chip, { x: 658, y: 296, w: 80, label: "POPPY", ink: ink.third, p: p, filled: true })] }));
12
+ } }));
13
+ }
14
+ /** Three short lines: what lives inside one vendor. */
15
+ function Bars3({ x, y, ink }) {
16
+ return (_jsxs("g", { fill: ink, opacity: "0.4", children: [_jsx("rect", { x: x, y: y, width: 56, height: 4, rx: "2" }), _jsx("rect", { x: x, y: y + 11, width: 44, height: 4, rx: "2" }), _jsx("rect", { x: x, y: y + 22, width: 50, height: 4, rx: "2" })] }));
17
+ }
18
+ export default SvgPainProtocols;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Pain 7, Nowhere safe to run code, answered by Sandboxes & Codemode.
3
+ *
4
+ * The pain: the agent's code with nowhere to go, turned away from the
5
+ * laptop that closes and from the servers security keeps shut. The answer:
6
+ * an isolated sandbox beside the data, the code running in it, the session
7
+ * kept, on the provider chosen.
8
+ */
9
+ import type { ColorPalette } from '@datalayer/primer-addons';
10
+ export declare function SvgPainSandboxes({ palette }?: {
11
+ palette?: ColorPalette;
12
+ }): import("react").JSX.Element;
13
+ export default SvgPainSandboxes;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Agent, Bars, Cross, Label, MONO, PainFrame, Panel, wash } from './PainFrame';
3
+ /** A database: a cylinder. */
4
+ function Cylinder({ x, y, w, h, ink, fill }) {
5
+ const ry = w * 0.2;
6
+ return (_jsxs("g", { stroke: ink, strokeWidth: "1.6", children: [_jsx("path", { d: `M${x} ${y} v${h} a${w / 2} ${ry} 0 0 0 ${w} 0 v${-h}`, fill: fill }), _jsx("ellipse", { cx: x + w / 2, cy: y, rx: w / 2, ry: ry, fill: fill }), _jsx("path", { d: `M${x} ${y + h / 2} a${w / 2} ${ry} 0 0 0 ${w} 0`, fill: "none", strokeOpacity: "0.5" })] }));
7
+ }
8
+ export function SvgPainSandboxes({ palette } = {}) {
9
+ return (_jsx(PainFrame, { number: 7, feature: "Sandboxes & Codemode", palette: palette, title: "Nowhere safe to run code", desc: "On the left, the agent's code has nowhere to run: not on a laptop that closes, not on servers security keeps shut. On the right, the code runs in an isolated sandbox beside the data, and the session is kept.", children: ({ p, ink, motion }) => (_jsxs("g", { children: [_jsx(Agent, { x: 84, y: 110, r: 18, ink: ink.muted, p: p, dim: true }), _jsx(Panel, { x: 116, y: 88, w: 86, h: 44, ink: ink.muted, p: p }), _jsx("text", { x: 159, y: 116, fontFamily: MONO, fontSize: "15", fontWeight: "700", fill: ink.muted, textAnchor: "middle", children: '</>' }), _jsx("path", { d: "M150 134 C140 180 112 200 104 236", fill: "none", stroke: ink.muted, strokeOpacity: "0.5", strokeWidth: "1.4", strokeDasharray: "3 4" }), _jsxs("g", { stroke: ink.muted, strokeOpacity: "0.7", strokeWidth: "1.4", fill: p.bgPanel, children: [_jsx("path", { d: "M64 296 l10 -14 h68 l10 14 Z", strokeLinejoin: "round" }), _jsx("path", { d: "M74 282 l12 -30 h50 l-12 30", fill: "none", strokeOpacity: "0.45", strokeDasharray: "3 3" })] }), _jsx("circle", { cx: 108, cy: 252, r: "11", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.4" }), _jsx(Cross, { x: 108, y: 252, s: 4, ink: ink.pain }), _jsx("path", { d: "M176 134 C200 180 256 186 270 214", fill: "none", stroke: ink.muted, strokeOpacity: "0.5", strokeWidth: "1.4", strokeDasharray: "3 4" }), [0, 1, 2].map((i) => (_jsxs("g", { children: [_jsx("rect", { x: 240, y: 226 + i * 26, width: 92, height: 22, rx: "4", fill: p.bgPanel, stroke: ink.muted, strokeOpacity: "0.6", strokeWidth: "1.2" }), _jsx("circle", { cx: 252, cy: 237 + i * 26, r: "2.4", fill: ink.muted, opacity: "0.6" }), _jsx("rect", { x: 264, y: 235 + i * 26, width: 40, height: 4, rx: "2", fill: ink.muted, opacity: "0.4" })] }, i))), _jsxs("g", { transform: "translate(332 222)", children: [_jsx("rect", { x: -12, y: -4, width: "24", height: "20", rx: "3", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.6" }), _jsx("path", { d: "M-7 -4 v-5 a7 7 0 0 1 14 0 v5", fill: "none", stroke: ink.pain, strokeWidth: "1.6" }), _jsx("circle", { cx: 0, cy: 6, r: "2.2", fill: ink.pain })] }), _jsx("rect", { x: 446, y: 92, width: 210, height: 216, rx: "16", fill: "none", stroke: ink.answer, strokeOpacity: "0.7", strokeWidth: "1.6", strokeDasharray: "6 5", className: motion.march }), _jsx("rect", { x: 446, y: 92, width: 210, height: 216, rx: "16", fill: ink.answer, fillOpacity: wash(p, 0.05) }), _jsx(Label, { x: 462, y: 84, ink: ink.answer, anchor: "start", size: 8.5, children: "ISOLATED" }), _jsx(Panel, { x: 466, y: 112, w: 170, h: 136, ink: ink.answer, p: p }), [0, 1, 2, 3].map((i) => (_jsxs("g", { children: [_jsx("text", { x: 478, y: 136 + i * 26, fontFamily: MONO, fontSize: "9", fill: i === 3 ? ink.answer : p.textMuted, children: i === 3 ? '▸' : `[${i + 1}]` }), i < 3 ? _jsx(Bars, { x: 502, y: 130 + i * 26, widths: [[96, 72, 112][i]], ink: [ink.second, ink.third, ink.fourth][i], h: 5, opacity: 0.75 }) : null] }, i))), _jsx("rect", { x: 496, y: 208, width: 2, height: 14, fill: ink.answer, className: motion.breathe }), _jsx(Agent, { x: 512, y: 276, r: 16, ink: ink.answer, p: p }), _jsx("path", { d: "M560 276 c0 -10 14 -10 20 0 c6 10 20 10 20 0 c0 -10 -14 -10 -20 0 c-6 10 -20 10 -20 0 Z", fill: "none", stroke: ink.second, strokeWidth: "1.6" }), _jsx("line", { x1: 656, y1: 200, x2: 686, y2: 200, stroke: ink.second, strokeOpacity: "0.7", strokeWidth: "1.6" }), _jsx("circle", { className: motion.travel, r: "3", fill: ink.second, style: { offsetPath: "path('M686 200 L640 200')" } }), _jsx(Cylinder, { x: 688, y: 166, w: 64, h: 70, ink: ink.second, fill: p.bgPanel }), _jsx(Label, { x: 720, y: 274, ink: ink.second, children: "DATA" })] })) }));
10
+ }
11
+ export default SvgPainSandboxes;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Pain 12, Blocked by security, answered by Security & Trust.
3
+ *
4
+ * The pain: the agent kept outside, a locked wall between it and the
5
+ * company's data. The answer: the agent let in with an identity of its own,
6
+ * scoped to the one object it may reach, its action approved, and every run
7
+ * written to an audit log.
8
+ */
9
+ import type { ColorPalette } from '@datalayer/primer-addons';
10
+ export declare function SvgPainSecurity({ palette }?: {
11
+ palette?: ColorPalette;
12
+ }): import("react").JSX.Element;
13
+ export default SvgPainSecurity;
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Agent, Check, Label, PainFrame, Panel, wash } from './PainFrame';
3
+ /** A database: a cylinder. */
4
+ function Cylinder({ x, y, w, h, ink, fill, dashed = false }) {
5
+ const ry = w * 0.2;
6
+ return (_jsxs("g", { stroke: ink, strokeWidth: "1.6", strokeDasharray: dashed ? '4 3' : undefined, children: [_jsx("path", { d: `M${x} ${y} v${h} a${w / 2} ${ry} 0 0 0 ${w} 0 v${-h}`, fill: fill }), _jsx("ellipse", { cx: x + w / 2, cy: y, rx: w / 2, ry: ry, fill: fill })] }));
7
+ }
8
+ /** A padlock, closed. */
9
+ function Padlock({ x, y, ink, fill, s = 1 }) {
10
+ return (_jsxs("g", { transform: `translate(${x} ${y}) scale(${s})`, children: [_jsx("path", { d: "M-9 -2 v-8 a9 9 0 0 1 18 0 v8", fill: "none", stroke: ink, strokeWidth: "2" }), _jsx("rect", { x: -14, y: -2, width: "28", height: "22", rx: "4", fill: fill, stroke: ink, strokeWidth: "2" }), _jsx("circle", { cx: 0, cy: 7, r: "2.6", fill: ink }), _jsx("rect", { x: -1, y: 8, width: "2", height: "6", fill: ink })] }));
11
+ }
12
+ export function SvgPainSecurity({ palette } = {}) {
13
+ return (_jsx(PainFrame, { number: 12, feature: "Security & Trust", palette: palette, title: "Blocked by security", desc: "On the left, the agent is kept outside a locked wall, away from the company's data. On the right, the agent is let in with its own identity, scoped to the one object it may reach, its action approved, and every run written to an audit log.", children: ({ p, ink, motion }) => {
14
+ const approveInk = ink.ask;
15
+ const reach = 'M532 176 C580 176 596 138 630 138 L702 138';
16
+ return (_jsxs("g", { children: [_jsx(Agent, { x: 92, y: 208, r: 26, ink: ink.muted, p: p, dim: true }), _jsx("path", { d: "M124 208 H186", stroke: ink.muted, strokeOpacity: "0.5", strokeWidth: "1.4", strokeDasharray: "3 4" }), Array.from({ length: 12 }, (_, r) => (_jsx("rect", { x: r % 2 ? 196 : 200, y: 76 + r * 22, width: r % 2 ? 36 : 28, height: "18", rx: "2", fill: ink.muted, fillOpacity: "0.16", stroke: ink.muted, strokeOpacity: "0.5", strokeWidth: "1" }, r))), _jsx(Padlock, { x: 214, y: 204, ink: ink.pain, fill: p.bgPanel, s: 1.15 }), _jsx(Cylinder, { x: 268, y: 150, w: 76, h: 90, ink: ink.muted, fill: p.bgPanel, dashed: true }), [0, 1, 2].map((i) => (_jsx("rect", { x: 284, y: 180 + i * 18, width: 44, height: 6, rx: "3", fill: ink.muted, opacity: "0.35" }, i))), _jsx("rect", { x: 444, y: 96, width: 130, height: 176, rx: "14", fill: ink.answer, fillOpacity: wash(p, 0.05) }), _jsx("rect", { x: 444, y: 96, width: 130, height: 176, rx: "14", fill: "none", stroke: ink.answer, strokeOpacity: "0.7", strokeWidth: "1.6", strokeDasharray: "6 5", className: motion.march }), _jsx(Label, { x: 458, y: 88, ink: ink.answer, anchor: "start", size: 8.5, children: "SCOPE" }), _jsx(Agent, { x: 506, y: 176, r: 26, ink: ink.answer, p: p }), _jsxs("g", { transform: "translate(528 206)", children: [_jsx("rect", { x: -10, y: -7, width: "22", height: "15", rx: "3", fill: p.bgPanel, stroke: ink.second, strokeWidth: "1.4" }), _jsx("circle", { cx: -3, cy: 0.5, r: "2.6", fill: ink.second }), _jsx("rect", { x: 2, y: -2, width: "7", height: "2", rx: "1", fill: ink.second }), _jsx("rect", { x: 2, y: 2, width: "5", height: "2", rx: "1", fill: ink.second })] }), _jsx("path", { d: reach, fill: "none", stroke: ink.answer, strokeOpacity: "0.65", strokeWidth: "1.6" }), _jsx("circle", { className: motion.travel, r: "3.2", fill: ink.answer, style: { offsetPath: `path('${reach}')` } }), _jsx("rect", { x: 651, y: 129, width: "18", height: "18", fill: p.bgPanel, stroke: approveInk, strokeWidth: "1.6", transform: "rotate(45 660 138)" }), _jsx(Check, { x: 660, y: 138, s: 4, ink: approveInk, width: 1.6 }), _jsx(Panel, { x: 690, y: 92, w: 76, h: 118, ink: ink.second, p: p }), [0, 1, 2, 3].map((i) => (_jsx("rect", { x: 702, y: 104 + i * 25, width: 52, height: 17, rx: "3", fill: i === 1 ? ink.answer : p.textMuted, fillOpacity: i === 1 ? 0.3 : 0.12, stroke: i === 1 ? ink.answer : 'none', strokeWidth: "1.4" }, i))), _jsx(Panel, { x: 600, y: 238, w: 166, h: 98, ink: ink.third, p: p }), _jsx(Label, { x: 612, y: 256, ink: ink.third, anchor: "start", size: 8.5, children: "AUDIT" }), [0, 1, 2].map((i) => (_jsxs("g", { children: [_jsx(Check, { x: 620, y: 276 + i * 18, s: 4, ink: ink.third, width: 1.6 }), _jsx("rect", { x: 632, y: 273 + i * 18, width: [96, 80, 110][i], height: 5, rx: "2.5", fill: p.textMuted, opacity: "0.5" })] }, i))), _jsx("path", { d: "M506 272 V300 H600", fill: "none", stroke: ink.third, strokeOpacity: "0.5", strokeWidth: "1.4", strokeDasharray: "3 4" })] }));
17
+ } }));
18
+ }
19
+ export default SvgPainSecurity;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Pain 1, An agent takes months to build, answered by the Studio.
3
+ *
4
+ * The pain: a year of months on a calendar, nine of them gone, and the agent
5
+ * at the end of the road still only an outline. The answer: one spec, and
6
+ * from it an agent at work, tested, priced and shipped.
7
+ */
8
+ import type { ColorPalette } from '@datalayer/primer-addons';
9
+ export declare function SvgPainStudio({ palette }?: {
10
+ palette?: ColorPalette;
11
+ }): import("react").JSX.Element;
12
+ export default SvgPainStudio;
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Agent, Bars, Check, Chip, Label, PainFrame, Panel, SANS } from './PainFrame';
3
+ export function SvgPainStudio({ palette } = {}) {
4
+ return (_jsx(PainFrame, { number: 1, feature: "The Studio", palette: palette, title: "An agent takes months to build", desc: "On the left, months go by on a calendar while the agent is still an outline. On the right, the Studio turns one spec into an agent at work, tested, priced and shipped.", children: ({ p, ink, motion }) => (_jsxs("g", { children: [_jsx(Panel, { x: 52, y: 78, w: 196, h: 150, ink: ink.muted, p: p }), _jsx("path", { d: "M52 86 a8 8 0 0 1 8 -8 h180 a8 8 0 0 1 8 8 v12 h-196 Z", fill: p.bgAlt }), [70, 228].map((x) => (_jsx("rect", { x: x - 2, y: 70, width: "4", height: "16", rx: "2", fill: ink.muted, opacity: "0.6" }, x))), Array.from({ length: 12 }, (_, i) => {
5
+ const cx = 64 + (i % 4) * 46;
6
+ const cy = 108 + Math.floor(i / 4) * 38;
7
+ const gone = i < 9;
8
+ return (_jsxs("g", { children: [_jsx("rect", { x: cx, y: cy, width: "36", height: "28", rx: "4", fill: gone ? ink.muted : 'none', fillOpacity: gone ? 0.16 : 0, stroke: ink.muted, strokeOpacity: "0.45", strokeWidth: "1" }), gone ? (_jsx("line", { x1: cx + 8, y1: cy + 22, x2: cx + 28, y2: cy + 6, stroke: ink.pain, strokeOpacity: "0.7", strokeWidth: "1.4", strokeLinecap: "round" })) : null] }, i));
9
+ }), _jsx(Label, { x: 150, y: 250, ink: ink.pain, children: "MONTHS" }), _jsx("path", { d: "M150 262 C150 300 90 290 96 320 C102 348 220 340 250 316 C276 296 270 282 294 282", fill: "none", stroke: ink.muted, strokeOpacity: "0.55", strokeWidth: "1.4", strokeDasharray: "3 5", strokeLinecap: "round" }), _jsx(Agent, { x: 322, y: 282, r: 26, ink: ink.muted, p: p, dim: true }), _jsx("text", { x: 322, y: 244, fontFamily: SANS, fontSize: "20", fontWeight: "700", fill: ink.pain, textAnchor: "middle", children: "?" }), _jsx(Panel, { x: 444, y: 92, w: 132, h: 168, ink: ink.answer, p: p }), _jsx("path", { d: "M444 100 a8 8 0 0 1 8 -8 h116 a8 8 0 0 1 8 8 v12 h-132 Z", fill: p.bgAlt }), [ink.answer, ink.second, ink.third].map((c, i) => (_jsx("circle", { cx: 456 + i * 10, cy: 102, r: "2.6", fill: c, opacity: "0.8" }, i))), _jsx(Label, { x: 566, y: 105, ink: p.textMuted, anchor: "end", size: 8, children: "SPEC" }), _jsx(Bars, { x: 458, y: 126, widths: [52, 70], ink: ink.answer, gap: 12, opacity: 0.75 }), _jsx(Bars, { x: 472, y: 150, widths: [64, 48, 80], ink: ink.second, gap: 12, opacity: 0.75 }), _jsx(Bars, { x: 458, y: 190, widths: [44], ink: ink.answer, opacity: 0.75 }), _jsx(Bars, { x: 472, y: 202, widths: [72, 56, 38], ink: ink.third, gap: 12, opacity: 0.75 }), _jsx("path", { d: "M578 176 C620 176 628 160 660 160", fill: "none", stroke: ink.answer, strokeOpacity: "0.6", strokeWidth: "1.6", strokeDasharray: "5 4", className: motion.march }), _jsx("circle", { className: motion.travel, r: "3.4", fill: ink.answer, style: { offsetPath: "path('M578 176 C620 176 628 160 660 160')" } }), _jsx(Agent, { x: 694, y: 160, r: 32, ink: ink.answer, p: p }), [
10
+ { label: 'TEST', c: ink.answer, x: 474 },
11
+ { label: 'PRICE', c: ink.second, x: 572 },
12
+ { label: 'SHIP', c: ink.third, x: 670 },
13
+ ].map((s, i) => (_jsxs("g", { children: [_jsx(Chip, { x: s.x, y: 300, w: 78, label: s.label, ink: s.c, p: p, filled: true }), _jsx("circle", { cx: s.x + 39, cy: 278, r: "9", fill: p.bgPanel, stroke: s.c, strokeWidth: "1.4" }), _jsx(Check, { x: s.x + 39, y: 278, s: 4.2, ink: s.c, width: 1.8 }), i < 2 ? _jsx("line", { x1: s.x + 50, y1: 278, x2: s.x + 87, y2: 278, stroke: s.c, strokeOpacity: "0.5", strokeWidth: "1.2" }) : null] }, s.label))), _jsx("line", { x1: 694, y1: 196, x2: 709, y2: 268, stroke: ink.answer, strokeOpacity: "0.35", strokeWidth: "1.2", strokeDasharray: "2 3" })] })) }));
14
+ }
15
+ export default SvgPainStudio;
@@ -0,0 +1,36 @@
1
+ /**
2
+ * The twelve customer pains, one drawing each, in the order the decks and the
3
+ * Features menu of datalayer.ai read them: the pain on the left, the answer
4
+ * the feature brings on the right. They illustrate the blog posts and the
5
+ * feature pages; the slug is the feature page's, at
6
+ * `https://datalayer.ai/features/<slug>`.
7
+ */
8
+ import type { ComponentType } from 'react';
9
+ import type { ColorPalette } from '@datalayer/primer-addons';
10
+ import { SvgPainStudio } from './SvgPainStudio';
11
+ import { SvgPainAgentTeams } from './SvgPainAgentTeams';
12
+ import { SvgPainChannels } from './SvgPainChannels';
13
+ import { SvgPainAgenticUi } from './SvgPainAgenticUi';
14
+ import { SvgPainObservability } from './SvgPainObservability';
15
+ import { SvgPainPlugins } from './SvgPainPlugins';
16
+ import { SvgPainSandboxes } from './SvgPainSandboxes';
17
+ import { SvgPainBenchmarks } from './SvgPainBenchmarks';
18
+ import { SvgPainLibrary } from './SvgPainLibrary';
19
+ import { SvgPainProtocols } from './SvgPainProtocols';
20
+ import { SvgPainPolicies } from './SvgPainPolicies';
21
+ import { SvgPainSecurity } from './SvgPainSecurity';
22
+ export { SvgPainStudio, SvgPainAgentTeams, SvgPainChannels, SvgPainAgenticUi, SvgPainObservability, SvgPainPlugins, SvgPainSandboxes, SvgPainBenchmarks, SvgPainLibrary, SvgPainProtocols, SvgPainPolicies, SvgPainSecurity, };
23
+ export type PainSvg = {
24
+ /** Its place among the twelve, 1 to 12. */
25
+ id: number;
26
+ /** The feature page's slug on datalayer.ai. */
27
+ slug: string;
28
+ /** The pain, as the feature page names it. */
29
+ pain: string;
30
+ /** The feature that answers it. */
31
+ feature: string;
32
+ Component: ComponentType<{
33
+ palette?: ColorPalette;
34
+ }>;
35
+ };
36
+ export declare const PAIN_SVGS: readonly PainSvg[];
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) 2022-2026 Datalayer, Inc.
3
+ *
4
+ * CC BY 4.0 License
5
+ */
6
+ import { SvgPainStudio } from './SvgPainStudio';
7
+ import { SvgPainAgentTeams } from './SvgPainAgentTeams';
8
+ import { SvgPainChannels } from './SvgPainChannels';
9
+ import { SvgPainAgenticUi } from './SvgPainAgenticUi';
10
+ import { SvgPainObservability } from './SvgPainObservability';
11
+ import { SvgPainPlugins } from './SvgPainPlugins';
12
+ import { SvgPainSandboxes } from './SvgPainSandboxes';
13
+ import { SvgPainBenchmarks } from './SvgPainBenchmarks';
14
+ import { SvgPainLibrary } from './SvgPainLibrary';
15
+ import { SvgPainProtocols } from './SvgPainProtocols';
16
+ import { SvgPainPolicies } from './SvgPainPolicies';
17
+ import { SvgPainSecurity } from './SvgPainSecurity';
18
+ export { SvgPainStudio, SvgPainAgentTeams, SvgPainChannels, SvgPainAgenticUi, SvgPainObservability, SvgPainPlugins, SvgPainSandboxes, SvgPainBenchmarks, SvgPainLibrary, SvgPainProtocols, SvgPainPolicies, SvgPainSecurity, };
19
+ export const PAIN_SVGS = [
20
+ { id: 1, slug: 'studio', pain: 'An agent takes months to build', feature: 'The Studio', Component: SvgPainStudio },
21
+ { id: 2, slug: 'agent-teams', pain: 'The work stops when the chat does', feature: 'Agent Teams', Component: SvgPainAgentTeams },
22
+ { id: 3, slug: 'channels', pain: 'One more bot for every channel', feature: 'Channels', Component: SvgPainChannels },
23
+ { id: 4, slug: 'agentic-ui', pain: 'Answers nobody can act on', feature: 'Agentic UI', Component: SvgPainAgenticUi },
24
+ { id: 5, slug: 'observability', pain: 'Nobody sees what the agent did', feature: 'Observability', Component: SvgPainObservability },
25
+ { id: 6, slug: 'plugins', pain: 'The one step the product lacks', feature: 'Plugins', Component: SvgPainPlugins },
26
+ { id: 7, slug: 'codemode', pain: 'Nowhere safe to run code', feature: 'Sandboxes & Codemode', Component: SvgPainSandboxes },
27
+ { id: 8, slug: 'benchmarks', pain: 'Better or worse? Nobody knows', feature: 'Benchmarks & Evals', Component: SvgPainBenchmarks },
28
+ { id: 9, slug: 'library', pain: 'A result nobody can check', feature: 'Library & Artifacts', Component: SvgPainLibrary },
29
+ { id: 10, slug: 'protocols', pain: 'Agents that cannot work together', feature: 'Open Protocols', Component: SvgPainProtocols },
30
+ { id: 11, slug: 'policies', pain: 'Rules nobody enforces', feature: 'Policies & Rules', Component: SvgPainPolicies },
31
+ { id: 12, slug: 'trust', pain: 'Blocked by security', feature: 'Security & Trust', Component: SvgPainSecurity },
32
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datalayer/design",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "license": "CC-BY-4.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -25,10 +25,11 @@
25
25
  "landing:app": "npm run copy:svg-assets && tsc --watch",
26
26
  "preview": "vite preview",
27
27
  "start": "vite",
28
+ "test": "vitest run",
28
29
  "watch:lib": "npm run copy:svg-assets && tsc -w"
29
30
  },
30
31
  "dependencies": {
31
- "@datalayer/icons-react": "^1.1.0",
32
+ "@datalayer/icons-react": "^1.1.4",
32
33
  "@datalayer/primer-addons": "^1.0.48",
33
34
  "@primer/css": "^21.5.1",
34
35
  "@primer/octicons-react": "^19.42.0",
@@ -55,6 +56,7 @@
55
56
  "rimraf": "^6.1.3",
56
57
  "svgo": "^1.3.2",
57
58
  "typescript": "5.9.3",
59
+ "vitest": "^3.2.7",
58
60
  "vite": "7.3.6",
59
61
  "vite-plugin-svgr": "^4.3.0"
60
62
  }