@c1m-public/dash-site-kit 0.11.0 → 0.13.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 CHANGED
@@ -244,6 +244,27 @@ Legal pages, framework routes and crawler files are always exempt
244
244
  version does not know is ignored, so the server can add modes without
245
245
  breaking older sites.
246
246
 
247
+ ## Legal pages
248
+
249
+ Legal pages stay reachable in every site mode, so every site needs them before
250
+ it collects signups. Build them from the site's facts and render them with
251
+ `DashLegalPage`:
252
+
253
+ ```tsx
254
+ import { DashLegalPage } from "@c1m-public/dash-site-kit/ui";
255
+ import { privacyNotice } from "@c1m-public/dash-site-kit";
256
+
257
+ const facts = { siteName: "SimpleVan", contactHref: "/contact", sharesWithProviders: true, waitlist: true, updated: "2026-09-22" };
258
+ export default function PrivacyPage() {
259
+ return <DashLegalPage document={privacyNotice(facts)} siteName={facts.siteName} />;
260
+ }
261
+ ```
262
+
263
+ `cookieNotice` and `termsOfUse` take the same facts. The text states what the
264
+ platform collects (requests, waitlist sign-ups, the `c1m_ft` attribution
265
+ cookie); pass `operator` with the registered company name and review the text
266
+ before relying on it.
267
+
247
268
  ## Peer dependencies
248
269
 
249
270
  `@c1m-public/channel-client` (>=0.31.0), `next` 16, `react` 19.
package/dist/index.d.ts CHANGED
@@ -13,6 +13,8 @@ export type * from "./models/waitlist.js";
13
13
  export type * from "./models/landing.js";
14
14
  export { GATE_EXEMPT_PATHS, gateAction } from "./models/bootstrap.js";
15
15
  export type * from "./models/attribution.js";
16
+ export type { LegalDocument, LegalSection, LegalSiteFacts } from "./models/legal.js";
17
+ export { cookieNotice, privacyNotice, termsOfUse } from "./models/legal.js";
16
18
  export { FIRST_TOUCH_COOKIE, FIRST_TOUCH_MAX_AGE_SECONDS, decodeFirstTouch, encodeFirstTouch, firstTouchFrom } from "./models/attribution.js";
17
19
  export type * from "./models/directory.js";
18
20
  export type * from "./models/leads.js";
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export { GATE_EXEMPT_PATHS, gateAction } from "./models/bootstrap.js";
2
+ export { cookieNotice, privacyNotice, termsOfUse } from "./models/legal.js";
2
3
  export { FIRST_TOUCH_COOKIE, FIRST_TOUCH_MAX_AGE_SECONDS, decodeFirstTouch, encodeFirstTouch, firstTouchFrom } from "./models/attribution.js";
3
4
  export { selectDirectoryRegion, validateDirectoryKey, validateRegionFilter, } from "./validation/directory.js";
4
5
  export { LEAD_LIMITS, validateLeadForm } from "./validation/leads.js";
