@mdxui/named 6.4.0 → 8.0.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.
@@ -1,7 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { DialectViewProps } from '@mdxui/dialect';
3
- import { IconType } from 'react-icons';
4
- import { W as WorkflowItem } from '../problem-B2-XszSB.js';
5
3
 
6
4
  /** Single FAQ item. */
7
5
  type NamedAgentFaqItem = {
@@ -27,19 +25,6 @@ type NamedAgentHero = {
27
25
  marqueeTitle?: string;
28
26
  marqueeImages?: string[];
29
27
  };
30
- /** Problem — workflow chips + dual-line headline. `icon` is a free-form hint
31
- * string (the wire can't carry a React component); the mapper resolves it to
32
- * a react-icons glyph, falling back to a neutral dot. */
33
- type NamedAgentWorkflow = {
34
- icon: string;
35
- label: string;
36
- };
37
- type NamedAgentProblem = {
38
- heading: string;
39
- workflows: NamedAgentWorkflow[];
40
- subheading: string;
41
- subheadingHighlight: string;
42
- };
43
28
  /** Features — numbered cards (title + description + bullet items + code window). */
44
29
  type NamedAgentFeature = {
45
30
  title: string;
@@ -48,6 +33,10 @@ type NamedAgentFeature = {
48
33
  text: string;
49
34
  }[];
50
35
  code: string;
36
+ /** Shiki language id for the code window. Optional — the persona DSL is
37
+ * valid TypeScript, which is the default; the cascade may emit any
38
+ * language per agent (python, sql, yaml, …). */
39
+ language?: string;
51
40
  badge: string;
52
41
  };
53
42
  type NamedAgentFeatures = {
@@ -55,7 +44,7 @@ type NamedAgentFeatures = {
55
44
  description: string;
56
45
  features: NamedAgentFeature[];
57
46
  };
58
- /** Pricing — Pricing1 (single tier) vs Pricing2 (multi-tier) fork, discriminated
47
+ /** Pricing — single-tier vs multi-tier fork, discriminated
59
48
  * on `variant` so both are expressible on one wire field. */
60
49
  type NamedAgentPricingFeature = {
61
50
  text: string;
@@ -107,54 +96,21 @@ type NamedAgentCta = {
107
96
  subheading?: string;
108
97
  buttons: NamedAgentCtaButton[];
109
98
  };
110
- /** Integration — animated-beam two-node motif. `content` is a free-form string
111
- * (icon name / image src / label); `type` tells the component how to render it. */
112
- type NamedAgentIntegrationNode = {
113
- type: 'image' | 'icon' | 'component';
114
- content: string;
115
- alt?: string;
116
- };
117
- type NamedAgentIntegration = {
118
- title: string;
119
- description: string;
120
- buttonText?: string;
121
- buttonHref?: string;
122
- leftNode: NamedAgentIntegrationNode;
123
- rightNode: NamedAgentIntegrationNode;
124
- };
125
- /** Contact — presentation-only form (no submit handler on the wire). */
126
- type NamedAgentContactField = {
127
- id: string;
128
- label: string;
129
- type: 'text' | 'email' | 'tel' | 'textarea';
130
- placeholder?: string;
131
- required?: boolean;
132
- };
133
- type NamedAgentContact = {
134
- heading: string;
135
- subheading?: string;
136
- fields: NamedAgentContactField[];
137
- submitButtonText: string;
138
- };
139
- /** Full named-agent landing content. */
99
+ /** Full named-agent landing content the trimmed 5-section design
100
+ * (Hero Features Pricing FAQ CTA). */
140
101
  type NamedAgentLandingContent = {
141
102
  hero: NamedAgentHero;
142
- problem: NamedAgentProblem;
143
103
  features: NamedAgentFeatures;
144
- integration?: NamedAgentIntegration;
145
104
  pricing: NamedAgentPricing;
146
105
  faq: NamedAgentFaq;
147
106
  cta: NamedAgentCta;
148
- contact?: NamedAgentContact;
149
107
  };
150
108
 
151
- type NamedAgentViewProps = DialectViewProps<NamedAgentLandingContent>;
152
- declare function NamedAgentView({ content, theme, mode, brandName, hostname }: NamedAgentViewProps): react_jsx_runtime.JSX.Element;
153
-
154
- /** Resolve one workflow icon hint to a react-icons component. */
155
- declare function resolveWorkflowIcon(hint: string): IconType;
156
- /** Map wire workflows ({ icon: hint, label }) named Problem `WorkflowItem[]`
157
- * ({ icon: IconType, label }). */
158
- declare function mapWorkflows(workflows: NamedAgentWorkflow[]): WorkflowItem[];
109
+ type NamedAgentTemplate = 'studio' | 'executive';
110
+ type NamedAgentViewProps = DialectViewProps<NamedAgentLandingContent> & {
111
+ /** Design language for the page. Defaults to the named-agents baseline. */
112
+ template?: NamedAgentTemplate;
113
+ };
114
+ declare function NamedAgentView({ content, theme, mode, brandName, hostname, template }: NamedAgentViewProps): react_jsx_runtime.JSX.Element;
159
115
 
160
- export { type NamedAgentContact, type NamedAgentContactField, type NamedAgentCta, type NamedAgentCtaButton, type NamedAgentFaq, type NamedAgentFaqItem, type NamedAgentFeature, type NamedAgentFeatures, type NamedAgentHero, type NamedAgentIntegration, type NamedAgentIntegrationNode, type NamedAgentLandingContent, type NamedAgentPricing, type NamedAgentPricingFeature, type NamedAgentPricingTier, type NamedAgentProblem, NamedAgentView, type NamedAgentViewProps, type NamedAgentWorkflow, NamedAgentView as default, mapWorkflows, resolveWorkflowIcon };
116
+ export { type NamedAgentCta, type NamedAgentCtaButton, type NamedAgentFaq, type NamedAgentFaqItem, type NamedAgentFeature, type NamedAgentFeatures, type NamedAgentHero, type NamedAgentLandingContent, type NamedAgentPricing, type NamedAgentPricingFeature, type NamedAgentPricingTier, type NamedAgentTemplate, NamedAgentView, type NamedAgentViewProps, NamedAgentView as default };