@mdxui/services 0.1.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/README.md +58 -0
- package/dist/components/index.d.ts +74 -0
- package/dist/components/index.js +615 -0
- package/dist/components/index.js.map +1 -0
- package/dist/index-D2nWoFGI.d.ts +1973 -0
- package/dist/index.d.ts +72 -0
- package/dist/index.js +1322 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/index.d.ts +4 -0
- package/dist/schemas/index.js +591 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/shared/index.d.ts +54 -0
- package/dist/shared/index.js +63 -0
- package/dist/shared/index.js.map +1 -0
- package/package.json +109 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { M as MastheadProps, H as HeroPropsExtended, P as ProblemProps, W as WhatYouGetProps, a as HowItWorksProps, D as DefensibilityPropsFromSchema, b as PricingPropsExtended, c as Pricing, F as FaqPropsExtended, d as FinalCtaProps, S as SiteFooterProps } from './index-D2nWoFGI.js';
|
|
3
|
+
export { i as schemas } from './index-D2nWoFGI.js';
|
|
4
|
+
export { Defensibility, DefensibilityColumn, DefensibilityProps, Faq, FaqItem, FaqProps, FinalCta, FinalCtaProps, Footer, FooterLink, FooterProps, Hero, HeroAction, HeroProps, HeroSplit, HeroStacked, HowItWorks, HowItWorksProps, HowItWorksStep, Masthead, MastheadProps, PriceTier, Pricing, PricingComponentProps, PricingData, PricingProps, PrimaryAction, Problem, ProblemItem, ProblemProps, Pricing as ReportPricing, ScrollHeader, ScrollHeaderProps, SecondaryAction, Hero as ServiceHero, WhatYouGet, WhatYouGetItem, WhatYouGetProps } from './components/index.js';
|
|
5
|
+
export { ScrollReveal, ScrollRevealProps, SectionEyebrow, SvgInline, SvgInlineProps } from './shared/index.js';
|
|
6
|
+
import { ZodError, ZodSchema } from 'zod';
|
|
7
|
+
import 'zod/v4/core';
|
|
8
|
+
import 'react';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The validated content bag for a Services landing page — the union of every
|
|
12
|
+
* section's prop slice. Carriage's `deriveCatalog(svc)` output maps onto this
|
|
13
|
+
* shape; a generated Startup's mapper produces the same bag from the wire type.
|
|
14
|
+
*/
|
|
15
|
+
interface ServicesLandingContent {
|
|
16
|
+
/** Top masthead + the scroll-revealed sticky header (same props). */
|
|
17
|
+
masthead: MastheadProps;
|
|
18
|
+
/** Pixels of scrollY before the sticky ScrollHeader reveals. Default 480. */
|
|
19
|
+
scrollHeaderThreshold?: number;
|
|
20
|
+
hero: HeroPropsExtended;
|
|
21
|
+
/** When true, the hero renders its illustration slot; default true. */
|
|
22
|
+
heroShowGlyph?: boolean;
|
|
23
|
+
problem?: ProblemProps;
|
|
24
|
+
whatYouGet?: WhatYouGetProps;
|
|
25
|
+
howItWorks?: HowItWorksProps;
|
|
26
|
+
defensibility?: DefensibilityPropsFromSchema;
|
|
27
|
+
/** Tiered or unit pricing — the discriminated `Pricing` union, or the legacy
|
|
28
|
+
* tiered-only `PricingPropsExtended` shape. */
|
|
29
|
+
pricing?: PricingPropsExtended | Pricing;
|
|
30
|
+
faq?: FaqPropsExtended;
|
|
31
|
+
finalCta: FinalCtaProps;
|
|
32
|
+
footer: SiteFooterProps;
|
|
33
|
+
}
|
|
34
|
+
interface ServicesLandingViewProps {
|
|
35
|
+
content: ServicesLandingContent;
|
|
36
|
+
}
|
|
37
|
+
declare function ServicesLandingView({ content }: ServicesLandingViewProps): react_jsx_runtime.JSX.Element;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* parseProps — the JSON→component validation seam for the Services dialect.
|
|
41
|
+
*
|
|
42
|
+
* Ported verbatim from carriage's `src/chassis/mdxui-bridge/parse-props.ts`
|
|
43
|
+
* (already dependency-free + host-agnostic). Runs `schema.parse(data)` exactly
|
|
44
|
+
* once per JSON→component crossing, with a Services-shaped error envelope.
|
|
45
|
+
* Inside the package's components, props are already typed and trusted — no
|
|
46
|
+
* need to re-validate on every render.
|
|
47
|
+
*/
|
|
48
|
+
interface ParsePropsOptions {
|
|
49
|
+
/**
|
|
50
|
+
* Caller context for error messages — e.g. "deriveCatalog/charity-vehicle-valuation".
|
|
51
|
+
* Appears in the thrown error so logs are greppable by source.
|
|
52
|
+
*/
|
|
53
|
+
source?: string;
|
|
54
|
+
}
|
|
55
|
+
declare class MdxuiParseError extends Error {
|
|
56
|
+
readonly issues: Array<{
|
|
57
|
+
path: string;
|
|
58
|
+
message: string;
|
|
59
|
+
}>;
|
|
60
|
+
readonly source: string | undefined;
|
|
61
|
+
constructor(zodError: ZodError, source: string | undefined);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Run `schema.parse(data)` with a Services-shaped error envelope.
|
|
65
|
+
*
|
|
66
|
+
* Throws `MdxuiParseError` on invalid input — message includes
|
|
67
|
+
* path-prefixed Zod issues and the `opts.source` string so errors
|
|
68
|
+
* are greppable in logs.
|
|
69
|
+
*/
|
|
70
|
+
declare function parseProps<T>(schema: ZodSchema<T>, data: unknown, opts?: ParsePropsOptions): T;
|
|
71
|
+
|
|
72
|
+
export { MdxuiParseError, type ParsePropsOptions, type ServicesLandingContent, ServicesLandingView, type ServicesLandingViewProps, parseProps };
|