@@ -0,0 +1,40 @@
1
+ /** One section of a legal page: a heading, paragraphs, and optional bullets. */
2
+ export interface LegalSection {
3
+ heading: string;
4
+ paragraphs?: string[];
5
+ bullets?: string[];
6
+ }
7
+ /** A legal page as data, rendered by `DashLegalPage`. */
8
+ export interface LegalDocument {
9
+ title: string;
10
+ /** ISO date the text was last reviewed. */
11
+ updated: string;
12
+ summary: string;
13
+ sections: LegalSection[];
14
+ }
15
+ export interface LegalSiteFacts {
16
+ /** The brand visitors see. */
17
+ siteName: string;
18
+ /** The legal entity that runs the site; defaults to the brand. */
19
+ operator?: string;
20
+ /** Where people reach the operator (a path or URL). */
21
+ contactHref?: string;
22
+ /** Quote requests go to independent providers who may contact the person. */
23
+ sharesWithProviders?: boolean;
24
+ /** Whether the site runs a waitlist. */
25
+ waitlist?: boolean;
26
+ /** Governing law for the terms. */
27
+ jurisdiction?: string;
28
+ /** ISO date the owner last reviewed the text. */
29
+ updated: string;
30
+ }
31
+ /**
32
+ * The privacy notice for a Dash site, describing what the platform actually
33
+ * collects and why. The operator should review it and add registered company
34
+ * details before relying on it.
35
+ */
36
+ export declare function privacyNotice(facts: LegalSiteFacts): LegalDocument;
37
+ /** The cookie notice: the only cookie the kit sets is first-touch attribution. */
38
+ export declare function cookieNotice(facts: LegalSiteFacts): LegalDocument;
39
+ /** Terms of use for a Dash site. */
40
+ export declare function termsOfUse(facts: LegalSiteFacts): LegalDocument;
@@ -0,0 +1,80 @@
1
+ import { FIRST_TOUCH_COOKIE, FIRST_TOUCH_MAX_AGE_SECONDS } from "./attribution.js";
2
+ function operatorOf(facts) {
3
+ return facts.operator?.trim() || facts.siteName;
4
+ }
5
+ function contactLine(facts) {
6
+ return facts.contactHref ? `through our contact page (${facts.contactHref})` : "using the contact details on this site";
7
+ }
8
+ const firstTouchDays = Math.round(FIRST_TOUCH_MAX_AGE_SECONDS / 86_400);
9
+ /**
10
+ * The privacy notice for a Dash site, describing what the platform actually
11
+ * collects and why. The operator should review it and add registered company
12
+ * details before relying on it.
13
+ */
14
+ export function privacyNotice(facts) {
15
+ const operator = operatorOf(facts);
16
+ const collected = [
17
+ "Requests you send us: your name, email address, phone number and the details you enter about the job.",
18
+ "An email address when you ask for a link to your existing requests.",
19
+ ...(facts.waitlist ? ["Waitlist sign-ups: your email address, your name if you give it, and whether you agreed to marketing emails."] : []),
20
+ `How you found us: the first page you visited, the site that referred you, campaign tags in the link, your approximate country and your browser language. This is kept in a first-party cookie for ${firstTouchDays} days and stored with any request you send.`,
21
+ "Technical logs our hosting and security providers keep to run and protect the site.",
22
+ ];
23
+ return {
24
+ title: "Privacy notice",
25
+ updated: facts.updated,
26
+ summary: `How ${operator} collects and uses personal information on ${facts.siteName}.`,
27
+ sections: [
28
+ { heading: "Who we are", paragraphs: [`${facts.siteName} is run by ${operator}, the controller of the personal information described here. The site runs on the SaaSDash platform, which stores and processes that information on our behalf.`] },
29
+ { heading: "What we collect", bullets: collected },
30
+ {
31
+ heading: "How we use it",
32
+ bullets: [
33
+ "To answer your request and keep you updated about it.",
34
+ ...(facts.sharesWithProviders ? ["To share your request with independent providers who can do the job, so they can contact you with a quote. Each provider is responsible for how it then uses your details."] : []),
35
+ ...(facts.waitlist ? ["To confirm your waitlist sign-up and tell you when we open. We send marketing emails only if you ticked the separate consent box, and every email has an unsubscribe link."] : []),
36
+ "To understand which pages and campaigns bring people to us.",
37
+ "To keep the site secure and prevent abuse.",
38
+ ],
39
+ paragraphs: ["We rely on your request (to take steps you ask for), your consent (for marketing emails) and our legitimate interest in running and improving the site."],
40
+ },
41
+ {
42
+ heading: "How long we keep it",
43
+ paragraphs: [
44
+ "We keep requests for as long as we need them to handle the job and meet our legal obligations.",
45
+ ...(facts.waitlist ? ["Waitlist details are kept until you unsubscribe or ask us to delete them."] : []),
46
+ ],
47
+ },
48
+ { heading: "Your rights", paragraphs: [`You can ask to see, correct or delete your information, object to how we use it, or withdraw consent at any time. Contact us ${contactLine(facts)}. You can also complain to the Information Commissioner's Office (ico.org.uk).`] },
49
+ ],
50
+ };
51
+ }
52
+ /** The cookie notice: the only cookie the kit sets is first-touch attribution. */
53
+ export function cookieNotice(facts) {
54
+ return {
55
+ title: "Cookies",
56
+ updated: facts.updated,
57
+ summary: `The cookies ${facts.siteName} uses.`,
58
+ sections: [
59
+ { heading: "What we set", bullets: [`${FIRST_TOUCH_COOKIE}: remembers how you first arrived (first page, referring site, campaign tags) so a later request can be attributed to it. It lasts ${firstTouchDays} days and is not shared with advertisers.`] },
60
+ { heading: "Your choices", paragraphs: ["You can delete or block cookies in your browser settings. The site keeps working without them; we just cannot tell how you found us."] },
61
+ ],
62
+ };
63
+ }
64
+ /** Terms of use for a Dash site. */
65
+ export function termsOfUse(facts) {
66
+ const operator = operatorOf(facts);
67
+ return {
68
+ title: "Terms of use",
69
+ updated: facts.updated,
70
+ summary: `The terms for using ${facts.siteName}.`,
71
+ sections: [
72
+ { heading: "About these terms", paragraphs: [`These terms apply when you use ${facts.siteName}, run by ${operator}. By using the site you accept them.`] },
73
+ ...(facts.sharesWithProviders ? [{ heading: "Providers", paragraphs: ["Providers listed on the site are independent businesses. Any job you agree with a provider is a contract between you and that provider, who is responsible for the service, its price and its insurance. We help you find and contact providers but do not carry out the work."] }] : []),
74
+ { heading: "Using the site", bullets: ["Give accurate information when you send a request.", "Do not misuse the site, interfere with it or try to access it without permission.", "Do not submit other people's details without their agreement."] },
75
+ { heading: "Information on the site", paragraphs: ["We keep the site accurate but cannot guarantee every listing, price or guide is complete or current."] },
76
+ { heading: "Liability", paragraphs: ["Nothing in these terms limits liability that cannot be limited by law. Otherwise we are not liable for losses arising from a provider's work or from using the site, to the extent the law allows."] },
77
+ { heading: "Law", paragraphs: [`These terms are governed by the law of ${facts.jurisdiction ?? "England and Wales"}. Questions: contact us ${contactLine(facts)}.`] },
78
+ ],
79
+ };
80
+ }
@@ -13,9 +13,11 @@ export declare function DashLandingPage({ siteName, content, cta }: {
13
13
  cta: ReactNode;
14
14
  }): import("react").JSX.Element;
