@repobit/dex-system-design 0.24.3 → 0.24.5
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/CHANGELOG.md +15 -0
- package/package.json +4 -4
- package/src/components/accordion/accordion-bg.css.js +6 -1
- package/src/components/accordion/accordion-bg.js +3 -1
- package/src/components/accordion/accordion-bg.stories.js +49 -0
- package/src/components/accordion/accordion.css.js +40 -0
- package/src/components/accordion/accordion.js +31 -0
- package/src/components/accordion/accordion.stories.js +147 -4
- package/src/components/agent-endpoints/agent-endpoints.css.js +92 -0
- package/src/components/agent-endpoints/agent-endpoints.js +86 -0
- package/src/components/agent-endpoints/agent-endpoints.stories.js +148 -0
- package/src/components/ai-guardian-demo.stories.js +669 -0
- package/src/components/awards/awards-flex.css.js +169 -0
- package/src/components/awards/awards-flex.js +269 -0
- package/src/components/awards/awards-flex.stories.js +657 -0
- package/src/components/bento-grid/bento-grid.css.js +57 -0
- package/src/components/bento-grid/bento-grid.js +186 -0
- package/src/components/bento-grid/bento-grid.stories.js +440 -0
- package/src/components/bento-grid/bento-item.css.js +79 -0
- package/src/components/bento-grid/bento-item.js +54 -0
- package/src/components/button/button.css.js +26 -0
- package/src/components/button/button.js +8 -0
- package/src/components/button/button.stories.js +12 -0
- package/src/components/comparison-panel/comparison-panel.css.js +104 -0
- package/src/components/comparison-panel/comparison-panel.js +100 -0
- package/src/components/comparison-panel/comparison-panel.stories.js +223 -0
- package/src/components/compatibility-table/compatibility-table.css.js +243 -0
- package/src/components/compatibility-table/compatibility-table.js +123 -0
- package/src/components/compatibility-table/compatibility-table.stories.js +189 -0
- package/src/components/cta-banner/cta-banner.css.js +60 -0
- package/src/components/cta-banner/cta-banner.js +63 -0
- package/src/components/dropdown/dropdown.css.js +1 -1
- package/src/components/footer/footer.css.js +0 -1
- package/src/components/header/header-code.css.js +125 -0
- package/src/components/header/header-code.js +69 -0
- package/src/components/header/header-code.stories.js +226 -0
- package/src/components/heading/heading.css.js +3 -0
- package/src/components/icons/bd-ai-icon.js +27 -0
- package/src/components/list/list-item/list-item.css.js +3 -3
- package/src/components/list/list-item/list-item.js +10 -4
- package/src/components/overview/overview.css.js +121 -0
- package/src/components/overview/overview.js +63 -0
- package/src/components/overview/overview.stories.js +193 -0
- package/src/components/page-switcher/page-switcher.css.js +100 -0
- package/src/components/page-switcher/page-switcher.js +42 -0
- package/src/components/paragraph/paragraph.js +7 -3
- package/src/components/process-steps/process-steps.css.js +95 -0
- package/src/components/process-steps/process-steps.js +72 -0
- package/src/components/process-steps/process-steps.stories.js +144 -0
- package/src/components/quick-answer/quick-answer.css.js +67 -0
- package/src/components/quick-answer/quick-answer.js +59 -0
- package/src/components/quick-answer/quick-answer.stories.js +160 -0
- package/src/components/terminal/terminal-cursor.js +49 -0
- package/src/components/terminal/terminal-message.css.js +161 -0
- package/src/components/terminal/terminal-message.js +169 -0
- package/src/components/terminal/terminal-message.stories.js +321 -0
- package/src/components/trust-panel/trust-panel.css.js +167 -0
- package/src/components/trust-panel/trust-panel.js +116 -0
- package/src/components/trust-panel/trust-panel.stories.js +234 -0
- package/src/tokens/tokens.css +1 -1
- package/src/components/tabsComponent/tabsComponent.css.js +0 -267
- package/src/components/tabsComponent/tabsComponent.js +0 -193
- package/src/components/tabsComponent/tabsComponent.stories.js +0 -134
- package/src/components/tabsComponentFamily/tabsComponentFamily.css.js +0 -181
- package/src/components/tabsComponentFamily/tabsComponentFamily.js +0 -180
- package/src/components/tabsComponentFamily/tabsComponentFamily.stories.js +0 -319
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import "./agent-endpoints.js";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title : "Components/Agent Endpoints",
|
|
6
|
+
component : "bd-agent-endpoints",
|
|
7
|
+
tags : ["autodocs"],
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: "padded",
|
|
10
|
+
docs : {
|
|
11
|
+
description: {
|
|
12
|
+
component: `
|
|
13
|
+
**AgentEndpoints** shows an eyebrow/title/description block followed by two rows of
|
|
14
|
+
pill-shaped links: machine-readable endpoint URLs (\`/llms.txt\`, \`/sitemap.xml\`,
|
|
15
|
+
etc.) and "Ask <assistant>" quick links (ChatGPT, Perplexity, Gemini, Copilot).
|
|
16
|
+
|
|
17
|
+
Both rows share the same \`button--outline-white\` class — a reusable white pill with
|
|
18
|
+
a thin border — so the visual style stays consistent across any future use of that
|
|
19
|
+
class elsewhere.
|
|
20
|
+
|
|
21
|
+
### Usage
|
|
22
|
+
\`\`\`html
|
|
23
|
+
<bd-agent-endpoints
|
|
24
|
+
eyebrow="For AI agents and assistants"
|
|
25
|
+
title="Machine-readable endpoints"
|
|
26
|
+
description="This site is built to be read by AI assistants, browsers, and agents. Structured, curated context is available at:"
|
|
27
|
+
.endpoints=\${[
|
|
28
|
+
{ label: "/llms.txt", href: "/llms.txt" },
|
|
29
|
+
{ label: "/llms-full.txt", href: "/llms-full.txt" },
|
|
30
|
+
{ label: "/index.md", href: "/index.md" },
|
|
31
|
+
{ label: "/sitemap.xml", href: "/sitemap.xml" },
|
|
32
|
+
{ label: "/robots.txt", href: "/robots.txt" }
|
|
33
|
+
]}
|
|
34
|
+
.assistants=\${[
|
|
35
|
+
{ label: "Ask ChatGPT", href: "https://chatgpt.com/?q=...", icon: "/openai-brands-solid-full.svg" },
|
|
36
|
+
{ label: "Ask Perplexity", href: "https://www.perplexity.ai/search?q=...", icon: "/perplexity-icon-dark.svg" }
|
|
37
|
+
]}
|
|
38
|
+
></bd-agent-endpoints>
|
|
39
|
+
\`\`\`
|
|
40
|
+
|
|
41
|
+
### Attributes
|
|
42
|
+
| Attribute | Type | Default | Description |
|
|
43
|
+
|------------------|--------|---------|--------------------------------------------------------------|
|
|
44
|
+
| \`eyebrow\` | String | \`""\` | Small blue label above the title |
|
|
45
|
+
| \`title\` | String | \`""\` | Heading (or the \`title\` slot) |
|
|
46
|
+
| \`description\` | String | \`""\` | Paragraph under the title (or the \`description\` slot) |
|
|
47
|
+
| \`endpoints\` | Array | \`[]\` | \`{ label, href }\` — rendered with a leading arrow, monospace label |
|
|
48
|
+
| \`assistants\` | Array | \`[]\` | \`{ label, href, icon }\` — rendered with a leading icon image |
|
|
49
|
+
|
|
50
|
+
### Slots
|
|
51
|
+
| Slot | Description |
|
|
52
|
+
|-------------------|------------------------------------------------------------|
|
|
53
|
+
| \`eyebrow\` | Overrides the \`eyebrow\` attribute |
|
|
54
|
+
| \`title\` | Overrides the \`title\` attribute |
|
|
55
|
+
| \`description\` | Overrides the \`description\` attribute |
|
|
56
|
+
| \`rows\` | Extra freeform pill rows appended after the two generated ones |
|
|
57
|
+
`
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
const render = (args) => html`
|
|
64
|
+
<bd-agent-endpoints
|
|
65
|
+
eyebrow=${args.eyebrow}
|
|
66
|
+
title=${args.title}
|
|
67
|
+
description=${args.description}
|
|
68
|
+
.endpoints=${args.endpoints}
|
|
69
|
+
.assistants=${args.assistants}
|
|
70
|
+
></bd-agent-endpoints>
|
|
71
|
+
`;
|
|
72
|
+
|
|
73
|
+
export const Default = {
|
|
74
|
+
name: "Default — Machine-Readable Endpoints",
|
|
75
|
+
args: {
|
|
76
|
+
eyebrow : "For AI agents and assistants",
|
|
77
|
+
title : "Machine-readable endpoints",
|
|
78
|
+
description: "This site is built to be read by AI assistants, browsers, and agents. Structured, curated context is available at:",
|
|
79
|
+
endpoints : [
|
|
80
|
+
{ label: "/llms.txt", href: "/llms.txt" },
|
|
81
|
+
{ label: "/llms-full.txt", href: "/llms-full.txt" },
|
|
82
|
+
{ label: "/index.md", href: "/index.md" },
|
|
83
|
+
{ label: "/sitemap.xml", href: "/sitemap.xml" },
|
|
84
|
+
{ label: "/robots.txt", href: "/robots.txt" }
|
|
85
|
+
],
|
|
86
|
+
assistants: [
|
|
87
|
+
{ label: "Ask ChatGPT", href: "https://chatgpt.com/?q=Summarize%20https%3A%2F%2Fai.bitdefender.com%2F", icon: "/openai-brands-solid-full.svg" },
|
|
88
|
+
{ label: "Ask Perplexity", href: "https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fai.bitdefender.com%2F", icon: "/perplexity-icon-dark.svg" },
|
|
89
|
+
{ label: "Ask Gemini", href: "https://gemini.google.com/app?q=Summarize%20https%3A%2F%2Fai.bitdefender.com%2F", icon: "/Google_Gemini_icon_2025.svg" },
|
|
90
|
+
{ label: "Ask Copilot", href: "https://copilot.microsoft.com/?q=Summarize%20https%3A%2F%2Fai.bitdefender.com%2F", icon: "/microsoft-copilot.svg" }
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
render,
|
|
94
|
+
parameters: {
|
|
95
|
+
docs: {
|
|
96
|
+
description: {
|
|
97
|
+
story: "Matches the reference design exactly: eyebrow, title, description, a row of 5 endpoint pills, and a row of 4 assistant pills, all using button--outline-white."
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export const EndpointsOnly = {
|
|
104
|
+
name: "Endpoints Only",
|
|
105
|
+
args: {
|
|
106
|
+
eyebrow : "For AI agents and assistants",
|
|
107
|
+
title : "Machine-readable endpoints",
|
|
108
|
+
description: "",
|
|
109
|
+
endpoints : [
|
|
110
|
+
{ label: "/llms.txt", href: "/llms.txt" },
|
|
111
|
+
{ label: "/sitemap.xml", href: "/sitemap.xml" }
|
|
112
|
+
],
|
|
113
|
+
assistants: []
|
|
114
|
+
},
|
|
115
|
+
render,
|
|
116
|
+
parameters: {
|
|
117
|
+
docs: {
|
|
118
|
+
description: {
|
|
119
|
+
story: "assistants left empty — only the endpoints row renders."
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
export const Playground = {
|
|
126
|
+
name: "Playground",
|
|
127
|
+
args: {
|
|
128
|
+
eyebrow : "For AI agents and assistants",
|
|
129
|
+
title : "Machine-readable endpoints",
|
|
130
|
+
description: "This site is built to be read by AI assistants, browsers, and agents.",
|
|
131
|
+
endpoints : [
|
|
132
|
+
{ label: "/llms.txt", href: "/llms.txt" },
|
|
133
|
+
{ label: "/sitemap.xml", href: "/sitemap.xml" },
|
|
134
|
+
{ label: "/robots.txt", href: "/robots.txt" }
|
|
135
|
+
],
|
|
136
|
+
assistants: [
|
|
137
|
+
{ label: "Ask ChatGPT", href: "https://chatgpt.com/?q=test", icon: "/openai-brands-solid-full.svg" }
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
render,
|
|
141
|
+
parameters: {
|
|
142
|
+
docs: {
|
|
143
|
+
description: {
|
|
144
|
+
story: "Fully interactive — use the Controls panel to edit eyebrow, title, description, and both pill arrays live."
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
};
|