@c1m-public/dash-site-kit 0.16.0 → 0.17.1
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 +8 -0
- package/dist/image-policy.d.ts +5 -0
- package/dist/image-policy.js +5 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/leads.d.ts +2 -0
- package/dist/models/moving-quotes.d.ts +4 -1
- package/dist/models/waitlist.d.ts +2 -0
- package/dist/next/data-layer.d.ts +1 -1
- package/dist/next/data-layer.js +1 -1
- package/dist/next/normalize.js +5 -2
- package/dist/next/providers/lead-portal.js +2 -2
- package/dist/next/providers/leads.js +1 -0
- package/dist/next/providers/waitlist.js +1 -0
- package/dist/ports/lead-portal.d.ts +2 -1
- package/dist/site-config.d.ts +27 -0
- package/dist/site-config.js +38 -0
- package/dist/ui/honeypot-field.d.ts +10 -0
- package/dist/ui/honeypot-field.js +16 -0
- package/dist/ui/lead-portal-form.js +2 -1
- package/dist/ui/moving-quote-form.js +47 -10
- package/dist/ui/waitlist-form.js +3 -1
- package/dist/ui.d.ts +1 -0
- package/dist/ui.js +1 -0
- package/dist/validation/leads.js +3 -0
- package/dist/validation/moving-quotes.js +1 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -285,3 +285,11 @@ before it has a domain), never on `saasdash.app`. Set `adminUrl` in
|
|
|
285
285
|
`site.defaults.json` and build links with `createSiteConfig().adminUrl(path)`.
|
|
286
286
|
`DashAdminLink` swaps its label while the admin host's `c1m_signed_in` hint is
|
|
287
287
|
set; the session itself never leaves the admin host.
|
|
288
|
+
|
|
289
|
+
### Moving request recovery (0.17.1 candidate)
|
|
290
|
+
|
|
291
|
+
The moving form's first submit validates and opens review; only the next submit
|
|
292
|
+
captures the request. Native action resets are prevented so invalid/unavailable
|
|
293
|
+
responses preserve the entered details and existing idempotency key. Success
|
|
294
|
+
replaces the form with the receipt. Consumers should adopt the registry release
|
|
295
|
+
after the candidate's browser acceptance; never commit a local tarball dependency.
|
package/dist/image-policy.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Brand assets (`/api/v1/public/assets/{id}/image`) are deliberately NOT
|
|
3
|
+
* optimised: that route answers with a 302 to storage, and the optimizer only
|
|
4
|
+
* checks the allow-list against the first URL, not the redirect target. They
|
|
5
|
+
* render directly instead; logos and marks are small.
|
|
6
|
+
*
|
|
2
7
|
* Only known SaaSDash origins use the Next image proxy. Absolute media URLs are a
|
|
3
8
|
* valid Channel API shape; unknown HTTPS hosts still render through next/image
|
|
4
9
|
* with optimization bypassed instead of becoming a runtime hostname error.
|
package/dist/image-policy.js
CHANGED
|
@@ -10,6 +10,11 @@ function origin(value) {
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
+
* Brand assets (`/api/v1/public/assets/{id}/image`) are deliberately NOT
|
|
14
|
+
* optimised: that route answers with a 302 to storage, and the optimizer only
|
|
15
|
+
* checks the allow-list against the first URL, not the redirect target. They
|
|
16
|
+
* render directly instead; logos and marks are small.
|
|
17
|
+
*
|
|
13
18
|
* Only known SaaSDash origins use the Next image proxy. Absolute media URLs are a
|
|
14
19
|
* valid Channel API shape; unknown HTTPS hosts still render through next/image
|
|
15
20
|
* with optimization bypassed instead of becoming a runtime hostname error.
|
package/dist/index.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export { formatMoney } from "./format.js";
|
|
|
37
37
|
export { SIGN_IN_HINT_COOKIE, hasSignInHint } from "@c1m-public/platform-auth";
|
|
38
38
|
export * from "./url-policy.js";
|
|
39
39
|
export * from "./image-policy.js";
|
|
40
|
-
export { canonicalUrl, createSiteConfig, safeLocale, } from "./site-config.js";
|
|
40
|
+
export { canonicalUrl, createSiteConfig, headerLogo, safeLocale, } from "./site-config.js";
|
|
41
41
|
export type { SiteConfig, SiteConfigOptions, SiteDefaults, SiteMeta, SiteMetaBootstrap, } from "./site-config.js";
|
|
42
42
|
export { ChannelSiteSentryConfigurationError, resolveChannelSiteSentryOptions, } from "./sentry.js";
|
|
43
43
|
export type { ChannelSiteSentryConfiguration, ChannelSiteSentryOptions, } from "./sentry.js";
|
package/dist/index.js
CHANGED
|
@@ -8,5 +8,5 @@ export { formatMoney } from "./format.js";
|
|
|
8
8
|
export { SIGN_IN_HINT_COOKIE, hasSignInHint } from "@c1m-public/platform-auth";
|
|
9
9
|
export * from "./url-policy.js";
|
|
10
10
|
export * from "./image-policy.js";
|
|
11
|
-
export { canonicalUrl, createSiteConfig, safeLocale, } from "./site-config.js";
|
|
11
|
+
export { canonicalUrl, createSiteConfig, headerLogo, safeLocale, } from "./site-config.js";
|
|
12
12
|
export { ChannelSiteSentryConfigurationError, resolveChannelSiteSentryOptions, } from "./sentry.js";
|
package/dist/models/leads.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { DashMovingQuoteInput, DashMovingQuoteReceipt, DashMovingAddressList, DashMovingAddress, DashMovingDistance } from "@c1m-public/channel-client";
|
|
2
|
-
|
|
2
|
+
/** `_gotcha` is the bot trap, forwarded unchanged. */
|
|
3
|
+
export type MovingQuoteInput = DashMovingQuoteInput & {
|
|
4
|
+
_gotcha?: string;
|
|
5
|
+
};
|
|
3
6
|
export type MovingQuoteReceipt = DashMovingQuoteReceipt;
|
|
4
7
|
export type MovingAddressList = DashMovingAddressList;
|
|
5
8
|
export type MovingAddressResult = DashMovingAddress;
|
|
@@ -8,6 +8,8 @@ export interface DashWaitlistSubmission {
|
|
|
8
8
|
email: string;
|
|
9
9
|
name?: string;
|
|
10
10
|
marketingOptIn?: boolean;
|
|
11
|
+
/** Bot trap, forwarded unchanged as `_gotcha`. */
|
|
12
|
+
_gotcha?: string;
|
|
11
13
|
/** Which placement captured the signup. */
|
|
12
14
|
source?: "waitlist_page" | "waitlist_block";
|
|
13
15
|
/** First-touch context; the server bounds and may drop any field. */
|
|
@@ -32,7 +32,7 @@ export interface DashDataLayer {
|
|
|
32
32
|
getDirectoryProfile(idOrSlug: string): Promise<DirectoryProfileResult>;
|
|
33
33
|
loadDashPlans(): Promise<PlanCatalog>;
|
|
34
34
|
submitLead(input: LeadInput, attemptId: string): Promise<LeadOutcome>;
|
|
35
|
-
requestPortalLink(email: string): Promise<RequestLinkOutcome>;
|
|
35
|
+
requestPortalLink(email: string, gotcha?: string): Promise<RequestLinkOutcome>;
|
|
36
36
|
viewPortal(token: string): Promise<ViewOutcome>;
|
|
37
37
|
submitMovingQuote(input: MovingQuoteInput, attemptId: string): Promise<MovingQuoteOutcome>;
|
|
38
38
|
lookupMovingAddresses(query: string): Promise<MovingAddressList>;
|
package/dist/next/data-layer.js
CHANGED
|
@@ -50,7 +50,7 @@ export function createDashDataLayer(options) {
|
|
|
50
50
|
},
|
|
51
51
|
loadDashPlans: cache(() => plansProvider.loadCatalog()),
|
|
52
52
|
submitLead: (input, attemptId) => leadsProvider.create(input, attemptId),
|
|
53
|
-
requestPortalLink: (email) => leadPortalProvider.requestLink(email),
|
|
53
|
+
requestPortalLink: (email, gotcha) => leadPortalProvider.requestLink(email, gotcha),
|
|
54
54
|
viewPortal: (token) => leadPortalProvider.view(token),
|
|
55
55
|
submitMovingQuote,
|
|
56
56
|
lookupMovingAddresses,
|
package/dist/next/normalize.js
CHANGED
|
@@ -15,13 +15,16 @@ export function normalizeDashBootstrap(init) {
|
|
|
15
15
|
id: init.tenant.id,
|
|
16
16
|
name,
|
|
17
17
|
description: text(init.seo?.description) ?? text(init.public_profile.short_description),
|
|
18
|
+
// No public_profile fallbacks: branding.* is the one resolver's output
|
|
19
|
+
// (dash-brand.md), public_profile.logo_url is the same value, and
|
|
20
|
+
// header_media_url is the about hero, not the cover slot.
|
|
18
21
|
branding: {
|
|
19
22
|
primaryColor: text(init.branding?.primary_color),
|
|
20
|
-
logoUrl: absoluteHttpsUrl(init.branding?.logo_url)
|
|
23
|
+
logoUrl: absoluteHttpsUrl(init.branding?.logo_url),
|
|
21
24
|
logoDarkUrl: absoluteHttpsUrl(init.branding?.logo_dark_url),
|
|
22
25
|
logoSquareUrl: absoluteHttpsUrl(init.branding?.logo_square_url),
|
|
23
26
|
faviconUrl: absoluteHttpsUrl(init.branding?.favicon_url),
|
|
24
|
-
coverUrl: absoluteHttpsUrl(init.branding?.cover_url)
|
|
27
|
+
coverUrl: absoluteHttpsUrl(init.branding?.cover_url),
|
|
25
28
|
},
|
|
26
29
|
locale: {
|
|
27
30
|
region: text(init.locale?.region),
|
|
@@ -31,10 +31,10 @@ function normalizeView(view) {
|
|
|
31
31
|
}
|
|
32
32
|
export function createC1MLeadPortalProvider(resolveClient = getVisitorDashChannelClient) {
|
|
33
33
|
return {
|
|
34
|
-
async requestLink(email) {
|
|
34
|
+
async requestLink(email, gotcha) {
|
|
35
35
|
try {
|
|
36
36
|
const client = await resolveClient();
|
|
37
|
-
await client.dash.leadPortal.requestLink({ email });
|
|
37
|
+
await client.dash.leadPortal.requestLink({ email, ...(gotcha !== undefined ? { _gotcha: gotcha } : {}) });
|
|
38
38
|
return { state: "requested" };
|
|
39
39
|
}
|
|
40
40
|
catch (error) {
|
|
@@ -20,6 +20,7 @@ export function createC1MLeadsProvider(leadSource, resolveClient = getVisitorDas
|
|
|
20
20
|
...(input.name ? { name: input.name } : {}),
|
|
21
21
|
...(input.phone ? { phone: input.phone } : {}),
|
|
22
22
|
...(input.message ? { message: input.message } : {}),
|
|
23
|
+
...(input._gotcha !== undefined ? { _gotcha: input._gotcha } : {}),
|
|
23
24
|
source,
|
|
24
25
|
}, { idempotencyKey: attemptId });
|
|
25
26
|
return { state: "created", id: lead.id };
|
|
@@ -15,6 +15,7 @@ export function createC1MWaitlistProvider(resolveClient = getDashChannelClient,
|
|
|
15
15
|
email: input.email,
|
|
16
16
|
name: input.name,
|
|
17
17
|
marketing_opt_in: input.marketingOptIn === true,
|
|
18
|
+
...(input._gotcha !== undefined ? { _gotcha: input._gotcha } : {}),
|
|
18
19
|
source: input.source ?? "waitlist_page",
|
|
19
20
|
attribution: input.attribution ?? (await attribution()),
|
|
20
21
|
}, { idempotencyKey: attemptId });
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "server-only";
|
|
2
2
|
import type { RequestLinkOutcome, ViewOutcome } from "../models/lead-portal.js";
|
|
3
3
|
export interface LeadPortalProvider {
|
|
4
|
-
|
|
4
|
+
/** `gotcha` is the form's bot-trap value, forwarded unchanged as `_gotcha`. */
|
|
5
|
+
requestLink(email: string, gotcha?: string): Promise<RequestLinkOutcome>;
|
|
5
6
|
view(token: string): Promise<ViewOutcome>;
|
|
6
7
|
}
|
package/dist/site-config.d.ts
CHANGED
|
@@ -18,7 +18,14 @@ export interface SiteDefaults {
|
|
|
18
18
|
adminUrl?: string;
|
|
19
19
|
}
|
|
20
20
|
export interface SiteMeta {
|
|
21
|
+
/** The `<title>` / OpenGraph site name: the SEO title, else the site name. */
|
|
21
22
|
name: string;
|
|
23
|
+
/**
|
|
24
|
+
* The Dash's brand name (`bootstrap.name`, the backend's resolved
|
|
25
|
+
* `branding.name`), else the site name. Use it for the header wordmark so
|
|
26
|
+
* the header and the page title can share one source.
|
|
27
|
+
*/
|
|
28
|
+
brandName: string;
|
|
22
29
|
description: string;
|
|
23
30
|
baseUrl: string | null;
|
|
24
31
|
locale: string;
|
|
@@ -28,6 +35,7 @@ export interface SiteMeta {
|
|
|
28
35
|
}
|
|
29
36
|
/** The bootstrap fields site metadata reads. Structural, so the full DashBootstrap satisfies it. */
|
|
30
37
|
export interface SiteMetaBootstrap {
|
|
38
|
+
name?: string | null;
|
|
31
39
|
seo: {
|
|
32
40
|
title?: string | null;
|
|
33
41
|
description?: string | null;
|
|
@@ -57,7 +65,26 @@ export interface SiteConfig {
|
|
|
57
65
|
resolveSiteMeta(): Promise<SiteMeta>;
|
|
58
66
|
/** A URL on the Dash's admin host, or null when the site has none configured. */
|
|
59
67
|
adminUrl(path?: string): string | null;
|
|
68
|
+
/** Sign-in on the admin host, or null when the site has none configured. */
|
|
69
|
+
loginUrl(): string | null;
|
|
70
|
+
/** Sign-up on the admin host, carrying a plan choice when it is a safe id. */
|
|
71
|
+
providerSignupUrl(plan?: string | null): string | null;
|
|
72
|
+
/**
|
|
73
|
+
* The first step of the admin workspace wizard (`/workspace/new`) with a
|
|
74
|
+
* plan already chosen; payment happens later on SaaSDash. Null when there is
|
|
75
|
+
* no admin host or the id is not a safe plan id.
|
|
76
|
+
*/
|
|
77
|
+
planStartUrl(planId: string, interval?: "monthly" | "yearly"): string | null;
|
|
60
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* The header logo chain: wide logo, then the square mark (dash-brand.md).
|
|
81
|
+
* Brand media is absolute https only; anything else is undefined so the site
|
|
82
|
+
* renders the brand name as text.
|
|
83
|
+
*/
|
|
84
|
+
export declare function headerLogo(branding: {
|
|
85
|
+
logoUrl?: string | null;
|
|
86
|
+
logoSquareUrl?: string | null;
|
|
87
|
+
}): string | undefined;
|
|
61
88
|
export declare function canonicalUrl(baseUrl: string | null, pathname: string): string | undefined;
|
|
62
89
|
export declare function safeLocale(value: string | null | undefined): string;
|
|
63
90
|
export interface SiteConfigOptions {
|
package/dist/site-config.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { formatMoney } from "./format.js";
|
|
2
2
|
import { absoluteHttpsUrl } from "./url-policy.js";
|
|
3
|
+
const SAFE_PLAN_ID = /^[A-Za-z0-9_-]{1,64}$/;
|
|
4
|
+
/**
|
|
5
|
+
* The header logo chain: wide logo, then the square mark (dash-brand.md).
|
|
6
|
+
* Brand media is absolute https only; anything else is undefined so the site
|
|
7
|
+
* renders the brand name as text.
|
|
8
|
+
*/
|
|
9
|
+
export function headerLogo(branding) {
|
|
10
|
+
return absoluteHttpsUrl(branding.logoUrl) ?? absoluteHttpsUrl(branding.logoSquareUrl);
|
|
11
|
+
}
|
|
3
12
|
export function canonicalUrl(baseUrl, pathname) {
|
|
4
13
|
if (!baseUrl)
|
|
5
14
|
return undefined;
|
|
@@ -49,6 +58,7 @@ export function createSiteConfig(defaults, options = {}) {
|
|
|
49
58
|
async function resolveSiteMeta() {
|
|
50
59
|
const fallback = {
|
|
51
60
|
name: siteName,
|
|
61
|
+
brandName: siteName,
|
|
52
62
|
description: siteDescription,
|
|
53
63
|
baseUrl: resolveSiteBaseUrl(),
|
|
54
64
|
locale: "en",
|
|
@@ -64,6 +74,7 @@ export function createSiteConfig(defaults, options = {}) {
|
|
|
64
74
|
const imageUrl = absoluteHttpsUrl(brand.coverUrl) ?? absoluteHttpsUrl(brand.logoUrl);
|
|
65
75
|
return {
|
|
66
76
|
name: bootstrap.seo.title || siteName,
|
|
77
|
+
brandName: bootstrap.name?.trim() || siteName,
|
|
67
78
|
description: bootstrap.seo.description || siteDescription,
|
|
68
79
|
baseUrl: bootstrap.site.url ?? resolveSiteBaseUrl(),
|
|
69
80
|
locale: safeLocale(bootstrap.locale.locale),
|
|
@@ -88,6 +99,30 @@ export function createSiteConfig(defaults, options = {}) {
|
|
|
88
99
|
return null;
|
|
89
100
|
}
|
|
90
101
|
}
|
|
102
|
+
function loginUrl() {
|
|
103
|
+
return adminUrl("/login");
|
|
104
|
+
}
|
|
105
|
+
function providerSignupUrl(plan) {
|
|
106
|
+
const url = adminUrl("/signup");
|
|
107
|
+
if (!url)
|
|
108
|
+
return null;
|
|
109
|
+
const choice = plan?.trim();
|
|
110
|
+
if (!choice || !SAFE_PLAN_ID.test(choice))
|
|
111
|
+
return url;
|
|
112
|
+
const withPlan = new URL(url);
|
|
113
|
+
withPlan.searchParams.set("plan", choice);
|
|
114
|
+
return withPlan.toString();
|
|
115
|
+
}
|
|
116
|
+
function planStartUrl(planId, interval = "monthly") {
|
|
117
|
+
const url = adminUrl("/workspace/new");
|
|
118
|
+
const choice = planId?.trim();
|
|
119
|
+
if (!url || !choice || !SAFE_PLAN_ID.test(choice))
|
|
120
|
+
return null;
|
|
121
|
+
const start = new URL(url);
|
|
122
|
+
start.searchParams.set("plan_id", choice);
|
|
123
|
+
start.searchParams.set("interval", interval);
|
|
124
|
+
return start.toString();
|
|
125
|
+
}
|
|
91
126
|
return {
|
|
92
127
|
siteName,
|
|
93
128
|
siteDescription,
|
|
@@ -98,5 +133,8 @@ export function createSiteConfig(defaults, options = {}) {
|
|
|
98
133
|
formatMoney: (cents, currency) => formatMoney(cents, currency, defaultCurrency),
|
|
99
134
|
resolveSiteMeta,
|
|
100
135
|
adminUrl,
|
|
136
|
+
loginUrl,
|
|
137
|
+
providerSignupUrl,
|
|
138
|
+
planStartUrl,
|
|
101
139
|
};
|
|
102
140
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Name of the bot-trap field the API's intake guard looks for. */
|
|
2
|
+
export declare const HONEYPOT_FIELD_NAME = "_gotcha";
|
|
3
|
+
/**
|
|
4
|
+
* Bot trap for public capture forms: a visually hidden text input (not
|
|
5
|
+
* `type="hidden"`, which bots skip) that people never fill in. Forward its
|
|
6
|
+
* value as `_gotcha`; the API silently drops submissions where it is non-blank.
|
|
7
|
+
*/
|
|
8
|
+
export declare function DashHoneypotField(): import("react").JSX.Element;
|
|
9
|
+
/** The trap's value from a submitted form; "" when untouched. */
|
|
10
|
+
export declare function readHoneypot(form: FormData): string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/** Name of the bot-trap field the API's intake guard looks for. */
|
|
3
|
+
export const HONEYPOT_FIELD_NAME = "_gotcha";
|
|
4
|
+
/**
|
|
5
|
+
* Bot trap for public capture forms: a visually hidden text input (not
|
|
6
|
+
* `type="hidden"`, which bots skip) that people never fill in. Forward its
|
|
7
|
+
* value as `_gotcha`; the API silently drops submissions where it is non-blank.
|
|
8
|
+
*/
|
|
9
|
+
export function DashHoneypotField() {
|
|
10
|
+
return (_jsx("div", { "aria-hidden": "true", className: "sr-only", style: { position: "absolute", left: "-10000px" }, children: _jsx("input", { "aria-hidden": "true", autoComplete: "off", defaultValue: "", name: HONEYPOT_FIELD_NAME, tabIndex: -1, type: "text" }) }));
|
|
11
|
+
}
|
|
12
|
+
/** The trap's value from a submitted form; "" when untouched. */
|
|
13
|
+
export function readHoneypot(form) {
|
|
14
|
+
const value = form.get(HONEYPOT_FIELD_NAME);
|
|
15
|
+
return typeof value === "string" ? value : "";
|
|
16
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useActionState } from "react";
|
|
4
|
+
import { DashHoneypotField } from "./honeypot-field.js";
|
|
4
5
|
export function DashPortalLinkForm({ action }) {
|
|
5
6
|
const [state, formAction, pending] = useActionState(action, { status: "idle" });
|
|
6
|
-
return _jsxs("form", { action: formAction, className: "rounded-3xl border border-border bg-white p-6 shadow-xl shadow-slate-900/5 sm:p-9", children: [_jsx("label", { className: "block text-sm font-semibold text-ink", htmlFor: "portal-email", children: "Your email address" }), _jsx("input", { className: "mt-3 min-h-12 w-full rounded-xl border border-border px-4", id: "portal-email", name: "email", type: "email", autoComplete: "email", maxLength: 254, required: true }), _jsx("button", { className: "mt-5 min-h-12 rounded-full bg-accent px-6 font-semibold text-accent-foreground disabled:opacity-50", disabled: pending, children: pending ? "Sending…" : "Email my link" }), state.status === "requested" && _jsx("p", { className: "mt-4 text-sm text-ink", role: "status", children: "If we found requests for that address, a secure link is on its way." }), state.status === "invalid" && _jsx("p", { className: "mt-4 text-sm text-amber-950", role: "alert", children: "Enter a valid email address." }), state.status === "error" && _jsx("p", { className: "mt-4 text-sm text-amber-950", role: "alert", children: "We could not send a link right now. Try again shortly." })] });
|
|
7
|
+
return _jsxs("form", { action: formAction, className: "rounded-3xl border border-border bg-white p-6 shadow-xl shadow-slate-900/5 sm:p-9", children: [_jsx(DashHoneypotField, {}), _jsx("label", { className: "block text-sm font-semibold text-ink", htmlFor: "portal-email", children: "Your email address" }), _jsx("input", { className: "mt-3 min-h-12 w-full rounded-xl border border-border px-4", id: "portal-email", name: "email", type: "email", autoComplete: "email", maxLength: 254, required: true }), _jsx("button", { className: "mt-5 min-h-12 rounded-full bg-accent px-6 font-semibold text-accent-foreground disabled:opacity-50", disabled: pending, children: pending ? "Sending…" : "Email my link" }), state.status === "requested" && _jsx("p", { className: "mt-4 text-sm text-ink", role: "status", children: "If we found requests for that address, a secure link is on its way." }), state.status === "invalid" && _jsx("p", { className: "mt-4 text-sm text-amber-950", role: "alert", children: "Enter a valid email address." }), state.status === "error" && _jsx("p", { className: "mt-4 text-sm text-amber-950", role: "alert", children: "We could not send a link right now. Try again shortly." })] });
|
|
7
8
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useActionState, useEffect, useState } from "react";
|
|
3
|
+
import { useActionState, useEffect, useRef, useState } from "react";
|
|
4
|
+
import { DashHoneypotField } from "./honeypot-field.js";
|
|
4
5
|
export function DashMovingQuoteForm({ action, initialPickup = "", }) {
|
|
5
6
|
const [state, formAction, pending] = useActionState(action, { status: "idle" });
|
|
6
7
|
const [attemptId, setAttemptId] = useState("");
|
|
@@ -8,31 +9,53 @@ export function DashMovingQuoteForm({ action, initialPickup = "", }) {
|
|
|
8
9
|
const [reviewing, setReviewing] = useState(false);
|
|
9
10
|
const [addresses, setAddresses] = useState({ from: [], to: [] });
|
|
10
11
|
const [searchState, setSearchState] = useState({ from: "", to: "" });
|
|
11
|
-
const
|
|
12
|
+
const selected = useRef({ from: null, to: null });
|
|
13
|
+
const addressVersions = useRef({ from: 0, to: 0 });
|
|
14
|
+
const routeVersion = useRef(0);
|
|
12
15
|
const [distance, setDistance] = useState(null);
|
|
13
16
|
const [distanceUnavailable, setDistanceUnavailable] = useState(false);
|
|
14
17
|
if (state.status === "created") {
|
|
15
18
|
return _jsxs("div", { className: "rounded-3xl border border-border bg-white p-8", role: "status", children: [_jsx("h2", { className: "text-2xl font-semibold text-ink", children: "Request received" }), _jsxs("p", { className: "mt-3 text-muted", children: ["Your reference is ", _jsx("strong", { children: state.reference }), ". Keep it for your records."] }), _jsx("p", { className: "mt-3 text-muted", children: "We will email you as the request progresses. You can also retrieve it with an email link." }), _jsx("a", { className: "mt-6 inline-flex rounded-full bg-accent px-6 py-3 font-semibold text-accent-foreground", href: "/my-quotes", children: "View my requests" })] });
|
|
16
19
|
}
|
|
20
|
+
function clearRoute() {
|
|
21
|
+
routeVersion.current++;
|
|
22
|
+
setDistance(null);
|
|
23
|
+
setDistanceUnavailable(false);
|
|
24
|
+
}
|
|
25
|
+
function editAddress(side) {
|
|
26
|
+
addressVersions.current[side]++;
|
|
27
|
+
selected.current[side] = null;
|
|
28
|
+
setAddresses(current => ({ ...current, [side]: [] }));
|
|
29
|
+
setSearchState(current => ({ ...current, [side]: "" }));
|
|
30
|
+
clearRoute();
|
|
31
|
+
}
|
|
17
32
|
async function lookup(side, form) {
|
|
18
33
|
const field = form.elements.namedItem(`${side}_postcode`);
|
|
19
34
|
const query = field?.value.trim() ?? "";
|
|
20
35
|
if (!query)
|
|
21
36
|
return;
|
|
37
|
+
const version = ++addressVersions.current[side];
|
|
38
|
+
setAddresses(current => ({ ...current, [side]: [] }));
|
|
22
39
|
setSearchState((current) => ({ ...current, [side]: "Searching addresses…" }));
|
|
23
40
|
try {
|
|
24
41
|
const response = await fetch(`/api/moving-addresses/lookup?q=${encodeURIComponent(query)}`, { cache: "no-store" });
|
|
25
42
|
if (!response.ok)
|
|
26
43
|
throw new Error("lookup failed");
|
|
27
44
|
const data = await response.json();
|
|
45
|
+
if (version !== addressVersions.current[side])
|
|
46
|
+
return;
|
|
28
47
|
setAddresses((current) => ({ ...current, [side]: data.results }));
|
|
29
48
|
setSearchState((current) => ({ ...current, [side]: data.results.length ? "Choose your address below." : "No addresses found. Enter it manually." }));
|
|
30
49
|
}
|
|
31
50
|
catch {
|
|
51
|
+
if (version !== addressVersions.current[side])
|
|
52
|
+
return;
|
|
32
53
|
setSearchState((current) => ({ ...current, [side]: "Address search is unavailable. Enter the address manually." }));
|
|
33
54
|
}
|
|
34
55
|
}
|
|
35
56
|
async function selectAddress(side, result, form) {
|
|
57
|
+
const version = ++addressVersions.current[side];
|
|
58
|
+
clearRoute();
|
|
36
59
|
let resolved = result;
|
|
37
60
|
if (result._udprn && !result.normalized) {
|
|
38
61
|
try {
|
|
@@ -42,21 +65,26 @@ export function DashMovingQuoteForm({ action, initialPickup = "", }) {
|
|
|
42
65
|
resolved = await response.json();
|
|
43
66
|
}
|
|
44
67
|
catch {
|
|
68
|
+
if (version !== addressVersions.current[side])
|
|
69
|
+
return;
|
|
45
70
|
setSearchState((current) => ({ ...current, [side]: "Could not confirm that address. Enter it manually." }));
|
|
46
71
|
return;
|
|
47
72
|
}
|
|
48
73
|
}
|
|
74
|
+
if (version !== addressVersions.current[side])
|
|
75
|
+
return;
|
|
49
76
|
const addressField = form.elements.namedItem(`${side}_address`);
|
|
50
77
|
const postcodeField = form.elements.namedItem(`${side}_postcode`);
|
|
51
78
|
if (addressField)
|
|
52
79
|
addressField.value = resolved.display;
|
|
53
80
|
if (postcodeField && resolved.normalized?.postal_code)
|
|
54
81
|
postcodeField.value = resolved.normalized.postal_code;
|
|
55
|
-
|
|
82
|
+
selected.current[side] = resolved;
|
|
56
83
|
setAddresses((current) => ({ ...current, [side]: [] }));
|
|
57
84
|
setSearchState((current) => ({ ...current, [side]: "Address selected." }));
|
|
58
|
-
|
|
59
|
-
const
|
|
85
|
+
clearRoute();
|
|
86
|
+
const route = routeVersion.current;
|
|
87
|
+
const counterpart = selected.current[side === "from" ? "to" : "from"];
|
|
60
88
|
const a = side === "from" ? resolved : counterpart;
|
|
61
89
|
const b = side === "to" ? resolved : counterpart;
|
|
62
90
|
if (a?.normalized && b?.normalized && Number.isFinite(a.normalized.latitude) && Number.isFinite(b.normalized.latitude)) {
|
|
@@ -65,15 +93,24 @@ export function DashMovingQuoteForm({ action, initialPickup = "", }) {
|
|
|
65
93
|
const response = await fetch(`/api/moving-addresses/distance?${params}`, { cache: "no-store" });
|
|
66
94
|
if (!response.ok)
|
|
67
95
|
throw new Error("distance failed");
|
|
68
|
-
|
|
96
|
+
const result = await response.json();
|
|
97
|
+
if (route !== routeVersion.current)
|
|
98
|
+
return;
|
|
99
|
+
setDistance(result);
|
|
69
100
|
setDistanceUnavailable(false);
|
|
70
101
|
}
|
|
71
102
|
catch {
|
|
72
|
-
|
|
103
|
+
if (route === routeVersion.current)
|
|
104
|
+
setDistanceUnavailable(true);
|
|
73
105
|
}
|
|
74
106
|
}
|
|
75
107
|
}
|
|
76
|
-
return _jsxs("form", { action: formAction,
|
|
77
|
-
|
|
78
|
-
|
|
108
|
+
return _jsxs("form", { action: formAction, onSubmit: (event) => {
|
|
109
|
+
if (!reviewing) {
|
|
110
|
+
event.preventDefault();
|
|
111
|
+
setReviewing(true);
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
// Failed actions retain the draft; successful actions replace this form.
|
|
115
|
+
onReset: (event) => event.preventDefault(), className: "space-y-8 rounded-3xl border border-border bg-white p-6 shadow-xl shadow-slate-900/5 sm:p-9", children: [_jsx(DashHoneypotField, {}), _jsx("input", { type: "hidden", name: "attempt_id", value: attemptId }), _jsx("input", { type: "hidden", name: "distance_miles", value: distance?.distanceMiles ?? "" }), _jsx("input", { type: "hidden", name: "duration_minutes", value: distance?.durationMinutes ?? "" }), ["from", "to"].map((side) => _jsxs("fieldset", { className: "space-y-3", onChange: () => editAddress(side), children: [_jsx("legend", { className: "text-lg font-semibold text-ink", children: side === "from" ? "Collection" : "Delivery" }), _jsx("label", { className: "block text-sm font-medium text-ink", htmlFor: `${side}_postcode`, children: "Postcode" }), _jsxs("div", { className: "flex gap-2", children: [_jsx("input", { className: "min-h-12 min-w-0 flex-1 rounded-xl border border-border px-4", defaultValue: side === "from" ? initialPickup : "", id: `${side}_postcode`, name: `${side}_postcode`, autoComplete: "postal-code", required: true, maxLength: 16 }), _jsx("button", { className: "rounded-xl border border-border px-4 font-medium text-ink", type: "button", onClick: (event) => lookup(side, event.currentTarget.form), children: "Find address" })] }), searchState[side] && _jsx("p", { className: "text-sm text-muted", role: "status", children: searchState[side] }), addresses[side].length > 0 && _jsx("ul", { className: "max-h-48 overflow-auto rounded-xl border border-border", "aria-label": `${side} address suggestions`, children: addresses[side].map((result) => _jsx("li", { children: _jsx("button", { className: "w-full px-4 py-2 text-left text-sm hover:bg-subtle", type: "button", onClick: (event) => selectAddress(side, result, event.currentTarget.form), children: result.display }) }, `${result._udprn ?? result.display}`)) }), _jsx("label", { className: "block text-sm font-medium text-ink", htmlFor: `${side}_address`, children: "Address" }), _jsx("input", { className: "min-h-12 w-full rounded-xl border border-border px-4", id: `${side}_address`, name: `${side}_address`, required: true, maxLength: 500, placeholder: "Select an address or enter it manually" })] }, side)), distance && _jsxs("p", { className: "text-sm text-muted", children: ["Approximate driving distance: ", distance.distanceMiles, " miles."] }), distanceUnavailable && _jsx("p", { className: "text-sm text-muted", children: "Distance is unavailable. You can still submit your request." }), _jsxs("fieldset", { className: "grid gap-4 sm:grid-cols-2", children: [_jsx("legend", { className: "mb-3 text-lg font-semibold text-ink", children: "Move details" }), _jsxs("label", { className: "grid gap-2 text-sm font-medium text-ink", children: ["Preferred date", _jsx("input", { className: "min-h-12 rounded-xl border border-border px-4", type: "date", name: "move_date" })] }), _jsxs("label", { className: "grid gap-2 text-sm font-medium text-ink", children: ["Property size", _jsxs("select", { className: "min-h-12 rounded-xl border border-border px-4", name: "property_size", defaultValue: "2-bed", children: [_jsx("option", { value: "studio", children: "Studio" }), _jsx("option", { value: "1-bed", children: "1 bedroom" }), _jsx("option", { value: "2-bed", children: "2 bedrooms" }), _jsx("option", { value: "3-bed", children: "3 bedrooms" }), _jsx("option", { value: "4+-bed", children: "4 or more bedrooms" }), _jsx("option", { value: "other", children: "Other" })] })] }), _jsxs("label", { className: "grid gap-2 text-sm font-medium text-ink", children: ["Collection floor", _jsx("input", { className: "min-h-12 rounded-xl border border-border px-4", type: "number", name: "floor_from", min: "0", max: "99", defaultValue: "0" })] }), _jsxs("label", { className: "grid gap-2 text-sm font-medium text-ink", children: ["Delivery floor", _jsx("input", { className: "min-h-12 rounded-xl border border-border px-4", type: "number", name: "floor_to", min: "0", max: "99", defaultValue: "0" })] }), [["flexible_date", "My date is flexible"], ["has_lift_from", "Collection has a lift"], ["has_lift_to", "Delivery has a lift"], ["packing_required", "I need packing"], ["storage_required", "I need storage"], ["dismantling_required", "I need dismantling"]].map(([key, label]) => _jsxs("label", { className: "flex items-center gap-2 text-sm text-ink", children: [_jsx("input", { type: "checkbox", name: key }), label] }, key)), _jsxs("label", { className: "grid gap-2 text-sm font-medium text-ink sm:col-span-2", children: ["Special items, separated by commas", _jsx("input", { className: "min-h-12 rounded-xl border border-border px-4", name: "special_items", maxLength: 1000 })] }), _jsxs("label", { className: "grid gap-2 text-sm font-medium text-ink sm:col-span-2", children: ["Other details", _jsx("textarea", { className: "min-h-28 rounded-xl border border-border p-4", name: "additional_notes", maxLength: 4000 })] })] }), _jsxs("fieldset", { className: "grid gap-4 sm:grid-cols-2", children: [_jsx("legend", { className: "mb-3 text-lg font-semibold text-ink", children: "Your contact details" }), _jsxs("label", { className: "grid gap-2 text-sm font-medium text-ink", children: ["Name", _jsx("input", { className: "min-h-12 rounded-xl border border-border px-4", name: "name", required: true, maxLength: 255, autoComplete: "name" })] }), _jsxs("label", { className: "grid gap-2 text-sm font-medium text-ink", children: ["Email", _jsx("input", { className: "min-h-12 rounded-xl border border-border px-4", name: "email", type: "email", required: true, maxLength: 320, autoComplete: "email" })] }), _jsxs("label", { className: "grid gap-2 text-sm font-medium text-ink sm:col-span-2", children: ["Phone (optional)", _jsx("input", { className: "min-h-12 rounded-xl border border-border px-4", name: "phone", type: "tel", maxLength: 64, autoComplete: "tel" })] })] }), state.status === "invalid" && _jsx("p", { className: "rounded-xl bg-amber-50 p-4 text-sm text-amber-950", role: "alert", children: "Check your details and try again." }), state.status === "error" && _jsx("p", { className: "rounded-xl bg-amber-50 p-4 text-sm text-amber-950", role: "alert", children: "We could not submit your request. Please try again." }), reviewing && _jsx("p", { className: "rounded-xl bg-subtle p-4 text-sm text-ink", role: "status", children: "Review your addresses, move details, and contact email above. Submit when everything looks right." }), _jsx("button", { className: "min-h-12 rounded-full bg-accent px-7 font-semibold text-accent-foreground disabled:opacity-50", type: "submit", disabled: pending || !attemptId, children: pending ? "Submitting…" : reviewing ? "Submit request" : "Review request" })] });
|
|
79
116
|
}
|
package/dist/ui/waitlist-form.js
CHANGED
|
@@ -1,6 +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
|
+
import { DashHoneypotField, readHoneypot } from "./honeypot-field.js";
|
|
4
5
|
export function DashWaitlistForm({ acceptingEntries, collectMarketingConsent, placement = "page", privacyHref, submit, }) {
|
|
5
6
|
const id = useId();
|
|
6
7
|
const [ready, setReady] = useState(false);
|
|
@@ -20,6 +21,7 @@ export function DashWaitlistForm({ acceptingEntries, collectMarketingConsent, pl
|
|
|
20
21
|
email: String(values.get("email") ?? "").trim(),
|
|
21
22
|
name: String(values.get("name") ?? "").trim(),
|
|
22
23
|
marketingOptIn: collectMarketingConsent && values.get("marketing_opt_in") === "on",
|
|
24
|
+
_gotcha: readHoneypot(values),
|
|
23
25
|
source: placement === "block" ? "waitlist_block" : "waitlist_page",
|
|
24
26
|
});
|
|
25
27
|
if (receipt.accepted !== true)
|
|
@@ -37,5 +39,5 @@ export function DashWaitlistForm({ acceptingEntries, collectMarketingConsent, pl
|
|
|
37
39
|
return _jsx("p", { role: "status", children: "Thanks. Check your inbox to confirm your place." });
|
|
38
40
|
if (!acceptingEntries)
|
|
39
41
|
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" }), 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] }));
|
|
42
|
+
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, _jsx(DashHoneypotField, {}), 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
43
|
}
|
package/dist/ui.d.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export { ButtonLink, Container, Eyebrow, SectionHeading, StatusPanel, VerifiedBadge, } from "./ui/primitives.js";
|
|
11
11
|
export { SiteImage } from "./ui/site-image.js";
|
|
12
|
+
export { DashHoneypotField, HONEYPOT_FIELD_NAME, readHoneypot } from "./ui/honeypot-field.js";
|
|
12
13
|
export { DashWaitlistForm } from "./ui/waitlist-form.js";
|
|
13
14
|
export { DashWaitlistEmailLink, DashWaitlistPage } from "./ui/waitlist-page.js";
|
|
14
15
|
export { DashMaintenancePage } from "./ui/maintenance-page.js";
|
package/dist/ui.js
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export { ButtonLink, Container, Eyebrow, SectionHeading, StatusPanel, VerifiedBadge, } from "./ui/primitives.js";
|
|
11
11
|
export { SiteImage } from "./ui/site-image.js";
|
|
12
|
+
export { DashHoneypotField, HONEYPOT_FIELD_NAME, readHoneypot } from "./ui/honeypot-field.js";
|
|
12
13
|
export { DashWaitlistForm } from "./ui/waitlist-form.js";
|
|
13
14
|
export { DashWaitlistEmailLink, DashWaitlistPage } from "./ui/waitlist-page.js";
|
|
14
15
|
export { DashMaintenancePage } from "./ui/maintenance-page.js";
|
package/dist/validation/leads.js
CHANGED
|
@@ -18,6 +18,7 @@ export function validateLeadForm(formData) {
|
|
|
18
18
|
const rawEmail = formData.get("email");
|
|
19
19
|
const rawPhone = formData.get("phone");
|
|
20
20
|
const rawMessage = formData.get("message");
|
|
21
|
+
const rawGotcha = formData.get("_gotcha");
|
|
21
22
|
const name = optional(rawName, LEAD_LIMITS.name);
|
|
22
23
|
const email = optional(rawEmail, LEAD_LIMITS.email)?.toLowerCase();
|
|
23
24
|
const phone = optional(rawPhone, LEAD_LIMITS.phone);
|
|
@@ -53,6 +54,8 @@ export function validateLeadForm(formData) {
|
|
|
53
54
|
...(name ? { name } : {}),
|
|
54
55
|
...(phone ? { phone } : {}),
|
|
55
56
|
...(message ? { message } : {}),
|
|
57
|
+
// The honeypot is forwarded as typed: the API, not the kit, judges it.
|
|
58
|
+
...(typeof rawGotcha === "string" ? { _gotcha: rawGotcha } : {}),
|
|
56
59
|
},
|
|
57
60
|
},
|
|
58
61
|
};
|
|
@@ -34,6 +34,7 @@ export function validateMovingQuoteForm(form) {
|
|
|
34
34
|
packing_required: form.get("packing_required") === "on", storage_required: form.get("storage_required") === "on",
|
|
35
35
|
dismantling_required: form.get("dismantling_required") === "on", special_items: specialItems,
|
|
36
36
|
additional_notes: string("additional_notes", 4000),
|
|
37
|
+
...(typeof form.get("_gotcha") === "string" ? { _gotcha: form.get("_gotcha") } : {}),
|
|
37
38
|
...(Number.isFinite(distance) && distance > 0 ? { distance_miles: distance } : {}),
|
|
38
39
|
...(Number.isFinite(duration) && duration > 0 ? { duration_minutes: duration } : {}),
|
|
39
40
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c1m-public/dash-site-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Shared transport, domain and UI layer for MML dash-scoped public sites",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"react-dom": "19.2.8",
|
|
58
58
|
"typescript": "5.9.3",
|
|
59
59
|
"vitest": "^4.1.4",
|
|
60
|
-
"@c1m-public/channel-client": "0.
|
|
61
|
-
"@c1m-public/platform-auth": "0.
|
|
60
|
+
"@c1m-public/channel-client": "0.38.0",
|
|
61
|
+
"@c1m-public/platform-auth": "0.26.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependenciesMeta": {
|
|
64
64
|
"next": {
|