15
15
  /** The landing page with the waitlist form as its call to action. */
16
- export declare function DashWaitlistLanding({ siteName, content, form, submit, }: {
16
+ export declare function DashWaitlistLanding({ siteName, content, form, privacyHref, submit, }: {
17
17
  siteName: string;
18
18
  content: LandingContent;
19
19
  form: DashWaitlistFormSettings;
20
+ /** The site's privacy notice, linked from the form. */
21
+ privacyHref?: string;
20
22
  submit: (input: DashWaitlistSubmission) => Promise<DashWaitlistReceipt>;
21
23
  }): import("react").JSX.Element;
@@ -13,6 +13,6 @@ export function DashLandingPage({ siteName, content, cta }) {
13
13
  return (_jsxs("main", { children: [_jsx("section", { className: "border-b border-border bg-subtle", children: _jsxs(Container, { className: "grid items-center gap-12 py-14 lg:grid-cols-[minmax(0,1fr)_minmax(20rem,26rem)] lg:py-24", children: [_jsxs("div", { className: "max-w-2xl", children: [_jsx(Eyebrow, { children: content.eyebrow ?? siteName }), _jsx("h1", { className: "mt-5 text-balance text-4xl font-semibold tracking-[-0.05em] text-ink sm:text-6xl", children: content.headline }), _jsx("p", { className: "mt-6 text-pretty text-lg leading-8 text-muted", children: content.subheadline }), content.highlights?.length ? (_jsx("ul", { className: "mt-8 space-y-3", children: content.highlights.map((point) => (_jsxs("li", { className: "flex gap-3 text-base text-ink", children: [_jsx("span", { "aria-hidden": "true", className: "mt-1 inline-flex size-5 shrink-0 items-center justify-center rounded-full bg-accent text-xs font-bold text-accent-foreground", children: "\u2713" }), _jsx("span", { children: point })] }, point))) })) : null] }), _jsxs("div", { id: CTA_ID, className: "scroll-mt-24 rounded-3xl border border-border bg-white p-6 shadow-sm sm:p-8", children: [_jsx("h2", { className: "text-xl font-semibold text-ink", children: content.cta.title }), _jsx("div", { className: "mt-5", children: cta }), content.cta.note ? _jsx("p", { className: "mt-4 text-xs leading-5 text-muted", children: content.cta.note }) : null] })] }) }), steps ? (_jsx("section", { className: "border-b border-border py-16 sm:py-20", children: _jsxs(Container, { children: [_jsx(SectionHeading, { eyebrow: steps.eyebrow, title: steps.title, description: steps.description }), _jsx("ol", { className: "mt-10 grid gap-6 sm:grid-cols-2 lg:grid-cols-4", children: steps.items.map((step, index) => (_jsxs("li", { className: "rounded-2xl border border-border p-6", children: [_jsxs("span", { className: "text-sm font-semibold text-accent-text", children: ["Step ", index + 1] }), _jsx("h3", { className: "mt-2 text-lg font-semibold text-ink", children: step.title }), _jsx("p", { className: "mt-2 text-sm leading-6 text-muted", children: step.description })] }, step.title))) })] }) })) : null, benefits ? (_jsx("section", { className: "border-b border-border bg-subtle py-16 sm:py-20", children: _jsxs(Container, { children: [_jsx(SectionHeading, { eyebrow: benefits.eyebrow, title: benefits.title, description: benefits.description }), _jsx("div", { className: "mt-10 grid gap-6 sm:grid-cols-2 lg:grid-cols-3", children: benefits.items.map((benefit) => (_jsxs("div", { className: "rounded-2xl border border-border bg-white p-6", children: [_jsx("h3", { className: "text-lg font-semibold text-ink", children: benefit.title }), _jsx("p", { className: "mt-2 text-sm leading-6 text-muted", children: benefit.description })] }, benefit.title))) })] }) })) : null, audiences ? (_jsx("section", { className: "border-b border-border py-16 sm:py-20", children: _jsxs(Container, { children: [_jsx(SectionHeading, { eyebrow: audiences.eyebrow, title: audiences.title, description: audiences.description }), _jsx("div", { className: "mt-10 grid gap-6 lg:grid-cols-2", children: audiences.items.map((audience) => (_jsxs("div", { className: "rounded-3xl border border-border p-8", children: [audience.eyebrow ? _jsx(Eyebrow, { children: audience.eyebrow }) : null, _jsx("h3", { className: "mt-3 text-2xl font-semibold tracking-tight text-ink", children: audience.title }), _jsx("p", { className: "mt-3 text-base leading-7 text-muted", children: audience.description }), audience.points?.length ? (_jsx("ul", { className: "mt-5 space-y-2 text-sm text-ink", children: audience.points.map((point) => _jsxs("li", { children: ["\u2022 ", point] }, point)) })) : null] }, audience.title))) })] }) })) : null, faqs ? (_jsx("section", { className: "border-b border-border py-16 sm:py-20", children: _jsxs(Container, { className: "max-w-3xl", children: [_jsx(SectionHeading, { eyebrow: faqs.eyebrow, title: faqs.title, description: faqs.description }), _jsx("div", { className: "mt-8 divide-y divide-border border-y border-border", children: faqs.items.map((faq) => (_jsxs("details", { className: "group py-5", children: [_jsx("summary", { className: "cursor-pointer list-none text-base font-semibold text-ink", children: faq.question }), _jsx("p", { className: "mt-3 text-sm leading-6 text-muted", children: faq.answer })] }, faq.question))) })] }) })) : null, closing ? (_jsx("section", { className: "py-16 sm:py-24", children: _jsxs(Container, { className: "max-w-3xl text-center", children: [_jsx("h2", { className: "text-balance text-3xl font-semibold tracking-[-0.035em] text-ink sm:text-4xl", children: closing.headline }), closing.description ? _jsx("p", { className: "mt-4 text-lg leading-8 text-muted", children: closing.description }) : null, _jsx("div", { className: "mt-8", children: _jsx(ButtonLink, { href: `#${CTA_ID}`, children: closing.action }) })] }) })) : null] }));
14
14
  }
15
15
  /** The landing page with the waitlist form as its call to action. */
16
- export function DashWaitlistLanding({ siteName, content, form, submit, }) {
17
- return (_jsx(DashLandingPage, { siteName: siteName, content: content, cta: _jsx(DashWaitlistForm, { acceptingEntries: form.acceptingEntries, collectMarketingConsent: form.collectMarketingConsent, placement: "page", submit: submit }) }));
16
+ export function DashWaitlistLanding({ siteName, content, form, privacyHref, submit, }) {
17
+ return (_jsx(DashLandingPage, { siteName: siteName, content: content, cta: _jsx(DashWaitlistForm, { acceptingEntries: form.acceptingEntries, collectMarketingConsent: form.collectMarketingConsent, placement: "page", privacyHref: privacyHref, submit: submit }) }));
18
18
  }
@@ -0,0 +1,7 @@
1
+ import type { LegalDocument } from "../models/legal.js";
2
+ /** A legal page (privacy, cookies, terms) rendered from a `LegalDocument`. Server component. */
3
+ export declare function DashLegalPage({ document, siteName, locale }: {
4
+ document: LegalDocument;
5
+ siteName: string;
6
+ locale?: string;
7
+ }): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Container, Eyebrow } from "./primitives.js";
3
+ function formatUpdated(updated, locale) {
4
+ const date = new Date(`${updated}T00:00:00Z`);
5
+ return Number.isNaN(date.getTime()) ? updated : date.toLocaleDateString(locale, { dateStyle: "long", timeZone: "UTC" });
6
+ }
7
+ /** A legal page (privacy, cookies, terms) rendered from a `LegalDocument`. Server component. */
8
+ export function DashLegalPage({ document, siteName, locale }) {
9
+ return (_jsx("main", { className: "py-16 sm:py-24", children: _jsxs(Container, { className: "max-w-3xl", children: [_jsx(Eyebrow, { children: siteName }), _jsx("h1", { className: "mt-4 text-balance text-4xl font-semibold tracking-[-0.045em] text-ink sm:text-5xl", children: document.title }), _jsx("p", { className: "mt-4 text-lg leading-8 text-muted", children: document.summary }), _jsxs("p", { className: "mt-2 text-sm text-muted", children: ["Last updated ", formatUpdated(document.updated, locale)] }), _jsx("div", { className: "mt-12 space-y-10", children: document.sections.map((section) => (_jsxs("section", { "aria-labelledby": `legal-${section.heading}`, children: [_jsx("h2", { id: `legal-${section.heading}`, className: "text-xl font-semibold tracking-tight text-ink", children: section.heading }), section.paragraphs?.map((paragraph) => (_jsx("p", { className: "mt-3 text-base leading-7 text-muted", children: paragraph }, paragraph))), section.bullets?.length ? (_jsx("ul", { className: "mt-3 list-disc space-y-2 pl-5 text-base leading-7 text-muted", children: section.bullets.map((bullet) => _jsx("li", { children: bullet }, bullet)) })) : null] }, section.heading))) })] }) }));
10
+ }
@@ -1,8 +1,10 @@
1
1
  import type { DashWaitlistReceipt, DashWaitlistSubmission } from "../models/waitlist.js";
2
- export declare function DashWaitlistForm({ acceptingEntries, collectMarketingConsent, placement, submit, }: {
2
+ export declare function DashWaitlistForm({ acceptingEntries, collectMarketingConsent, placement, privacyHref, submit, }: {
3
3
  acceptingEntries: boolean;
4
4
  collectMarketingConsent: boolean;
5
5
  /** Recorded as the signup's source. */
6
6
  placement?: "page" | "block";
7
+ /** The site's privacy notice, linked beside the submit button. */
8
+ privacyHref?: string;
7
9
  submit: (input: DashWaitlistSubmission) => Promise<DashWaitlistReceipt>;
8
10
  }): import("react").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useEffect, useId, useState } from "react";
4
- export function DashWaitlistForm({ acceptingEntries, collectMarketingConsent, placement = "page", submit, }) {
4
+ export function DashWaitlistForm({ acceptingEntries, collectMarketingConsent, placement = "page", privacyHref, submit, }) {
5
5
  const id = useId();
6
6
  const [ready, setReady] = useState(false);
7
7
  const [pending, setPending] = useState(false);
@@ -37,5 +37,5 @@ export function DashWaitlistForm({ acceptingEntries, collectMarketingConsent, pl
37
37
  return _jsx("p", { role: "status", children: "Thanks. Check your inbox to confirm your place." });
38
38
  if (!acceptingEntries)
39
39
  return _jsx("p", { role: "status", children: "The waitlist is currently closed." });
40
- return (_jsxs("form", { className: "space-y-4", onSubmit: onSubmit, children: [_jsxs("label", { className: "block space-y-1.5", htmlFor: `${id}-name`, children: [_jsx("span", { className: "text-sm font-medium text-ink", children: "Name (optional)" }), _jsx("input", { className: "min-h-11 w-full rounded-xl border border-border bg-white px-3 py-2 text-ink", disabled: !ready || pending, id: `${id}-name`, maxLength: 255, name: "name", autoComplete: "name" })] }), _jsxs("label", { className: "block space-y-1.5", htmlFor: `${id}-email`, children: [_jsx("span", { className: "text-sm font-medium text-ink", children: "Email" }), _jsx("input", { className: "min-h-11 w-full rounded-xl border border-border bg-white px-3 py-2 text-ink", disabled: !ready || pending, id: `${id}-email`, maxLength: 254, name: "email", type: "email", autoComplete: "email", required: true })] }), collectMarketingConsent ? (_jsxs("label", { className: "flex items-start gap-2 text-sm leading-6 text-muted", children: [_jsx("input", { className: "mt-1", disabled: !ready || pending, name: "marketing_opt_in", type: "checkbox" }), _jsx("span", { children: "I would also like to receive marketing emails. I can unsubscribe later." })] })) : null, error ? _jsx("p", { className: "text-sm text-red-700", role: "alert", children: error }) : null, _jsx("button", { className: "min-h-11 rounded-full bg-accent px-5 py-2.5 text-sm font-semibold text-accent-foreground disabled:opacity-60", disabled: !ready || pending, type: "submit", children: pending ? "Joining…" : "Join the waitlist" })] }));
40
+ return (_jsxs("form", { className: "space-y-4", onSubmit: onSubmit, children: [_jsxs("label", { className: "block space-y-1.5", htmlFor: `${id}-name`, children: [_jsx("span", { className: "text-sm font-medium text-ink", children: "Name (optional)" }), _jsx("input", { className: "min-h-11 w-full rounded-xl border border-border bg-white px-3 py-2 text-ink", disabled: !ready || pending, id: `${id}-name`, maxLength: 255, name: "name", autoComplete: "name" })] }), _jsxs("label", { className: "block space-y-1.5", htmlFor: `${id}-email`, children: [_jsx("span", { className: "text-sm font-medium text-ink", children: "Email" }), _jsx("input", { className: "min-h-11 w-full rounded-xl border border-border bg-white px-3 py-2 text-ink", disabled: !ready || pending, id: `${id}-email`, maxLength: 254, name: "email", type: "email", autoComplete: "email", required: true })] }), collectMarketingConsent ? (_jsxs("label", { className: "flex items-start gap-2 text-sm leading-6 text-muted", children: [_jsx("input", { className: "mt-1", disabled: !ready || pending, name: "marketing_opt_in", type: "checkbox" }), _jsx("span", { children: "I would also like to receive marketing emails. I can unsubscribe later." })] })) : null, error ? _jsx("p", { className: "text-sm text-red-700", role: "alert", children: error }) : null, _jsx("button", { className: "min-h-11 rounded-full bg-accent px-5 py-2.5 text-sm font-semibold text-accent-foreground disabled:opacity-60", disabled: !ready || pending, type: "submit", children: pending ? "Joining…" : "Join the waitlist" }), privacyHref ? (_jsxs("p", { className: "text-xs leading-5 text-muted", children: ["We use your details to manage your place on the waitlist, as described in our", " ", _jsx("a", { className: "underline underline-offset-2 hover:text-ink", href: privacyHref, children: "privacy notice" }), "."] })) : null] }));
41
41
  }
@@ -3,11 +3,13 @@ import type { DashWaitlistForm as DashWaitlistFormSettings, DashWaitlistReceipt,
3
3
  * The gate's page: a centred signup with the site's own name. Server
4
4
  * component; `submit` is the site's Server Action.
5
5
  */
6
- export declare function DashWaitlistPage({ siteName, headline, description, form, submit, }: {
6
+ export declare function DashWaitlistPage({ siteName, headline, description, form, privacyHref, submit, }: {
7
7
  siteName: string;
8
8
  headline?: string;
9
9
  description?: string;
10
10
  form: DashWaitlistFormSettings;
11
+ /** The site's privacy notice, linked from the form. */
12
+ privacyHref?: string;
11
13
  submit: (input: DashWaitlistSubmission) => Promise<DashWaitlistReceipt>;
12
14
  }): import("react").JSX.Element;
13
15
  /**
@@ -5,8 +5,8 @@ import { DashWaitlistForm } from "./waitlist-form.js";
5
5
  * The gate's page: a centred signup with the site's own name. Server
6
6
  * component; `submit` is the site's Server Action.
7
7
  */
8
- export function DashWaitlistPage({ siteName, headline = "Join the waitlist", description = "We are getting ready. Leave your email and we will let you know when we open.", form, submit, }) {
9
- return (_jsx("main", { className: "flex min-h-screen items-center py-16", children: _jsxs(Container, { className: "max-w-md space-y-6", children: [_jsx(Eyebrow, { children: siteName }), _jsx("h1", { className: "text-3xl font-semibold tracking-tight text-ink", children: headline }), _jsx("p", { className: "text-base leading-7 text-muted", children: description }), _jsx(DashWaitlistForm, { acceptingEntries: form.acceptingEntries, collectMarketingConsent: form.collectMarketingConsent, placement: "page", submit: submit })] }) }));
8
+ export function DashWaitlistPage({ siteName, headline = "Join the waitlist", description = "We are getting ready. Leave your email and we will let you know when we open.", form, privacyHref, submit, }) {
9
+ return (_jsx("main", { className: "flex min-h-screen items-center py-16", children: _jsxs(Container, { className: "max-w-md space-y-6", children: [_jsx(Eyebrow, { children: siteName }), _jsx("h1", { className: "text-3xl font-semibold tracking-tight text-ink", children: headline }), _jsx("p", { className: "text-base leading-7 text-muted", children: description }), _jsx(DashWaitlistForm, { acceptingEntries: form.acceptingEntries, collectMarketingConsent: form.collectMarketingConsent, placement: "page", privacyHref: privacyHref, submit: submit })] }) }));
10
10
  }
11
11
  const LINK_COPY = {
12
12
  verify: {
package/dist/ui.d.ts CHANGED
@@ -14,3 +14,4 @@ export { DashWaitlistEmailLink, DashWaitlistPage } from "./ui/waitlist-page.js";
14
14
  export { DashMaintenancePage } from "./ui/maintenance-page.js";
15
15
  export { DashLandingPage, DashWaitlistLanding } from "./ui/landing-page.js";
16
16
  export { SiteErrorFallback } from "./ui/error-fallback.js";
17
+ export { DashLegalPage } from "./ui/legal-page.js";
package/dist/ui.js CHANGED
@@ -14,3 +14,4 @@ export { DashWaitlistEmailLink, DashWaitlistPage } from "./ui/waitlist-page.js";
14
14
  export { DashMaintenancePage } from "./ui/maintenance-page.js";
15
15
  export { DashLandingPage, DashWaitlistLanding } from "./ui/landing-page.js";
16
16
  export { SiteErrorFallback } from "./ui/error-fallback.js";
17
+ export { DashLegalPage } from "./ui/legal-page.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c1m-public/dash-site-kit",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Shared transport, domain and UI layer for MML dash-scoped public sites",